Plotting set of data(3D)

hi all, would somebody please help me on plotting these 32 set of values??
(0,1,1)(0,2,1.02)(0,3,1.11)(0,4,1.21)(0,5,1.30)(0,6,1.4)(0,7,1.59)(0,8,1.78)
(10,1,1)(10,2,1.11)(10,3,1.35)(10,4,1.62)(10,5,1.95)(10,6,2.33)(10,7,3.34)(10,8,4.77)
(20,1,1.01)(20,2,1.39)(20,3,2.12)(20,4,3.29)(20,5,5.17)(20,6,8.29)(20,7,22)(20,8,61)
(30,1,1.13)(30,2,2.5)(30,3,6.36)(30,4,17.5)(30,5,50)(30,6,150)(30,7,1400)(30,8,14800)

댓글 수: 3

zohar
zohar 2011년 7월 6일
How do you got this data please indicate axis.
milad babaei
milad babaei 2011년 7월 6일
this is my main problem :
http://mathworks.com/matlabcentral/answers/10787-plotting-data
milad babaei
milad babaei 2011년 7월 6일
indication of axes: X axis for fi......Y axis for (B/H)....Z axis for h values....according to the above subject ..totally we have vector like this :(fi,(B/H),h).

댓글을 달려면 로그인하십시오.

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 7월 6일

0 개 추천

data =[0,1,1;0,2,1.02;0,3,1.11;0,4,1.21;0,5,1.30;0,6,1.4;0,7,1.59;0,8,1.78;
10,1,1;10,2,1.11;10,3,1.35;10,4,1.62;10,5,1.95;10,6,2.33;10,7,3.34;10,8,4.77;
20,1,1.01;20,2,1.39;20,3,2.12;20,4,3.29;20,5,5.17;20,6,8.29;20,7,22;20,8,61;
30,1,1.13;30,2,2.5;30,3,6.36;30,4,17.5;30,5,50;30,6,150;30,7,1400;30,8,14800];
mn = arrayfun(@(i1)length(unique(data(:,i1))),2:-1:1);
c = mat2cell(reshape(data,mn(1),mn(2),[]),mn(1),mn(2),[1 1 1]);
surf(c{:})
ADD
xlabel('fi'),ylabel('B/H'),zlabel('h')

댓글 수: 4

milad babaei
milad babaei 2011년 7월 6일
Thank you for your help.sorry bother u.i am new to MATLAB world .i run this code but there is an error would u plz tell what should i do ?????\
Attempt to execute SCRIPT surf as a function
Error in ==> surf at 7
surf(c{:})
Sean de Wolski
Sean de Wolski 2011년 7월 6일
That means you wrote your own script called 'surf' and that is what's being called. Change the name of the script.
which surf
to find out where it is.
milad babaei
milad babaei 2011년 7월 6일
thank you sean.
milad babaei
milad babaei 2011년 7월 6일
is there any way to fit an equation to that surface??a 2nd order polynomial or any surface equation???would u please help me ??any suggestions..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

Community Treasure Hunt

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

Start Hunting!

Translated by