{"id":2507,"date":"2016-03-22T14:10:57","date_gmt":"2016-03-22T14:10:57","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=2507"},"modified":"2023-01-06T11:57:07","modified_gmt":"2023-01-06T11:57:07","slug":"sample-of-assignment-matlab","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/sample-of-assignment-matlab\/","title":{"rendered":"Sample of Assignment: MATLAB"},"content":{"rendered":"<p><em><strong>Question #1<\/strong><\/em><\/p>\n<p>The dependence between cutting speed and spindle speed during turning of the metal shaft is given in the table below. The diameter of the shaft is 40 mm. Using MATLAB, input this data as vectors and plot it. Use the insert icon to label the axes and add a title to your graph. Turn in the graph.<!--more--><\/p>\n<p>Table 1. Spindle speed vs. cutting speed.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB.png\" rel=\"attachment wp-att-2509\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2509 size-large\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB-1024x97.png\" alt=\"MATLAB\" width=\"604\" height=\"57\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB-1024x97.png 1024w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB-300x28.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB-768x72.png 768w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/MATLAB.png 1146w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p><em><strong>Solving<\/strong><\/em><\/p>\n<p>Step 1. In MatLab Command Window, enter the data for cutting speed, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/ql-cache\/quicklatex.com-b7b84dc122f044347e7d78367397fc48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;&#95;&#123;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"18\" style=\"vertical-align: -3px;\"\/> as a vector in the form: &gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/ql-cache\/quicklatex.com-b7b84dc122f044347e7d78367397fc48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;&#95;&#123;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"18\" style=\"vertical-align: -3px;\"\/>=[30 40 50 100 150 200] (see Figure 1 below).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-1.png\" rel=\"attachment wp-att-2513\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2513 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-1.png\" alt=\"sample of assignment_figure 1\" width=\"241\" height=\"87\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1.<\/p>\n<p>Step 2. In MatLab Command Window, enter the data for spindle speed, n as a vector in the form: &gt; n=[239 318 398 795 1194 1591] (see Figure 2 below).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-2.png\" rel=\"attachment wp-att-2515\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2515 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-2.png\" alt=\"sample of assignment_figure 2\" width=\"398\" height=\"127\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-2.png 398w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-2-300x96.png 300w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2.<\/p>\n<p>Step 3. In order to plot the graph of these two vectors in MatLab Command Window, enter: &gt;plot(V,n) (see Figure 3 below).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-3.png\" rel=\"attachment wp-att-2517\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2517 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-3.png\" alt=\"sample of assignment_figure 3\" width=\"420\" height=\"135\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-3.png 420w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-3-300x96.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 3<\/p>\n<p>Step 4. After accomplishing Step 3, a graph will appear in a new window, as shown in Figure 4 below. In order to add the Title and X and Y labels, go to: Insert&gt;X Lable\/Y Lable\/Title.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-4.png\" rel=\"attachment wp-att-2519\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2519 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-4.png\" alt=\"sample of assignment_figure 4\" width=\"557\" height=\"505\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-4.png 557w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-4-300x272.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 4<\/p>\n<p><em><strong>Question #2<\/strong><\/em><\/p>\n<p>Make an inline function g(x)=x+sin(<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/ql-cache\/quicklatex.com-4d3849fb0aa3d8f17852e99f045ffcf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#123;&#52;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"19\" style=\"vertical-align: 0px;\"\/>). Plot it using vectors x=-5:.5:5; and y=g(x);.<\/p>\n<p><em><strong>Solving<\/strong><\/em><\/p>\n<p>Step 1. In Command Window, enter the inline function as follows: &gt; g = inline(\u2018x+sin(x.^4)\u2019,\u2019x\u2019) (see Figure 1 below).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-5-1.png\" rel=\"attachment wp-att-2547\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2547 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-5-1.png\" alt=\"sample of assignment_figure 5\" width=\"183\" height=\"99\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1<\/p>\n<p>Step 2. Enter the vector x in form of x=-5:.5:5; and y=g(x);. See figure 2 below.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-6-1.png\" rel=\"attachment wp-att-2551\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2551 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-6-1.png\" alt=\"sample of assignment_figure 6\" width=\"177\" height=\"117\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2<\/p>\n<p>Step 3. In order to plot the function g(x) in the Command Window, enter: &gt;plot(x;y) (see result in the Figure 3 below).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-7-1.png\" rel=\"attachment wp-att-2555\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2555 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-7-1.png\" alt=\"sample of assignment_figure 7\" width=\"523\" height=\"415\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-7-1.png 523w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-7-1-300x238.png 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 3<\/p>\n<p>In order to make the plot more precise, the step of the x vector should be reduced. Enter: &gt;x=-5:.01:5;. See result in Figure 4 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-8-1.png\" rel=\"attachment wp-att-2559\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2559 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-8-1.png\" alt=\"sample of assignment_figure 8\" width=\"487\" height=\"387\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-8-1.png 487w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-8-1-300x238.png 300w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 4<\/p>\n<p><em><strong>Question #3<\/strong><\/em><\/p>\n<p>Write a function program for the function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/ql-cache\/quicklatex.com-51cd2908b989f36ff248a3460cffb094_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#123;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"18\" style=\"vertical-align: 0px;\"\/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/ql-cache\/quicklatex.com-6de87adda3562b32e21d989a0682001e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#101;&#94;&#123;&#45;&#120;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"36\" style=\"vertical-align: 0px;\"\/>. Plot the function on [-5,5].<\/p>\n<p><em><strong>Solving<\/strong><\/em><\/p>\n<p>Step 1. In a new document window of MatLab, type the function as shown in Figure 1 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-9.png\" rel=\"attachment wp-att-2639\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2639 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-9.png\" alt=\"sample of assignment_figure 9\" width=\"394\" height=\"163\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-9.png 394w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-9-300x124.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1<\/p>\n<p>Step 2. Save the function as \u201cfunc.\u201d<\/p>\n<p>Step 3. In the Command Window, enter the x vector as follows: &gt; x=-5:.1:5; after this, enter the function as follows: y=func(x);.<\/p>\n<p>Step 4. Plot the function in the graph. Enter: plot(x,y) and the result would be as shown in Figure 2 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-10.png\" rel=\"attachment wp-att-2643\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2643 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-10.png\" alt=\"sample of assignment_figure 10\" width=\"506\" height=\"394\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-10.png 506w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-10-300x234.png 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2<\/p>\n<p><em><strong>Question #4<\/strong><\/em><\/p>\n<p>Write a script program in MatLab that graphs the functions sin x, sin 2x, sin 3x, sin 4x, sin 5x, and sin 6x on the interval [0,2\u03c0] on one plot.<\/p>\n<p><em><strong>Solving<\/strong><\/em><\/p>\n<p>Step 1. In a new document of MatLab, enter the script text as shown in the picture below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-11.png\" rel=\"attachment wp-att-2645\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2645 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-11.png\" alt=\"sample of assignment_figure 11\" width=\"449\" height=\"125\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-11.png 449w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-11-300x84.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1<\/p>\n<p>Step 2. Save the script.<\/p>\n<p>Step 3. In the Command Window, enter the vector x as follows: &gt;&gt; x=linspace(0,2*pi,40); and after this, enter the name of the script, for instance: &gt;&gt;sinus. Result should look like Figure 2 below.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-12.png\" rel=\"attachment wp-att-2647\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2647 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-12.png\" alt=\"sample of assignment_figure 12\" width=\"495\" height=\"392\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-12.png 495w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-of-assignment_figure-12-300x238.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2<\/p>\n<h2>MATLAB Homework Assistance from AssignmentShark<\/h2>\n<blockquote><p>You can also read <a href=\"https:\/\/assignmentshark.com\/blog\/naive-bayes-spam-filter-example\/\" target=\"_blank\" rel=\"noopener noreferrer\">Naive Bayes spam filter example <\/a>posted on our site to help IT students succeed in their studies.<\/p>\n<p><em>The sample of assignment on MATLAB you&#8217;ve recently looked through was accomplished by one of our IT experts. If you need <a href=\"https:\/\/assignmentshark.com\/matlab-help.html\" target=\"_blank\" rel=\"noopener noreferrer\">MATLAB<span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;matlab homework help&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:8395267,&quot;3&quot;:{&quot;1&quot;:0},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:16043212},&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:0},&quot;15&quot;:&quot;'Arial'&quot;,&quot;26&quot;:400}\"> homework help<\/span><\/a> with similar projects and feel difficulties while completing technical assignments, don&#8217;t hesitate to contact AssignmentShark.com and get professional advice, and <a href=\"https:\/\/assignmentshark.com\/matlab-help.html\" target=\"_blank\" rel=\"noopener\">help with MATLAB homework<\/a>.\u00a0<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Question #1 The dependence between cutting speed and spindle speed during turning of the metal shaft is given in the table below. The diameter of the shaft is 40 mm. Using MATLAB, input this data as vectors and plot it. Use the insert icon to label the axes and add a title to your graph. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53,35],"tags":[],"class_list":["post-2507","post","type-post","status-publish","format-standard","hentry","category-it","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/comments?post=2507"}],"version-history":[{"count":32,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2507\/revisions"}],"predecessor-version":[{"id":13417,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2507\/revisions\/13417"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=2507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=2507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=2507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}