how to set a specific value for x axis in 3d plot?

X = 0:195;
X_40 = 40;
X_100 = 100;
Y = time_ms;
Z_40 = data40kA_mm;
Z_100 = d;
figure
plot3(X,Y,Z_40,X,Y,Z_100);
i set the range of X, Y and Z, but i want the specific value of X is 40 and 100, and also in the range of X(0:195). how can i change it?

1 件のコメント

Mark Sherstan
Mark Sherstan 2018 年 12 月 13 日
Please post your code as specified here not as an image.

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

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 13 日

0 投票

Use logical indexing to grasp the values of particular index as shown below :(post your code if it's not what you are looking for)
Z(Z==40)
Z(Z==100)

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

タグ

質問済み:

2018 年 12 月 13 日

編集済み:

2018 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by