Any quick way to generate coordinates (by 3or more independent variables) and plot them?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I can plot this p=[u;v;0]; using ezmesh(p(1),p(2),p(3),[0,2,0,2],10);
but how to plot this? p=[u;v;t]; for all u,v,t =0:0.1:1 Is that i have to use for loops for each point and plot them out one by one?
댓글 수: 0
답변 (2개)
Honglei Chen
2012년 4월 30일
0 개 추천
These two are a little different. ezmesh treats the first 3 inputs as functions, so the fact you have three scalars there just means that they are constant functions. On the other hand, when all your inputs are vectors, ezmesh does not know how to interpret them. The question is really what you want because your u,v,t are all vectors. Are they specifying a curve in 3D space? If you want to use a mesh plot, then you t should be a function of u and v, i.e., you need to have a value of t for each combination of u and v.
Sean de Wolski
2012년 4월 30일
0 개 추천
Yes:
If you have a function, f, that accepts (x,y,z) and returns V, you can plot this using: isosurface() or slice() amongst others.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!