Matlab中出现?Error using ==> mtimes Inner matrix dimensions must agree.程序如下x=3:0.1:20;y=x*(cos(x))^3.*(sin(x))^2+x^2.*(sin(x*8))^3-9*x^4.*cos(x);

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 06:41:26

Matlab中出现?Error using ==> mtimes Inner matrix dimensions must agree.程序如下x=3:0.1:20;y=x*(cos(x))^3.*(sin(x))^2+x^2.*(sin(x*8))^3-9*x^4.*cos(x);
Matlab中出现?Error using ==> mtimes Inner matrix dimensions must agree.程序如下
x=3:0.1:20;
y=x*(cos(x))^3.*(sin(x))^2+x^2.*(sin(x*8))^3-9*x^4.*cos(x);

Matlab中出现?Error using ==> mtimes Inner matrix dimensions must agree.程序如下x=3:0.1:20;y=x*(cos(x))^3.*(sin(x))^2+x^2.*(sin(x*8))^3-9*x^4.*cos(x);
你不是知道用点乘吗,要全部哈(群运算哈)
>> x=3:0.1:20;
y=x.*(cos(x)).^3.*(sin(x)).^2+x.^2.*(sin(x.*8)).^3-9.*x.^4.*cos(x)
嗯,ok?