DSPRelated.com
Forums

Question about Simulink

Started by Unknown December 7, 2007
Hello everyone,
I'm now buiding a error control system,and the error probability was gaven by commond window,where i wrote :
clear all;
close all;
er=0:0.01:0.05;
Er=[er;er;er;er;er;er;er];
for n=1:length(er)
errB=Er(:,n);
simout('linearsqeX')
s1(n)=[mean(s)];
EN(n)=[er(n)];
end
when i debug it ,the result is :
Warning: The model 'linearsqeX' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of the solver 'ode45' specified in the Configuration Parameters dialog.
??? Function 'sum' is not defined for values of class 'struct'.
Error in ==> sum at 41
[varargout{1:nargout}] = builtin('sum', varargin{:});
Error in ==> mean at 29
y = sum(x)/size(x,dim);
Can anyone help me with the problem?
Could someone please guide me?
Thank you,
suimeihong