Can anyone help me to plot these data by scatter3 ploting?
3 次查看(过去 30 天)
显示 更早的评论
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
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!