Plotting 2 variable opposite ?

1 次查看(过去 30 天)
Stavros
Stavros 2011-11-2
Hello,
A ploting questions: Supposed we have 2 timeseries with the same length ex. x1=rand(100,1) and x2=rand(100,1) how we can created an plot with our variables oppossite ? I mean, using the same yy axes, two plot plot(x1) and bar(x2).(I know about ployy, but this not i am looking for)
ty
  4 个评论
Jonathan Roy
Jonathan Roy 2012-7-12
You find the solution??? I try to do the same thing...
Ryan
Ryan 2012-7-12
Jonathan Roy, you may be better off creating a new question and clarifying what you're looking for (just saying opposite and referencing Top Gun aren't cutting it). Old bumped questions don't seem to get answered as readily as new ones.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2011-11-2
Guessing:
x1 = rand(100,1);
x2 = rand(100,1);
plot(x1);
hold('on');
bar(x2);

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by