matlab定义a打个比方 syms a 定义一个变量p1=[a,0,0] 给出一个向量norm(p1) 对向量求模Undefined function or method 'norm' for input arguments of type 'sym'.是我定义的不对吗

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/13 07:39:34

matlab定义a
打个比方 syms a 定义一个变量
p1=[a,0,0] 给出一个向量
norm(p1) 对向量求模
Undefined function or method 'norm' for input arguments of type 'sym'.
是我定义的不对吗

norm函数只是支持对数值向量进行计算,不能对符号变量进行计算