Time Vector in X axis Plotting

3 ビュー (過去 30 日間)
Amit Chakraborty
Amit Chakraborty 2022 年 6 月 3 日
コメント済み: Voss 2022 年 6 月 3 日
aa = {rand(482,5) , rand(493,5)};
t = linspace(0, 20,975 ); % Generating Time Vector Series
Now how can I plot the cell data "aa" while keeping Time vector Series will lie in the X-axis?
Thanks in ADVANCE !!

採用された回答

Voss
Voss 2022 年 6 月 3 日
aa = {rand(482,5) , rand(493,5)};
t = linspace(0, 20,975 ); % Generating Time Vector Series
n_aa = cellfun(@(x)size(x,1),aa)
n_aa = 1×2
482 493
plot(t(1:n_aa(1)),aa{1})
hold on
plot(t(n_aa(1)+(1:n_aa(2))),aa{2})
  4 件のコメント
Amit Chakraborty
Amit Chakraborty 2022 年 6 月 3 日
Thank you very much !
Voss
Voss 2022 年 6 月 3 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by