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
댓글 수: 4
답변 (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!
