splitting a graph into a new one

3 ビュー (過去 30 日間)
Daniel
Daniel 2014 年 10 月 3 日
コメント済み: Image Analyst 2014 年 11 月 23 日
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 日
subplot(1,3,1);
plot(t, x, 'b-');
subplot(1,3,2);
plot(t, F, 'b-');
  4 件のコメント
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 日
Anyone else?

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by