MATLAB Answers

## How to turn the surface plot?

Asked by Shubham Mohan Tatpalliwar

### Shubham Mohan Tatpalliwar (view profile)

on 1 Nov 2018
Latest activity Commented on by madhan ravi

### madhan ravi (view profile)

on 2 Nov 2018
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)

#### 0 Comments

Sign in to comment.

## 1 Answer

### madhan ravi (view profile)

Answer by madhan ravi

### madhan ravi (view profile)

on 1 Nov 2018
Edited by madhan ravi

### madhan ravi (view profile)

on 1 Nov 2018

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 Comments

Show 1 older comment
madhan ravi

### madhan ravi (view profile)

on 1 Nov 2018
So you don’t want to change NaN values?
Shubham Mohan Tatpalliwar

### Shubham Mohan Tatpalliwar (view profile)

on 2 Nov 2018
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 (view profile)

on 2 Nov 2018
yes maybe because after trying several manipulations if its not working then that might be the only solution

Sign in to comment.