The following error occurred converting from sym to double:
Publicado por VICTOR (6 intervenciones) el 10/05/2017 07:51:03
tengo lo siguiente:
pero cuado lo corro me sale el sgte error:
The following error occurred converting from sym to double:
Error using symengine (line 59)
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use VPA.
Error in Untitled4 (line 16)
V(j,:)=eval(v)
alguien sabe por que?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
syms x y a b
v=[1 x y x*y x^2 y^2 x^2*y x*y^2]
xi=[-a,0,a,a,a,0,-a,-a]
yi=[-b,-b,-b,0,b,b,b,0]
p=length(v)
V=zeros(p)
T=diag(ones(p,1))
i=1
for j=1:p
x=xi(i,j)
y=yi(i,j)
eval(v)
V(j,:)=eval(v)
end
pero cuado lo corro me sale el sgte error:
The following error occurred converting from sym to double:
Error using symengine (line 59)
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use VPA.
Error in Untitled4 (line 16)
V(j,:)=eval(v)
alguien sabe por que?
Valora esta pregunta


0