作业帮 > 综合 > 作业

新手 matlabA =1 2 3 35 6 7 89 10 11 1213 14 15 16>> syms c;>>

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 17:59:13
新手 matlab
A =
1 2 3 3
5 6 7 8
9 10 11 12
13 14 15 16
>> syms c;
>> A(:,1)=c*A(:,1)
The following error occurred converting from sym to double:
Error using ==> mupadmex
Error in MuPAD command:DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable,use the VPA function instead.
>>
按照提示修改就行了,赋值类型错误了;不知道你的目的,A(:,1)=c*A(:,1)改为B=c*A(:,1)就可行了