sim function in scilab?

sim function in scilab?

Post by mafifkasn » Tue, 22 Jan 2008 15:50:52


hi there, i am new scilab user from malaysia. this is my work on
matlab.

clear all;

% Simulation parameters
opt = simset('solver','ode5','SrcWorkspace','Current');
TStart=0;
TFinal=40;
a=3;
b=5;

% main
for i=1:1:5
a=i;
b=b+1;

[tout,xout,yout] = sim('afif',[TStart TFinal],opt); %%%% possible
in scilab???
t(:,i)=tout;
x(:,i)=xout(:,2);
end

in this M-file, i used sim function to run a transfer function file
name 'afif'. is there any function in scilab represent the sim
function in matlab?