Hello,
I have some data from my measurements and I have created three vectors 1x45000. My Three vectors are x,F and t. x is my displacement vector, F my force and t my time.
I want to do a subplot which I can do. I want the first subplot to be x vs t, the second subplot F vs t.
Then I would like to have some tools in my first subplot. I want to have some markers that I could adjust in the plot. I want to plot a third subplot with the data between these markers, but only F vs x.
How is this possible. I have no clue...
Thank you.

 채택된 답변

Image Analyst
Image Analyst 2014년 10월 3일
편집: Image Analyst 2014년 10월 3일

0 개 추천

subplot(1,3,1);
plot(t, x, 'b-');
subplot(1,3,2);
plot(t, F, 'b-');

댓글 수: 4

Daniel
Daniel 2014년 10월 4일
All this does is make the graph blue? How is it possible to get markers on the first plot which I can adjust so the data for F and X within this interval is plotted in my third plot?
Andrew Reibold
Andrew Reibold 2014년 11월 21일
편집: Andrew Reibold 2014년 11월 21일
When you say markers... are you referring to actual 'markers' as in, a circle or square or something that helps visualize a specific point?
I don't think you are using the right terms.
You probably want some kind of line or slider you can drag around to resize the third plot window, via another plot. I don't know. Its confusing.
Daniel
Daniel 2014년 11월 22일
편집: Daniel 2014년 11월 22일
Okey. Yes I mean sliders of some kind. Markers is the wrong term. I want a slider or if there is another comfartable interactive solution in my firat plot that is F vs t.
I have sampled F,x and t. I am plotting F and x vs t. I want a slider in my plot F vs t so I can set two end points that will have two values of my t-vector. Then i would automatically like to have a plot With F vs x for this interval of the two end points that i have choosen. And i want to do this interactive in my first plot.
Image Analyst
Image Analyst 2014년 11월 23일
So, use a slider. Learn how to put controls on a GUI here: http://blogs.mathworks.com/videos/category/gui-or-guide/

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

추가 답변 (1개)

Daniel
Daniel 2014년 11월 21일

0 개 추천

Anyone else?

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2014년 10월 3일

댓글:

2014년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by