{"id":5875,"date":"2020-09-02T12:05:02","date_gmt":"2020-09-02T03:35:02","guid":{"rendered":"https:\/\/people.utm.my\/razman-ayop\/?p=5875"},"modified":"2020-09-02T12:05:02","modified_gmt":"2020-09-02T03:35:02","slug":"tutorial-introduction-to-matlab","status":"publish","type":"post","link":"https:\/\/people.utm.my\/razman-ayop\/tutorial-introduction-to-matlab\/","title":{"rendered":"Tutorial: Introduction to Matlab"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h3>Algorithm Coding<\/h3>\n<dl>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/matlab_prog\/array-comparison-with-relational-operators.html\">Array Comparison<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/break.html\">Break<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/exit.html\">Exit<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/matlab_prog\/loop-control-statements.html\">For<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/function.html?requestedDomain=www.mathworks.com\">Function<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/if.html\">If Else<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/return.html\">Return<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/while.html\">While<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/stats\/fitctree.html\">Fit Binary Classification Decision Tree<\/a><\/dt>\n<\/dl>\n<h3>Figure Generation<\/h3>\n<dl>\n<dt><a href=\"http:\/\/blogs.mathworks.com\/pick\/2012\/12\/21\/figure-margins-subplot-spacings-and-more\/\">Figure Margins<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/bar.html\">Bar Graph<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/close.html\">Close Figure<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/173629-how-to-change-figure-size\">Figure Size<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/matlab_prog\/formatting-strings.html\">Formatting Text<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/graphics_transition\/why-are-plot-lines-different-colors.html\">Hold Color<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/xlabel.html\">Label<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/legend.html\">Legend<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/63763\">Legend Font Size<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/29248-gridlegend-a-multi-column-format-for-legends\">Legend Multi Column<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/matlabwindows.html\">No Splash<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/plot.html\">Plot 2D<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/plotyy.html?requestedDomain=www.mathworks.com\">Plot 2 Y Axis<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/linkaxes.html\">Link Axes<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/saveas.html\">Save Figure using Script<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/semilogx.html\">Semilogarithmic plot<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/plotmatrix.html\">Scatter Plot Matrix<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/subplot.html\">Subplot<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/creating_plots\/greek-letters-and-special-characters-in-graph-text.html\">Symbol in Text<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/creating_plots\/add-text-to-specific-points-on-graph.html\">Text to Graph<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/53239-next-line-new-line-in-the-text-code\">Text Next Line<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/154660\">Textbox In Figure<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/6843\">Text Subscript\/Superscript<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/60376-how-to-make-an-inset-of-matlab-figure-inside-the-figure\">Figure in Figure<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/annotation.html\">Annotations (Arrow)<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/100687-how-do-i-extract-data-from-matlab-figures\">Extract data from MATLAB figures<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/view.html\">Viewpoint Specification<\/a><\/dt>\n<dt><a href=\"https:\/\/stackoverflow.com\/questions\/42809230\/same-x-axis-for-two-differenst-subplots-in-matlab\">Share X-Axis<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/286488-how-to-set-facealpha-of-area-plot\">Transparent Plot<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/area.html\">Filled Area<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/125704-how-can-i-save-a-figure-to-a-tiff-image-with-resolution-300-dpi-in-matlab\">Change Image Quality (DPI)<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/284440-how-to-change-simulink-model-line-widths\">Screenshot Simulink<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/392765-how-to-make-only-some-part-of-a-y-axis-label-italic\">Italic<\/a><\/dt>\n<\/dl>\n<h3>Variable Manipulation<\/h3>\n<dl>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/symbolic\/simplify.html\">Algebraic simplification<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/control\/ref\/d2c.html\">Convert model from discrete to continuous time<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/cosd.html\">Cosine (Degree)<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/cos.html\">Cosine (Radian)<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/symbolic\/diff.html\">Differentiate<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/disp.html\">Display<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/symbolic\/inv.html\">Inverse Matric (Symbol)<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/round.html?requestedDomain=www.mathworks.com\">Round Number<\/a><\/dt>\n<dt><a href=\"http:\/\/www.mathworks.com\/matlabcentral\/answers\/53239-next-line-new-line-in-the-text-code\">Text New Paragraph<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/save.html\">Save Workspace Variables to File<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/msgbox.html\">Message Box<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/symbolic\/solve-an-algebraic-equation.html\">Solve Algebraic Equation<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/fprintf.html\">Write data to text file<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/table2array.html\">Table to Array<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/nnet\/ref\/nnstart.html\">Neural network<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/control\/ref\/stepinfo.html\">Step Response Analysis<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/round.html\">Rounding Number<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/summary.html\">Table<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/diary.html\">Save Command Window text to file<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/residue.html\">Partial fraction expansion<\/a><\/dt>\n<\/dl>\n<h3>Matlab\/Simulink<\/h3>\n<dl>\n<dt><a href=\"http:\/\/www.mathworks.com\/videos\/protecting-intellectual-property-in-subsystems-68860.html\">Protecting Subsystems<\/a><\/dt>\n<dt><a href=\"https:\/\/blogs.mathworks.com\/simulink\/2010\/10\/17\/parallel-computing-with-simulink-running-thousands-of-simulations\/\">Parallel Computing<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/products\/connections\/product_detail\/cadence-allegro-pspice-slps.html\">PSpice-Simulink Integration<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/ecoder\/software-in-the-loop-sil-simulation.html?searchHighlight=Software-in-the-Loop&amp;s_tid=doc_srchtitle\">Software-in-the-Loop<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/ident\/examples\/estimating-transfer-function-models-for-a-boost-converter.html\">Estimating Transfer Function Models<\/a><\/dt>\n<dt><a href=\"http:\/\/www.matlabtips.com\/share-but-protect\/\">Protect Matlab Code<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/xpc\/api\/simulinkrealtime.utils.minimumsampletime.html\">Minimum Sample Time<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/web.html#d120e1361622\">Hyperlink<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/1884-how-to-convert-my-gui-program-to-an-exe-file\">GUI to EXE<\/a><\/dt>\n<dt><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/matlab_external\/run-simulink-simulation-from-java.html\">Run Simulink using Script<\/a><\/dt>\n<dt><a href=\"https:\/\/www.youtube.com\/watch?v=zyxi_1OyZ2I\">GUI Basic<\/a><\/dt>\n<dt><a href=\"https:\/\/www.youtube.com\/watch?v=KqV3FCHe1ig\">GUI Plot<\/a><\/dt>\n<\/dl>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Algorithm Coding Array Comparison Break Exit For Function If Else Return While Fit Binary Classification Decision Tree Figure Generation Figure Margins Bar Graph Close Figure Figure Size Formatting Text Hold Color Label Legend Legend Font Size Legend Multi Column No Splash Plot 2D Plot 2 Y Axis Link Axes Save Figure using Script Semilogarithmic [&hellip;]<\/p>\n","protected":false},"author":24954,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[32],"tags":[],"class_list":["post-5875","post","type-post","status-publish","format-standard","hentry","category-research-guidance"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/5875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/users\/24954"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/comments?post=5875"}],"version-history":[{"count":1,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/5875\/revisions"}],"predecessor-version":[{"id":5876,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/5875\/revisions\/5876"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/media?parent=5875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/categories?post=5875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/tags?post=5875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}