PPRuNe Forums - View Single Post - Estimating angle of attack
View Single Post
Old 19th May 2011 | 07:40
  #12 (permalink)  
maarich
 
Joined: May 2011
Posts: 8
Likes: 0
From: GERMANY
thanks again.
I have one more doubt related to matlab.

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
maarich is offline