Time Vector in X axis Plotting

3 visualizaciones (últimos 30 días)
Amit Chakraborty
Amit Chakraborty el 3 de Jun. de 2022
Comentada: Voss el 3 de Jun. de 2022
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 !!

Respuesta aceptada

Voss
Voss el 3 de Jun. de 2022
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 comentarios
Amit Chakraborty
Amit Chakraborty el 3 de Jun. de 2022
Thank you very much !
Voss
Voss el 3 de Jun. de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by