Create a discontinuous surface plot with 3 vectors

2 ビュー (過去 30 日間)
THONTI BEERAIAH
THONTI BEERAIAH 2023 年 8 月 5 日
コメント済み: Dyuman Joshi 2023 年 8 月 5 日
I have 3 vectors. z vector consists of amplitudes. Is there any provision to make the surface plot dicontinuous (between those 2 points only, then again continue with surface plot) when the jump in z vector is above some threshold value ( I tried with substituting with NaN values at such points but they are eliminating extra two points surface also). If this is not possible, can anyone helps me do this in any other convinient way? The code goes as follows
%% Surface plot pressure
y=[1:-0.048:0.856,0.832:-0.024:0.64];
x=[28:2:46];
[X,Y] = meshgrid(x,y);
for i=1:10
p_rms(:,i)=p_rmsF{i};
end
s=surf(X,Y,p_rms);
The above lines are giving me continuous surface, which I do not want
  3 件のコメント
THONTI BEERAIAH
THONTI BEERAIAH 2023 年 8 月 5 日
Thank you for the prompt response, I am trying to plot more or less similar plot. However, this is very general my requirement is a little more specific i.e.this gap will come at various points which can't be done like this. I'll upload my sample soon.
Dyuman Joshi
Dyuman Joshi 2023 年 8 月 5 日
Without the data, it is going to be difficult to suggest a fullproof solution to your specific problem.
Update us when you post the sample.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by