I am getting an empty plot.

조회 수: 1 (최근 30일)
Devdatt Thengdi
Devdatt Thengdi 2017년 12월 6일
댓글: KSSV 2017년 12월 6일
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.

답변 (1개)

KSSV
KSSV 2017년 12월 6일
Replace plot command:
plot (d0,diffD)
with
plot (d0,diffD,'.')
  댓글 수: 2
Devdatt Thengdi
Devdatt Thengdi 2017년 12월 6일
Okay. So, same code I should get Sold0(d0) over the entire range of d0 (0.01:0.2) but, I am getting only a single point at d0 = 0.01 and Sold0 = 3.132e^6. Why?
KSSV
KSSV 2017년 12월 6일
Take d0 as a vector:
d0 = linspace(0.01,0.2);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by