Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I create a surf plot 3 vectors who are connected by time?

조회 수: 2 (최근 30일)
maxmathlab
maxmathlab 2017년 12월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I have 3 measurment signals/vectors from a simulation. Speed, acceleration, and g-froce. I want them to plot in a 3D plot but surf() requires a matrix of each x,y and z. They are all connected by time (intervall the simulation measured the 3 values.
exp. xyz and time are all 100 values
x=[27.5:0.05:32.45];
y=[-345:7:350];
z=[-10:0.2:9.8];
time=[0:0.1:9.9];
  댓글 수: 4
Benjamin Kraus
Benjamin Kraus 2017년 12월 6일
편집: Benjamin Kraus 2017년 12월 6일
Can you be a little more clear about what visualization you are hoping to achieve? A surface plot can be used to visualize a function that is dependent on two variables:
z = f(x,y)
If I'm understanding correctly, in your case you have three functions that are all dependent on time:
x = f(t)
y = g(t)
z = h(t)
It isn't clear how you want to visualize that as a 3D surface plot.
It sounds like what you (maybe) want is a 3D plot showing speed, acceleration, and g-force as x, y, and z, all dependent on time. This would require some kind of animation to represent time (because x, y, and z are already claimed by other variables). comet3 may do something kind of like what you are looking for.
maxmathlab
maxmathlab 2017년 12월 6일
편집: maxmathlab 2017년 12월 6일
EDIT: after looking at comet3. I come to the conclusion that this is not helping
kind of, i need want a plain/surface in a 3d plot with the xyz beeing speed acc and g

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by