作业帮 > 综合 > 作业

matlab7中 运行错误

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/08 08:37:15
matlab7中 运行错误
matlab7中 >> t=0:pi/150:3*pi; >> y1=cos(t)*exp(-t); 为什么一运行就提示 Error using ==> mtimes
Inner matrix dimensions must agree.
matlab7中 运行错误
t是一个向量,matlab中 * 指矩阵乘.
把 * 改成 .* 应该就可以了