Warning: include(connect.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(connect.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(): Failed opening 'connect.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(class/ratings.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 14

Warning: include(class/ratings.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 14

Warning: include(): Failed opening 'class/ratings.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/thesisandcode/public_html/include/header.php on line 14
thesisandcode logo

Thesis Coding Experts

Instant answers to all your coding queries by thesis coding experts
Home Question And Answer

Question Answer

Posted Time & Date | 04:29 PM - 18 January 2016

Ques :  I want to plot (x1, y1, x2, y2, ‘linewidth’, 8), but the linewidth ends up applying to both lines. Do I need to use two plot functions with a hold on command to have line1 a different width than line2?

Answer :  There is no direct solution for this problem, what you can do is:
h=plot(x1,y1,x2,y2,'LineWidth',8);
set(h(1),'linewidth',5);
set(h(2),'linewidth',10);
Was this answer helpful?
Share icon 0 icon 0