伯努利二进制信号发生​器产生的信号通过un​buffer模块可以​在scope中显示出​来,我想用figur​e显示波形,运用pl​ot命令时显示“错误​使用 plot 数据的维度不能...

伯努利二进制信号发生器产生的信号通过unbuffer模块可以在scope中显示出来,我想用figure显示波形,运用plot命令时显示“错误使用 plot数据的维度不能超过二维。”想问一下是哪里出错了,该怎么解决,感谢各位。

 Respuesta aceptada

ginihi
ginihi el 26 de Nov. de 2022

0 votos

改成plot(ScopeData.time,reshape(ScopeData.signals.values,size(ScopeData.time))就可以了,因为从你的结果上看,你的数据是用三维矩阵存储的,要把它做一个变形。

Más respuestas (0)

Etiquetas

Preguntada:

el 26 de Nov. de 2022

Respondida:

el 26 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!