clc, close all, clear
%
% simulink2matlab.m - get responses of diff equation form simulink
%
Tmax = 50;                  % Sim time
N0 = 61100500;              %  Initial condition 
C0 = 47000500;              % Initial condition
%
% Parmateres
%
nu = 0.5;
mu = 0.02;
lambda = 0.7;
I = 6*10^6;
%
% Sim system
%
sim('simulink2matlab_3_m',Tmax);
%
% Plot responses (1)
%
figure;
set(gcf,'DefaultLineLineWidth',4);
set(gcf,'DefaultAxesFontSize',14);
plot(ScopeData.time,ScopeData.signals.values);
grid on

