maarich
Newbie level 2

hi
i have actually written a code which uses syms function.I want to use this code in simulink,but there seems to be a problem. Is there any alternative for syms function in simulink??.please help....
my code is:
function [CL] = attack(m,h,v,s,alpha0)
clc
syms x;
CL=zeros(300,1);
AOA=zeros(300,1);
ro=zeros(300,1);
for i=1:300
ro(i)=1.225.*((1-(.0065.*h(i)./288.15)).^4.258644);
AOA(i,1)=solve((0.5.*ro(i).*v(i).*v(i).*s.*.1.*(x-alpha0))-(m.*9.81.*cos(x.*pi./180)));
AOA(i,1)=AOA(i,1).*1;
end
i have actually written a code which uses syms function.I want to use this code in simulink,but there seems to be a problem. Is there any alternative for syms function in simulink??.please help....
my code is:
function [CL] = attack(m,h,v,s,alpha0)
clc
syms x;
CL=zeros(300,1);
AOA=zeros(300,1);
ro=zeros(300,1);
for i=1:300
ro(i)=1.225.*((1-(.0065.*h(i)./288.15)).^4.258644);
AOA(i,1)=solve((0.5.*ro(i).*v(i).*v(i).*s.*.1.*(x-alpha0))-(m.*9.81.*cos(x.*pi./180)));
AOA(i,1)=AOA(i,1).*1;
end