Can anyone help me to plot these data by scatter3 ploting?

1 回表示 (過去 30 日間)
Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022 年 4 月 11 日
I have 41 values of temperature starting from 350,351,352,353...........,390 and 30 values of radius starting from 0.001, 0.002, 0.003......,upto 0.03.Now from 41 values of temperature and 30 values of radius , i obtained 41*30 =1230 values of PPDF. Now i have to plot surface graph (with the help of scatter3) between Temperature (let's on x co-ordinate ), radius (let's on y co-ordinate) and PPDF (on z co-ordinate ). How can i plot this ? please help me with the code. Here i am attaching my code which is giving me error.
for reference i am attaching scatter3 graph.
% x co-ordinate data
temp1=350:1:390;
temp=temp1';
% y co-ordinate data
rad1=.001:.001:.03;
rad=rad1';
% z co-ordinate data (for this i have attached PPDF.csv file.)
test=csvread('temp_rad_graph_data.csv'); % here 'temp_rad_graph _data.csv is the file which consist x ,y and z coordinate data
x=test(:,1);
y=test(:,2);
z=test(:,3);
scatter3(x,y,z,'filled')
colormap jet
  4 件のコメント
Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022 年 4 月 12 日
@Riccardo Scorretti, thank you so much for help ,i got the result.
Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022 年 4 月 15 日
@Riccardo Scorretti, how can i apply different colors in x, y and z data in scatter3 graph?
Thank you.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 4 月 11 日
You file only has one column of data. It has 1230 rows, which consists of periods of zeros mixed with periods of non-zero data. The length of the bursts of data is not consistent, so this does not appear to be a case where a 2D array of data accidentally gets written as multiple rows instead of multiple columns.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by