symbolic variable and assignment operator
syms x
syms t
b0=0.05
a3=0.1
b3=0.3;
A=(2*b3-1)/(2*a3-1)
B=(1/2)*b0*((4*a3*b3-1)/2*a3-1);
U=zeros(1,2,’sym’);
V=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
B=zeros(1,2,’sym’);
C=zeros(1,2,’sym’);
D=zeros(1,2,’sym’);
series1(x,t)=sym(zeros(1,1));
series2(x,t)=sym(zeros(1,1));
U(1)=0.05*(1-tanh(B*(20*(x-0.5))));
V(1)=b0*(A-tanh(B*(20*(x-0.5))))
Unable to perform assignment because the left and right sides have a different number of elements.
Error in sym/privsubsasgn (line 1168)
L_tilde2 = builtin(‘subsasgn’,L_tilde,struct(‘type’,'()’,’subs’,{varargin}),R_tilde);
Error in indexing (line 999)
C = privsubsasgn(L,R,inds{:});syms x
syms t
b0=0.05
a3=0.1
b3=0.3;
A=(2*b3-1)/(2*a3-1)
B=(1/2)*b0*((4*a3*b3-1)/2*a3-1);
U=zeros(1,2,’sym’);
V=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
B=zeros(1,2,’sym’);
C=zeros(1,2,’sym’);
D=zeros(1,2,’sym’);
series1(x,t)=sym(zeros(1,1));
series2(x,t)=sym(zeros(1,1));
U(1)=0.05*(1-tanh(B*(20*(x-0.5))));
V(1)=b0*(A-tanh(B*(20*(x-0.5))))
Unable to perform assignment because the left and right sides have a different number of elements.
Error in sym/privsubsasgn (line 1168)
L_tilde2 = builtin(‘subsasgn’,L_tilde,struct(‘type’,'()’,’subs’,{varargin}),R_tilde);
Error in indexing (line 999)
C = privsubsasgn(L,R,inds{:}); syms x
syms t
b0=0.05
a3=0.1
b3=0.3;
A=(2*b3-1)/(2*a3-1)
B=(1/2)*b0*((4*a3*b3-1)/2*a3-1);
U=zeros(1,2,’sym’);
V=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
B=zeros(1,2,’sym’);
C=zeros(1,2,’sym’);
D=zeros(1,2,’sym’);
series1(x,t)=sym(zeros(1,1));
series2(x,t)=sym(zeros(1,1));
U(1)=0.05*(1-tanh(B*(20*(x-0.5))));
V(1)=b0*(A-tanh(B*(20*(x-0.5))))
Unable to perform assignment because the left and right sides have a different number of elements.
Error in sym/privsubsasgn (line 1168)
L_tilde2 = builtin(‘subsasgn’,L_tilde,struct(‘type’,'()’,’subs’,{varargin}),R_tilde);
Error in indexing (line 999)
C = privsubsasgn(L,R,inds{:}); symbolic variable and assignment operator MATLAB Answers — New Questions