-
Notifications
You must be signed in to change notification settings - Fork 0
/
Practice-Test-MATLAB.html
1584 lines (1036 loc) · 58.9 KB
/
Practice-Test-MATLAB.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html class="wf-futurapt-n7-active wf-futurapt-i7-active wf-automate-n7-active wf-minionprosubhead-n4-active wf-museoslab-n7-active wf-futurapt-n4-active wf-futurapt-i4-active wf-futurapt-n5-active wf-futurapt-i5-active wf-active"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description">
<link rel="icon" href="https://www.mathworks.com/etc/designs/mathworks/img/favicon.ico" type="image/x-icon">
<link rel="canonical" href="https://www.mathworks.com/services/training/certification/ml-professional-exam/practice-test.html">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="Practice-Test-MATLAB_files/main.css" type="text/css">
<script type="text/javascript" src="Practice-Test-MATLAB_files/jquery_002.js"></script>
<script type="text/javascript" src="Practice-Test-MATLAB_files/utils.js"></script>
<script type="text/javascript" src="Practice-Test-MATLAB_files/granite.js"></script>
<script type="text/javascript" src="Practice-Test-MATLAB_files/jquery.js"></script>
<script type="text/javascript" src="Practice-Test-MATLAB_files/main.js"></script>
<script type="text/javascript">
(function() {
window.ContextHub = window.ContextHub || {};
ContextHub.Paths = ContextHub.Paths || {};
ContextHub.Paths.RESOURCE_PATH = "\/content\/mathworks\/www\/en\/services\/training\/certification\/ml\u002Dprofessional\u002Dexam\/practice\u002Dtest\/jcr:content\/contexthub";
ContextHub.Paths.SEGMENTATION_PATH = "\/etc\/segmentation\/contexthub";
ContextHub.Paths.CQ_CONTEXT_PATH = "";
}());
</script><script src="Practice-Test-MATLAB_files/contexthub.js" type="text/javascript"></script>
<link rel="stylesheet" href="Practice-Test-MATLAB_files/clientlibs.css" type="text/css">
<script type="text/javascript" src="Practice-Test-MATLAB_files/headlibs.js"></script>
<link rel="stylesheet" href="Practice-Test-MATLAB_files/aem.css" type="text/css">
<style type="text/css">.tk-museo-slab{font-family:"museo-slab",serif;}.tk-futura-pt{font-family:"futura-pt","Arial","Helvetica",sans-serif;}.tk-automate{font-family:"automate",sans-serif;}.tk-minion-pro-subhead{font-family:"minion-pro-subhead",serif;}</style><link rel="stylesheet" href="Practice-Test-MATLAB_files/xvy5baa-d.css"><script>try{Typekit.load();}catch(e){}</script>
<script id="analyticsDigitalData"> digitalData = {
"pageInstanceID" : "http://www.mathworks.com/services/training/certification/ml-professional-exam/practice-test.html",
"page" : {
"pageInfo" : {
"pageID" : "http://www.mathworks.com/services/training/certification/ml-professional-exam/practice-test.html",
"destinationURL" : "http://www.mathworks.com/services/training/certification/ml-professional-exam/practice-test.html"
},
"category" : {
"subCategory1" : "services/training",
"subCategory2" : "services/training/certification",
"pageType" : "tgcert"
},
"attributes" : { }
},
"product" : [ {
"productInfo" : { }
} ],
"component" : [ ]
};</script>
<script src="Practice-Test-MATLAB_files/satelliteLib-e8d23c2e444abadc572df06537e2def59c01db09.js"></script>
<title>Practice Test - MathWorks Certified MATLAB Professional Exam - MathWorks - MATLAB & Simulink</title>
</head>
<body>
<!-- Mobile TopNav: Start -->
<div class="header visible-xs visible-sm" id="header_mobile" style="">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="navbar-header">
<button type="button" class="navbar-toggle topnav_toggle" data-toggle="collapse" data-target="#topnav_collapse">
<span class="sr-only">Toggle Main Navigation</span>
<span class="icon-menu"></span>
</button>
<a href="https://www.mathworks.com/?s_tid=gn_logo" class="svg_link navbar-brand">
<img src="Practice-Test-MATLAB_files/pic-header-mathworks-logo.svg" class="mw_logo" alt="MathWorks">
</a>
</div>
</div>
</div>
<div class="row visible-xs visible-sm">
<div class="col-xs-12">
<div class="navbar-collapse collapse" id="topnav_collapse">
<div class="topnavigation containsResourceName topNavigation resourceClass-topnavigation"><ul class="nav navbar-nav" id="topnav">
<li class="headernav_login" style="">
<a class="mwa-nav_login" href="https://www.mathworks.com/login?uri=https%3A%2F%2Fwww.mathworks.com%2Fservices%2Ftraining%2Fcertification%2Fml-professional-exam%2Fpractice-test.html">Log In</a>
</li>
<li class="headernav_logout dropdown" style="display: none;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="mwa-name"></span><b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class="mwa-nav_account"><a class="mwa-account">My Account</a></li>
<li class="mwa-nav_associate"><a class="mwa-associate-license">Associate License</a></li>
<li class="mwa-nav_community"><a class="mwa-community-profile">My Community Profile</a></li>
<li class="mwa-nav_logout"><a class="mwa-logout">Log Out</a>
</li>
</ul>
</li>
<li class="topnav_products ">
<a href="https://www.mathworks.com/products.html?s_tid=gn_ps">Products</a>
</li>
<li class="topnav_solutions ">
<a href="https://www.mathworks.com/solutions.html?s_tid=gn_sol">Solutions</a>
</li>
<li class="topnav_academia ">
<a href="https://www.mathworks.com/academia.html?s_tid=gn_acad">Academia</a>
</li>
<li class="topnav_support ">
<a href="https://www.mathworks.com/support/?s_tid=gn_supp">Support</a>
</li>
<li class="topnav_community ">
<a href="https://www.mathworks.com/matlabcentral/?s_tid=gn_mlc">Community</a>
</li>
<li class="topnav_events ">
<a href="https://www.mathworks.com/company/events.html?s_tid=gn_ev">Events</a>
</li>
<li class="headernav_contact">
<a href="https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=gn_cntus">Contact Us</a>
</li>
<li class="headernav_store">
<a href="https://www.mathworks.com/store?s_tid=gn_store">How to Buy</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
<!-- Mobile TopNav: End -->
<!-- Desktop TopNav: Start -->
<div class="header hidden-xs hidden-sm" id="header_desktop" style="">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="headerNavigation containsResourceName resourceClass-headernavigation headernavigation">
<div class="collapse navbar-collapse" id="headernav_collapse">
<ul class="nav navbar-nav navbar-right" id="headernav">
<li class="headernav_contact"><a href="https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=gn_cntus">Contact Us</a></li>
<li class="headernav_store"><a href="https://www.mathworks.com/store?s_tid=gn_store">How to Buy</a></li>
<li class="headernav_login" style="">
<a class="mwa-nav_login" href="https://www.mathworks.com/login?uri=https%3A%2F%2Fwww.mathworks.com%2Fservices%2Ftraining%2Fcertification%2Fml-professional-exam%2Fpractice-test.html">Log In</a>
</li>
<li class="headernav_logout dropdown" style="display: none;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="mwa-name"></span><b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class="mwa-nav_account"><a class="mwa-account">My Account</a></li>
<li class="mwa-nav_associate"><a class="mwa-associate-license">Associate License</a></li>
<li class="mwa-nav_community"><a class="mwa-community-profile">My Community Profile</a></li>
<li class="mwa-nav_logout"><a class="mwa-logout">Log Out</a>
</li>
</ul>
</li>
</ul>
</div></div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="navbar-header">
<div class="logo_container hidden-xs hidden-sm">
<a href="https://www.mathworks.com/?s_tid=gn_logo" class="svg_link pull-left">
<img src="Practice-Test-MATLAB_files/pic-header-mathworks-logo.svg" class="mw_logo" alt="MathWorks">
</a>
</div>
<div class="navbar-collapse collapse hidden-xs hidden-sm">
<div class="topnavigation containsResourceName topNavigation resourceClass-topnavigation">
<ul id="topnav" class="nav navbar-nav">
<li class="topnav_products ">
<a href="https://www.mathworks.com/products.html?s_tid=gn_ps">Products</a>
</li>
<li class="topnav_solutions ">
<a href="https://www.mathworks.com/solutions.html?s_tid=gn_sol">Solutions</a>
</li>
<li class="topnav_academia ">
<a href="https://www.mathworks.com/academia.html?s_tid=gn_acad">Academia</a>
</li>
<li class="topnav_support ">
<a href="https://www.mathworks.com/support/?s_tid=gn_supp">Support</a>
</li>
<li class="topnav_community ">
<a href="https://www.mathworks.com/matlabcentral/?s_tid=gn_mlc">Community</a>
</li>
<li class="topnav_events ">
<a href="https://www.mathworks.com/company/events.html?s_tid=gn_ev">Events</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
<!-- Desktop TopNav: End -->
<div class="sticky_header_container includes_subnav affix">
<!-- Section Header: Start -->
<div class="section_header level_3">
<div class="container">
<div class="row" id="mobile_search_row">
<div class="col-xs-12 col-sm-6 col-sm-push-6 col-md-5 col-md-push-7" id="mobile_search">
<div><div class="containsResourceName sectionheadsearchbox sectionHeadSearchBox resourceClass-sectionheadsearchbox">
<div class="search_nested_content_container">
<div id="search_scope_site" class="collapse in">
<form name="search" id="site_search" class="site_search" action="https://www.mathworks.com/search/site_search.html" method="get">
<div class="input-group">
<label class="sr-only">Search MathWorks.com</label>
<input name="c[]" value="entire_site" type="hidden">
<input name="q" id="query" class="form-control conjoined_search" placeholder="Search MathWorks.com" autocomplete="off" data-search-typeahead="false" type="text">
<div class="input-group-btn">
<button type="submit" id="searchbutton" class="btn icon-search btn_search_adjacent btn_search icon_16" tabindex="-1"></button>
</div>
</div>
</form>
</div>
<script>
$(".search_scope_trigger").click(function handlerSearch( event ) {
var target1 = event.target.parentNode.attributes.getNamedItem("data-groupid").nodeValue;
$('#'+target1).removeClass("in");
});
</script>
</div>
<button class="btn icon-remove btn_search pull-right icon_32 visible-xs" data-toggle="collapse" href="#mobile_search" aria-expanded="false" aria-controls="mobile_search"></button>
</div>
</div>
</div>
<div class="col-sm-6 col-sm-pull-6 col-md-7 col-md-pull-5" id="section_header_title">
<div><div class="containsResourceName resourceClass-sectionhead sectionHead sectionhead">
<div class="section_header_content">
<div class="section_header_title add_cursor_pointer">
<p class="h1">
<a href="https://www.mathworks.com/services/training.html">MATLAB and Simulink Training</a>
</p>
</div>
<button type="button" class="navbar-toggle collapsed subnav visible-xs visible-sm" data-toggle="collapse" data-target=".mobile_subnav_content"> <span class="icon-arrow-down icon_24"></span> </button>
</div>
</div>
</div>
</div>
<div class="visible-xs" id="search_actuator">
<button class="btn icon-search btn_search pull-right icon_16 containsResourceName resourceClass-button" data-toggle="collapse" href="#mobile_search" aria-expanded="false" aria-controls="mobile_search"></button>
</div>
</div>
<!-- Mobile Local Nav: Start -->
<div class="row visible-xs visible-sm" id="mobile_subnav">
<div class="col-xs-12">
<div class="navbar-collapse collapse mobile_subnav_content">
<div><div class="containsResourceName localnav localNavigation resourceClass-localnav">
<ul id="localnav" class="nav navbar-nav subnav" style="float:none">
<li>
<a href="https://www.mathworks.com/services/training.html?s_tid=gn_trg_ov">Overview</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/courses.html?s_tid=gn_trg_co">Course Offerings</a>
</li>
<li>
<a href="https://www.mathworks.com/training-schedule/?s_tid=gn_trg_cs">Course Schedule</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/online.html?s_tid=gn_trg_ot">Self-Paced Training</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/request_training.html?s_tid=gn_trg_fac" data-link="lead" data-offertype="Training at Your Facility" data-component="localnav">Training At Your Facility</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/certification.html?s_tid=gn_trg_cer">Certification</a>
</li>
<li>
<a href="" data-toggle="dropdown" target="">More<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<a href="https://www.mathworks.com/services/training/policies/faq.html?s_tid=gn_trg_mor">FAQs</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies.html?s_tid=gn_trg_mor">Policies</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies/requirements.html?s_tid=gn_trg_mor">System Requirements</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies/training_credits.html?s_tid=gn_trg_mor">Training Credits</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile Local Nav: End -->
</div>
</div>
<div class="horizontal_nav hidden-xs hidden-sm ">
<div class="horizontal_nav_container">
<div>
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-9 hidden-xs hidden-sm">
<nav class="navbar navbar-default" role="navigation" id="subnav">
<div class="collapse navbar-collapse">
<div><div class="containsResourceName localnav localNavigation resourceClass-localnav">
<ul id="localnav" class="nav navbar-nav subnav" style="float:none">
<li>
<a href="https://www.mathworks.com/services/training.html?s_tid=gn_trg_ov">Overview</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/courses.html?s_tid=gn_trg_co">Course Offerings</a>
</li>
<li>
<a href="https://www.mathworks.com/training-schedule/?s_tid=gn_trg_cs">Course Schedule</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/online.html?s_tid=gn_trg_ot">Self-Paced Training</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/request_training.html?s_tid=gn_trg_fac" data-link="lead" data-offertype="Training at Your Facility" data-component="localnav">Training At Your Facility</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/certification.html?s_tid=gn_trg_cer">Certification</a>
</li>
<li>
<a href="" data-toggle="dropdown" target="">More<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<a href="https://www.mathworks.com/services/training/policies/faq.html?s_tid=gn_trg_mor">FAQs</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies.html?s_tid=gn_trg_mor">Policies</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies/requirements.html?s_tid=gn_trg_mor">System Requirements</a>
</li>
<li>
<a href="https://www.mathworks.com/services/training/policies/training_credits.html?s_tid=gn_trg_mor">Training Credits</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</nav>
</div>
<div class="col-md-4 col-lg-3 hidden-xs hidden-sm">
<div><div class="containsResourceName calltoactionheader resourceClass-calltoactionheader callToAction">
<div class="cta_box">
<ul class="list-inline">
<li class="cta_item cta_item_general">
<a href="https://www.mathworks.com/services/training/contact-training.html" class="icon-contactus
" data-link="lead" data-offertype="Contact a Training Expert" data-component="calltoactionheader">
Contact Training
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cta_container_mobile visible-sm visible-xs">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div><div class="containsResourceName calltoactionheader resourceClass-calltoactionheader callToAction">
<div class="cta_box">
<ul class="list-inline">
<li class="cta_item cta_item_general">
<a href="https://www.mathworks.com/services/training/contact-training.html" class="icon-contactus
" data-link="lead" data-offertype="Contact a Training Expert" data-component="calltoactionheader">
Contact Training
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content_container">
<div class="container">
<section><div class="containsResourceName parsys mainParsys resourceClass-parsys"><div class="cqColumns containsResourceName section resourceClass-columns"><div class="row ">
<div class=" col-xs-12 col-sm-9"><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h1 class="add_font_color_emphasize">Practice Test</h1>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p>Click <a href="https://www.mathworks.com/content/dam/mathworks/tag-team/Objects/m/83699_mcmp_practice_files.zip">here</a> for data and code files necessary to complete the practice problems.</p>
</div>
</div>
<div class="containsResourceName resourceClass-list section list">
<ol>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p>The provided text file (<code>readings.txt</code>) contains a
timestamp broken up into year, month, day, hour, minute, second, and
timezone components, as well as a reading from a sensor. Write a script
that reads the data from the file using the <code>textscan</code> function. </p>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The script must: </h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ul class="add_margin_20">
<li>Convert the timestamps into single numeric serial date numbers stored in a variable named <code>dates</code></li>
<li>Ignore the timezone component of the timestamp by not reading it into the workspace</li>
<li>Place numeric values for the readings in a single array of type <code>double</code> with a variable name of <code>readings</code></li>
</ul>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The provided data file (<code>viewdata.mat</code>) contains a 19-by-3 matrix <code>viewdata</code> with the following columns:</h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ol>
<li><strong>Video Length</strong> - Length in minutes for the video</li>
<li><strong>Views</strong> - Number of times the video has been viewed</li>
<li><strong>Minutes Watched</strong> - Total amount of time viewers spent watching the video</li>
</ol>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>Write a MATLAB script to analyze the data to determine the effect of video length on viewer retention with the following steps:</h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ul class="add_margin_20">
<li>Load the saved viewership data into the MATLAB workspace.</li>
<li>Create the column vector <code>viewPct</code> containing the
percentage viewed for each variable according to the formula: Percentage
viewed = (Minutes watched / Views) / (Video length).</li>
<li>Create vectors containing the percentage viewed for short (Video
length < 1.5), medium (1.5 <= Video length <= 2.25), and long
(Video length > 2.25) videos).</li>
<li>Calculate the average of the values contained in the vectors from the previous step, and store the results in the variables <code>shortPct</code>, <code>medPct</code>, and <code>longPct</code> respectively.</li>
</ul>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The provided data file (<code>TData.mat</code>) contains temperature data reported by weather stations instance in time. The contents of the data file are: </h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ol>
<li>The x-coordinates of the weather station locations (in km) stored in the column vector <code>x</code></li>
<li>The y-coordinates of the weather station locations (in km) stored in the column vector <code>y</code></li>
<li>The temperature data corresponding to the station locations (in degrees C) stored in the column vector <code>T</code></li>
</ol>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p>Write a MATLAB script to load the data from the file and produce a
contour plot similar to the one below with the temperature stations. Use
the <code>griddata</code> function with <code>'v4'</code> as the interpolation method to estimate the temperatures for the x-y spatial grid points. </p>
</div>
</div>
<div class="containsResourceName cqImage section resourceClass-image">
<div class="clearfix mw-image thumbnail ">
<div data-picture="">
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_2/itemParsys/image_0.adapt.full.low.png/1469940835392.png" data-media="(min-width: 1px)"></div> <!-- Portrait iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_2/itemParsys/image_0.adapt.full.medium.png/1469940835392.png" data-media="(min-width: 481px)"></div> <!-- Landscape iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_2/itemParsys/image_0.adapt.full.high.png/1469940835392.png" data-media="(min-width: 768px)"></div> <!-- desktop -->
<noscript>
<img src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/_jcr_content/mainParsys/column_0/1/list_0/list_2/itemParsys/image_0.adapt.full.high.png/1469940835392.png" class="fluid_image remove_border" data-aem-src="/content/dam/mathworks/mathworks-dot-com/services/training/certification/ml-professional-exam/img/xy-graphic.png">
</noscript>
<img src="Practice-Test-MATLAB_files/1469940835392.png" class="fluid_image remove_border"></div>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The plot must contain: </h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ul class="add_margin_20">
<li>contours spanning -5 degrees C to 5 degrees C in 1 degree increments</li>
<li>a spatial extent of the contour plot corresponding to 0 < x
< 675, 0 < y < 350; with a grid resolution (grid square size)
of 1km-by-1km.</li>
<li>labels for the contours with the <code>clabel function</code></li>
<li>markers for the weather station locations</li>
</ul>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>Create an anonymous function <code>f</code> which accepts a
(possibly vector valued) numeric input and returns a (possibly vector
valued) numeric output according to the mathematical formula f(x) = x^2 -
sin(x). Use this function along with the <code>fminsearch</code> function to find the local minimum value near the initial value near <code>x0 = 0.5.</code> Store the local minimizing value and the corresponding function value in the variables <code>xmin</code> and <code>ymin</code> respectively. </h6>
</div>
</div>
<div class="containsResourceName cqImage section resourceClass-image">
<div class="clearfix mw-image thumbnail ">
<div data-picture="">
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_3/itemParsys/image_0.adapt.full.low.png/1469940835200.png" data-media="(min-width: 1px)"></div> <!-- Portrait iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_3/itemParsys/image_0.adapt.full.medium.png/1469940835200.png" data-media="(min-width: 481px)"></div> <!-- Landscape iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_3/itemParsys/image_0.adapt.full.high.png/1469940835200.png" data-media="(min-width: 768px)"></div> <!-- desktop -->
<noscript>
<img src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/_jcr_content/mainParsys/column_0/1/list_0/list_3/itemParsys/image_0.adapt.full.high.png/1469940835200.png" class="fluid_image remove_border" data-aem-src="/content/dam/mathworks/mathworks-dot-com/services/training/certification/ml-professional-exam/img/f-func.png">
</noscript>
<img src="Practice-Test-MATLAB_files/1469940835200.png" class="fluid_image remove_border"></div>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>A function called <code>viewImage</code> accepts an image and a variable number of parameter name/value pairs as shown in the function heading: </h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p><code>function viewImage (I, varargin)</code></p>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>Write the validation code in the body of the function to produce an
error message explaining the violation if any of the following
conditions on the input arguments are not met: </h6>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<ul class="add_margin_20">
<li>If variable input options exist, they must exist in pairs</li>
<li>The names portion of the variable input must occur before the corresponding value. Names must be strings of the value <code>'zoom'</code>, <code>'rotate'</code>, or <code>'tilt'</code></li>
<li>The value portion for a variable input must be numeric</li>
</ul>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p>Do not write any implementation beyond the code required to perform the validation. </p>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The provided script <code>(diceSimulation.m)</code> runs a
simulation of rolling six, 6-sided dice and calculating the sum. The
simulation is repeated 1,000,000 times to create a histogram of the
probability distribution as shown below. </h6>
</div>
</div>
<div class="containsResourceName cqImage section resourceClass-image">
<div class="clearfix mw-image thumbnail ">
<div data-picture="">
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_5/itemParsys/image_0.adapt.full.low.png/1469940835244.png" data-media="(min-width: 1px)"></div> <!-- Portrait iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_5/itemParsys/image_0.adapt.full.medium.png/1469940835244.png" data-media="(min-width: 481px)"></div> <!-- Landscape iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_5/itemParsys/image_0.adapt.full.high.png/1469940835244.png" data-media="(min-width: 768px)"></div> <!-- desktop -->
<noscript>
<img src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/_jcr_content/mainParsys/column_0/1/list_0/list_5/itemParsys/image_0.adapt.full.high.png/1469940835244.png" class="fluid_image remove_border" data-aem-src="/content/dam/mathworks/mathworks-dot-com/services/training/certification/ml-professional-exam/img/dice-simulation.png">
</noscript>
<img src="Practice-Test-MATLAB_files/1469940835244.png" class="fluid_image remove_border"></div>
</div>
</div>
<div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<p>The code produces the correct result, but can be improved to run
faster. Rewrite the script such that the simulation produces the same
results with 1,000,000 trials, a histogram of the results is created,
and a faster execution time. </p>
<p>The figure illustrates on result from running the script. Solutions should have a similar distribution. </p>
</div>
</div>
</div>
</div></div>
</li>
<li>
<div class="containsResourceName resourceClass-listitem listitem">
<div><div class="containsResourceName parsys resourceClass-parsys"><div class="containsResourceName section text resourceClass-text">
<div class="mw-text ">
<h6>The provided script <code>(LoadData.m)</code> loads data from an impact simulation, and uses the <code>plotyy</code> function to plot position on the left y-axis and velocity on the right y-axis. Using the outputs from the <code>plotyy</code> function, modify the figure to make it look as shown in the figure below. </h6>
</div>
</div>
<div class="containsResourceName cqImage section resourceClass-image">
<div class="clearfix mw-image thumbnail ">
<div data-picture="">
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_6/itemParsys/image_0.adapt.full.low.png/1469940835184.png" data-media="(min-width: 1px)"></div> <!-- Portrait iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_6/itemParsys/image_0.adapt.full.medium.png/1469940835184.png" data-media="(min-width: 481px)"></div> <!-- Landscape iPad -->
<div class="fluid_image remove_border" data-src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/jcr:content/mainParsys/column_0/1/list_0/list_6/itemParsys/image_0.adapt.full.high.png/1469940835184.png" data-media="(min-width: 768px)"></div> <!-- desktop -->
<noscript>
<img src="/content/mathworks/www/en/services/training/certification/ml-professional-exam/practice-test/_jcr_content/mainParsys/column_0/1/list_0/list_6/itemParsys/image_0.adapt.full.high.png/1469940835184.png" class="fluid_image remove_border" data-aem-src="/content/dam/mathworks/mathworks-dot-com/services/training/certification/ml-professional-exam/img/load-data.png">
</noscript>
<img src="Practice-Test-MATLAB_files/1469940835184.png" class="fluid_image remove_border"></div>
</div>