sym.symsum-6ren">
gpt4 book ai didi

arrays - "Attempt to reference field of non-structure array"错误是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-03 20:25:53 25 4
gpt4 key购买 nike

你好,你知道这是什么意思吗?我该如何修复它

??? Attempt to reference field of non-structure array.
Error in ==> sym.symsum at 74
r = mupadmex('symobj::map',f.s,'symobj::symsum',x.s,a.s,b.s);
is it about my symbols which are

syms x y Mi q B alp

或系列的总和...

这个信息不充分,可能不太容易回答,但我的整个功能包含多个功能,所以这里不容易介绍...

最后一个问题是黑白有什么区别吗

syms x & x=sym('x')

最佳答案

Do you have any idea what does it mean?
??? Attempt to reference field of non-structure array.

您正在尝试访问不是结构的变量中的字段,它可能是以下四种之一:

f.s
x.s
a.s
b.s

这些变量中的一个或多个(fxab)是不是结构,但您正在尝试访问其中的字段,就好像它是。

Is there any difference between syms x and sym('x')?

没有。
official documentation指出symssym 的快捷方式.

关于arrays - "Attempt to reference field of non-structure array"错误是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16712546/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com