x=xlsread('book4','tabelle1','R1:AEK1');
>>
>> y=xlsread('book4','tabelle1','R2:AEK2339');
>> [X,Y]=meshgrid(x,y);
>> z=[1:1:2339];
>> [Z]=meshgrid(z);
>> surf(X,Y,Z)
but i get this erorr Error using surf (line 71) Data dimensions must agree.
can you help me,tnx

답변 (1개)

Stephen23
Stephen23 2018년 10월 10일

0 개 추천

Replace this:
>> z=[1:1:2339];
>> [Z]=meshgrid(z);
With something like this:
>> Z = nan(size(Y));
>> Z(:) = 1:numel(Y);

댓글 수: 2

Amin Rezvanpour
Amin Rezvanpour 2018년 10월 15일
tnx a lot for your answer,after this code:x=xlsread('book4','tabelle1','R1:AEK1'); >> y=xlsread('book4','tabelle1','R2:AEK2339'); >> [X,Y]=meshgrid(x,y); >> Z = nan(size(Y)); >> Z(:) = 1:numel(Y); >> surf(X,Y,Z) , now i get this error: Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click here. Can you help me please.tnx
Stephen23
Stephen23 2018년 10월 15일
"now i get this error: Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL"
That is not an error, that is just a warning message telling you that MATLAB has changed which renderer it is using. Unless you have specific needs related to a specific renderer, you can just ignore that warning message.

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

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

질문:

2018년 10월 10일

댓글:

2018년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by