matlab作图问题n=data(1:90,1)p=data(1:90,1:90)x=1:50a=p^x*ny=sum(a)n是列向量p是方阵a是列向量为什么做不出离散图形?Error using ==> mpowerAt least one operand must be scalar.Error in ==> Untitled at 4a=p^x*n
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/27 07:09:13
![matlab作图问题n=data(1:90,1)p=data(1:90,1:90)x=1:50a=p^x*ny=sum(a)n是列向量p是方阵a是列向量为什么做不出离散图形?Error using ==> mpowerAt least one operand must be scalar.Error in ==> Untitled at 4a=p^x*n](/uploads/image/z/3932814-30-4.jpg?t=matlab%E4%BD%9C%E5%9B%BE%E9%97%AE%E9%A2%98n%3Ddata%281%3A90%2C1%29p%3Ddata%281%3A90%2C1%3A90%29x%3D1%3A50a%3Dp%5Ex%2Any%3Dsum%28a%29n%E6%98%AF%E5%88%97%E5%90%91%E9%87%8Fp%E6%98%AF%E6%96%B9%E9%98%B5a%E6%98%AF%E5%88%97%E5%90%91%E9%87%8F%E4%B8%BA%E4%BB%80%E4%B9%88%E5%81%9A%E4%B8%8D%E5%87%BA%E7%A6%BB%E6%95%A3%E5%9B%BE%E5%BD%A2%3FError+using+%3D%3D%3E+mpowerAt+least+one+operand+must+be+scalar.Error+in+%3D%3D%3E+Untitled+at+4a%3Dp%5Ex%2An)
xJ@_.[)m4>
RL&duW7T
jĕ?!IMf&6oaD*
nsܙTf"7.+yDh<"j9ji|[U*+eTiDTe0Oу
IиhYY8vۓ9]vM⃥?^`bвdTUZ:[`hsX`o:$m ~j _&BDMs'lt'Թh2VG_Aa?|p:9,'kGxW .vqN˦H97NhsY
matlab作图问题n=data(1:90,1)p=data(1:90,1:90)x=1:50a=p^x*ny=sum(a)n是列向量p是方阵a是列向量为什么做不出离散图形?Error using ==> mpowerAt least one operand must be scalar.Error in ==> Untitled at 4a=p^x*n
matlab作图问题
n=data(1:90,1)
p=data(1:90,1:90)
x=1:50
a=p^x*n
y=sum(a)
n是列向量
p是方阵
a是列向量
为什么做不出离散图形?
Error using ==> mpowerAt least one operand must be scalar.
Error in ==> Untitled at 4a=p^x*n
matlab作图问题n=data(1:90,1)p=data(1:90,1:90)x=1:50a=p^x*ny=sum(a)n是列向量p是方阵a是列向量为什么做不出离散图形?Error using ==> mpowerAt least one operand must be scalar.Error in ==> Untitled at 4a=p^x*n
你把表达式改一下,就ok了
a=p^x*n 改 a=p.^x.*n