{"id":7824,"date":"2018-03-14T09:35:44","date_gmt":"2018-03-14T09:35:44","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=7824"},"modified":"2022-01-05T11:11:04","modified_gmt":"2022-01-05T11:11:04","slug":"the-preparation-of-fourier-series-matlab","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/the-preparation-of-fourier-series-matlab\/","title":{"rendered":"The Preparation of Fourier Series Matlab"},"content":{"rendered":"<blockquote><p><i><span style=\"font-weight: 400;\">In some cases, this <\/span><\/i><i>Fourier series\u00a0<\/i><i><span style=\"font-weight: 400;\">Matlab sample can help students to deal with their own homework. From the point of view of a student, the sample is a great helper if you have similar homework. However, if you don&#8217;t want to do your assignment on your own, you can leave it to AssignmentShark.com. We have already helped numerous students with different kinds of assignments. You can check out our blog to see more samples in order to understand what type of tasks our experts can solve.<\/span><\/i><\/p>\n<p><i><span style=\"font-weight: 400;\">In the course of completing your order, you have the opportunity to contact the expert directly via chat. You can plan your time as you want while we are completing your order. Your problem solution will be carried out by a professional in your sphere of study. The assignment will be created according to your requirements and academic standards. Due to the fact that homework can be difficult for an average student, we have decided to offer our help to those in need. The <a href=\"https:\/\/assignmentshark.com\/\" target=\"_blank\" rel=\"noopener\">assignment help online<\/a> will be executed in the fastest possible time, so you will receive a completed order even before the deadline.<\/span><\/i><\/p>\n<p><!--more--><\/p><\/blockquote>\n<p><u><b>Task:<\/b><\/u><\/p>\n<p><span style=\"font-weight: 400;\">Using Fourier series methods, solve the heat equation following the inhomogeneous initial boundary value problem using Matlab:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7826\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_01.jpg\" alt=\"\" width=\"387\" height=\"351\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_01.jpg 387w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_01-300x272.jpg 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p><u><b>Solution:<\/b><\/u><\/p>\n<p><span style=\"font-weight: 400;\">First we need to set the constant:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7828\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_02.jpg\" alt=\"\" width=\"297\" height=\"241\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The solution to this problem can be written as follows:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7830\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_03.jpg\" alt=\"\" width=\"460\" height=\"145\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_03.jpg 460w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_03-300x95.jpg 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Where the coefficient <\/span><i><span style=\"font-weight: 400;\">a<\/span><\/i><i><span style=\"font-weight: 400;\"><sub>n<\/sub><\/span><\/i> <span style=\"font-weight: 400;\">(<\/span><i><span style=\"font-weight: 400;\">t<\/span><\/i><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"> satisfies the initial value problem:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_04.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7832\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_04.jpg\" alt=\"\" width=\"348\" height=\"250\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_04.jpg 348w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_04-300x216.jpg 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The values c1, c2, c3 &#8230; are the Fourier sine coefficients of the constant function 10-7:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7834\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_05.jpg\" alt=\"\" width=\"677\" height=\"588\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_05.jpg 677w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_05-300x261.jpg 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The coefficient <\/span><i><span style=\"font-weight: 400;\">a<\/span><\/i><i><span style=\"font-weight: 400;\"><sub>n<\/sub><\/span><\/i> <span style=\"font-weight: 400;\">(<\/span><i><span style=\"font-weight: 400;\">t<\/span><\/i><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"> is given by the following formula:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7836\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06.jpg\" alt=\"\" width=\"1100\" height=\"445\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06.jpg 1100w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06-300x121.jpg 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06-768x311.jpg 768w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_06-1024x414.jpg 1024w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Next we can define the partial Fourier series of the solution:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #4472c4;\">S=symsum(a*sin(n*pi*x\/100),n,1,10);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Fourier series is required for a qualitatively correct solution.<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_07.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7838\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_07.jpg\" alt=\"\" width=\"394\" height=\"256\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_07.jpg 394w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_07-300x195.jpg 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_08.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7840\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_08.jpg\" alt=\"\" width=\"578\" height=\"549\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_08.jpg 578w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_08-300x285.jpg 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The wiggles in the graph suggest that 10 terms is not enough for a correct graph.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Therefore, we will try again with 20 terms:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_09.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7842\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_09.jpg\" alt=\"\" width=\"571\" height=\"266\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_09.jpg 571w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_09-300x140.jpg 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7844\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_10.jpg\" alt=\"\" width=\"578\" height=\"560\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_10.jpg 578w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_10-300x291.jpg 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Now let\u2019s try with 40 terms:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7846\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_11.jpg\" alt=\"\" width=\"584\" height=\"255\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_11.jpg 584w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_11-300x131.jpg 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7848\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_12.jpg\" alt=\"\" width=\"856\" height=\"812\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_12.jpg 856w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_12-300x285.jpg 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2017\/12\/Engineering5_Jun_12-768x729.jpg 768w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">It appears that 20 terms is enough for a qualitatively correct graph at t=600.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some cases, this Fourier series\u00a0Matlab sample can help students to deal with their own homework. From the point of view of a student, the sample is a great helper if you have similar homework. However, if you don&#8217;t want to do your assignment on your own, you can leave it to AssignmentShark.com. We have [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,35],"tags":[],"class_list":["post-7824","post","type-post","status-publish","format-standard","hentry","category-math","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/7824","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=7824"}],"version-history":[{"count":6,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"predecessor-version":[{"id":12877,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/7824\/revisions\/12877"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}