b=0.25:0.01:0.5;
f1=(10^(1/3)*(10.^b-2.^b))/log(8)
f2=2*(10^(1/3)*(10.^b-2.^b))/log(8)
x=-2:0.5:-6;
y=-6:0.5:-5;
[X,Y]=ndgrid(x,y);
Z=cos(Y)+X.*Y;
subplot(211);
hL=plot(b,[f1' f2']);
set(hL(1),'linestyle','--');
set(hL(2),'marker','x');
set(gca,'Xcolor','g','Ycolor','g');
legend('f1','f2');
title('My graph f1 and f2');
subplot(212);
surf(X,Y,Z,'facecolor','b','linestyle','none')
a4=gca();
xlabel('X')
ylabel('Y')
zlabel('Z')
title('My graph f3');
Warning: Error creating or updating Surface
Error in value of property XData
Array is wrong shape or size
Can you give me an advice what should I do for correct working?

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 24일
편집: madhan ravi 2018년 11월 24일

0 개 추천

x=-6:0.5:-2; %change your line to this
Screen Shot 2018-11-24 at 1.52.15 PM.png

댓글 수: 2

Mariya Shilovskaya
Mariya Shilovskaya 2018년 11월 25일
Thanks a lot!
madhan ravi
madhan ravi 2018년 11월 25일
Anytime :), make sure to accept the answer if it helped

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

제품

릴리스

R2016a

태그

질문:

2018년 11월 24일

댓글:

2018년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by