{"id":4355,"date":"2017-09-21T15:37:10","date_gmt":"2017-09-21T15:37:10","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4355"},"modified":"2024-09-04T07:06:33","modified_gmt":"2024-09-04T07:06:33","slug":"how-to-specify-markers-in-octave-matlab-plot","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-specify-markers-in-octave-matlab-plot\/","title":{"rendered":"How to specify Markers in Octave\/Matlab Plot?"},"content":{"rendered":"<h2>How to specify Markers in Octave\/Matlab Plot?<\/h2>\n<p>Let&#8217;s learn the steps involved to specify markers in the Octave\/Matlab plot command with attributes like edge color, face color, and marker size, etc. The octave script with comments shown below to plot the time vs velocity graph.<\/p>\n<h3>Octave Script<\/h3>\n<pre>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n        % Sample Octave Plot\r\n        % LineWidth       = 7.0\r\n        % Plot line color = Blue\r\n        % MarkerEdgeColor = Green\r\n        % MarkerFaceColor = Red\r\n        % MarkerSize      = 30\r\n        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n        gravity=9.81  %m\/s^2\r\n        mass=60  %kg\r\n        c=0.35\r\n\r\n        %time vector\r\n        time=linspace(0,30,30);\r\n\r\n        %Calculate v\r\n        velocity=sqrt(gravity*mass\/c)* tanh(sqrt(gravity*c\/mass).*time);\r\n\r\n        %Plot graph\r\n        figure\r\n        %plot command\r\n        plot(time,velocity,':bo','LineWidth',7.0,...\r\n        'MarkerEdgeColor','g',...\r\n        'MarkerFaceColor','r',...\r\n        'MarkerSize',30)\r\n        xlabel('time')\r\n        ylabel('velocity')\r\n        title('Sample Plot')<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4356\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity.png\" alt=\"Octave Script Time Velocity\" width=\"1920\" height=\"1006\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity-300x157.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity-1024x537.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity-768x402.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Octave-Script-Time-Velocity-1536x805.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3>Plot with Marker<\/h3>\n<p>%plot command<br \/>\nplot(time,velocity,&#8217;:bo&#8217;,&#8217;LineWidth&#8217;,7.0,&#8230;<br \/>\n&#8216;MarkerEdgeColor&#8217;,&#8217;g&#8217;,&#8230;<br \/>\n&#8216;MarkerFaceColor&#8217;,&#8217;r&#8217;,&#8230;<br \/>\n&#8216;MarkerSize&#8217;,30)<\/p>\n<h3>Screenshot<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4357\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave.png\" alt=\"Velocity Time Plot Octave\" width=\"1919\" height=\"1011\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave.png 1919w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave-300x158.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave-1024x539.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave-768x405.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Velocity-Time-Plot-Octave-1536x809.png 1536w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Octave Tutorial on this website can be found at:<br \/>\n<a href=\"https:\/\/www.testingdocs.com\/octave-tutorial\/\"><strong>https:\/\/www.testingdocs.com\/octave-tutorial\/<\/strong><\/a><\/p>\n<p>More information on Octave can be found on the official website:<br \/>\n<a href=\"https:\/\/www.gnu.org\/software\/octave\/index\" rel=\"noopener\">https:\/\/www.gnu.org\/software\/octave\/index<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to specify Markers in Octave\/Matlab Plot? Let&#8217;s learn the steps involved to specify markers in the Octave\/Matlab plot command with attributes like edge color, face color, and marker size, etc. The octave script with comments shown below to plot the time vs velocity graph. Octave Script %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Sample Octave Plot % LineWidth = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-4355","post","type-post","status-publish","format-standard","hentry","category-octave","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4355"}],"version-history":[{"count":10,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4355\/revisions"}],"predecessor-version":[{"id":24031,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4355\/revisions\/24031"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}