Create a 3D surface using 3 matrices

3 ビュー (過去 30 日間)
mehmet irfan gedik
mehmet irfan gedik 2019 年 12 月 17 日
コメント済み: mehmet irfan gedik 2019 年 12 月 17 日
Hi,
Suppose I have 3 matrices of size 50x1x2. The first page of this matrix consists of 50 values. On the second page, respectively 0 for the first matrix, 1 for the second matrix, 2 for the third matrix, all row values. For instance, first matrix like that;
val(:,:,1) = 406.9411 ; 391.6759 ; ......... (50 value)
val(:,:,2) = 0 ; 0 ; 0 ;........ (50 value)
Similarly other matrices have this structure. How can I use these matrices to show them on a graph by creating a surface between them ?
Thanks for your answer in advance.

回答 (1 件)

Andreas Bernatzky
Andreas Bernatzky 2019 年 12 月 17 日
編集済み: Andreas Bernatzky 2019 年 12 月 17 日
  1 件のコメント
mehmet irfan gedik
mehmet irfan gedik 2019 年 12 月 17 日
Yes I know these two functions but I don't know how I'll solve this problem.
untitled.jpg
I get the graph by typing this code. Applied in 3 matrices. But how do I create a surface between these curves ?
[X,Y] = meshgrid(zeros(1,50),1:50);
Z = repmat([TestScansmooth1], 1, 50);
A=surf(X,Y,Z);
hold on
Note: TestScansmooth1 (50x1 matrix)

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

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by