سلام
من یک برنامه شبیه برنامه زیر می نویسم
ولی به من ارور زیر رو میده چجوری درستش کنم؟
من یک برنامه شبیه برنامه زیر می نویسم
کد پیاچپی:
c=zeros(1,4);
syms x
for i=1:4
c(i)=sin(i*x)
end
ولی به من ارور زیر رو میده چجوری درستش کنم؟
کد پیاچپی:
The following error occurred converting from sym to
double:
Error using symengine (line 58)
DOUBLE cannot convert the input expression into a double
array.
If the input expression contains a symbolic variable, use
VPA.
Error in Untitled2 (line 5)
c(i)=sin(i*x)