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.](/uploads/image/z/10194516-36-6.jpg?t=matlab7%E4%B8%AD+%E8%BF%90%E8%A1%8C%E9%94%99%E8%AF%AFmatlab7%E4%B8%AD+%3E%3E+t%3D0%3Api%2F150%3A3%2Api%3B+%3E%3E+y1%3Dcos%28t%29%2Aexp%28-t%29%3B+%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E8%BF%90%E8%A1%8C%E5%B0%B1%E6%8F%90%E7%A4%BA+Error+using+%3D%3D%3E+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中 * 指矩阵乘.
把 * 改成 .* 应该就可以了