I am getting an empty plot.
Show older comments
x1 = 0.01;
x2 = 0.2;
d0min = fminbnd(@Sold0, x1, x2);
d0min
disp(d0min);
d0 = 0.01:0.2;
diff = Sold0(d0);
plot (d0,diff)
xlim([0.01 0.08])
ylim([0 inf])
%xlabel('Tube outside diameter (d0)');
%ylabel('Assumed Flux(Q) - Obtained Flux(qr)');
>> Probably because, the y axis range is too big. Y varies from 10^6 till 10^14. How do I plot it here? PS: Attached files for reference.
Answers (1)
KSSV
on 6 Dec 2017
Replace plot command:
plot (d0,diffD)
with
plot (d0,diffD,'.')
2 Comments
Devdatt Thengdi
on 6 Dec 2017
KSSV
on 6 Dec 2017
Take d0 as a vector:
d0 = linspace(0.01,0.2);
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!