how to plot different cell arrays in just one graphic?

6 次查看(过去 30 天)
Probably it could be a tricky question... however : having 2 different cell arrays, how can I plot the first cell (of the first array) and then the first cell (of the second array) consecutively and create a general plot in the same way for the other cells? , all together in a plot. Thanks.

采纳的回答

Walter Roberson
Walter Roberson 2021-6-22
temp = [reshape(First, 1, []);
reshape(Second, 1,[])];
plot(temp{:})
  5 个评论
Walter Roberson
Walter Roberson 2021-6-24
maxinter = min(length(S), length(S7));
SS = [reshape([S(1:maxinter); S7(1:maxinter)], 1, []), S(maxinter+1:end), S7(maxinter+1:end)];
This code is valid no matter whether S or S7 is the longer vector, as long as both of them are row vectors.

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by