Code covered by the BSD License  

Highlights from
Aircraft Power Network in SimPowerSystems

image thumbnail

Aircraft Power Network in SimPowerSystems

by

 

Aircraft Power Network in SimPowerSystems with AC and DC networks

Plot_FC.m
% Copyright 2013 The MathWorks, Inc.

FCData = eval(char(who(['FC0' num2str(Flight_Cycle_Num) '*'])));

numsigs = length(FCSignalNames);
colorlist = {'y','m','r','g','b','c','k','m'};
maxlist = [1 1 1 1 1 1 1 500];

set(gcf,'Position',[47    54   473   556]);   

for i = 1:numsigs
    subplot(numsigs,1,i)
    stairs(FCData.time,FCData.signals.values(:,i),char(colorlist(i)),'LineWidth',2);
    set(gca,'Ylim',[-1.05 1.05]*maxlist(i));
    set(gca,'Xlim',[0 40]);
%    set(gca,'Xlim',[0 5]);
    legend(strrep(char(FCSignalNames(i)),'_','\_'));
end

subplot(numsigs,1,1)
title(['Flight Cycle ' num2str(Flight_Cycle_Num)],'FontSize',14,'FontWeight','Bold');

Contact us