How to turn the surface plot?

조회 수: 4 (최근 30일)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 11월 1일
댓글: madhan ravi 2018년 11월 2일
if true
% code
Kraft=5:10:1470;
Geschwindigkeit=32:150;
nx = length(Kraft) ; ny = length(Geschwindigkeit) ;
if nx > ny
Geschwindigkeit = linspace(min(Geschwindigkeit),max(Geschwindigkeit),nx ) ;
elseif nx<ny
Kraft = linspace(min(Kraft),max(Kraft),ny) ;
end
load('KvICE.mat','ans');
surf( Geschwindigkeit,Kraft,ans','edgecolor','none');
I want to plot a graph but the expected result is getting confusing.
i am uploading a actual graph and creating some lines to tell u the area where the yellow area should be.
when i use traspose it goes to dotted line portion but i want it on normal line side(see screenshot)

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 1일
편집: madhan ravi 2018년 11월 1일
Kraft=5:10:1470;
Geschwindigkeit=32:150;
nx = length(Kraft) ; ny = length(Geschwindigkeit) ;
if nx > ny
Geschwindigkeit = linspace(min(Geschwindigkeit),max(Geschwindigkeit),nx ) ;
elseif nx<ny
Kraft = linspace(min(Kraft),max(Kraft),ny) ;
end
load('KvICE.mat','ans');
result=fliplr(flip(ans,1))
surf( Geschwindigkeit,Kraft,ans,'edgecolor','none');
  댓글 수: 4
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 11월 2일
i want to change NaN too here... but even after using yout code the yellow side moves to the dotted side..
so i think i have dine something wrong in my calculations
madhan ravi
madhan ravi 2018년 11월 2일
yes maybe because after trying several manipulations if its not working then that might be the only solution

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

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by