matlab7中 运行错误matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimesInner matrix dimensions must agree.

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/18 09:19:56
matlab7中 运行错误matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimesInner matrix dimensions must agree.
xՐ1K@7AMnsgzs9nl)D' rMY 8>>C'N_ʇMߕJ`@!#?<5l>p/ё] XXvG\:[tцo&9sp B'|I|,.(2NfpU*H@S!p{Θ?Y~Wo|m4Cu\D2

matlab7中 运行错误matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimesInner matrix dimensions must agree.
matlab7中 运行错误
matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimes
Inner matrix dimensions must agree.

matlab7中 运行错误matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimesInner matrix dimensions must agree.
t是一个向量,matlab中 * 指矩阵乘.
把 * 改成 .* 应该就可以了