- #1
fsven
- 1
- 0
Hi, Matlab noob here.
I need your help to simplify this Matlab source code. Here the code that i currently use
The code above need to implement into GUI and the "n" is a value that assign by user. So i need to create a code that can generate the "kn=gains(k,n);" automatically.
"gains" is matrix like "54xn".
Thanks in advance.
I need your help to simplify this Matlab source code. Here the code that i currently use
for k=1:1:gg
k1=gains(k,1);
k2=gains(k,2);
k3=gains(k,3);
.
.
kn=pidgains(k,n)
[T,X,Y]=sim('Evaporator_PID',[Tstart Tfinal],opt);
end
k1=gains(k,1);
k2=gains(k,2);
k3=gains(k,3);
.
.
kn=pidgains(k,n)
[T,X,Y]=sim('Evaporator_PID',[Tstart Tfinal],opt);
end
The code above need to implement into GUI and the "n" is a value that assign by user. So i need to create a code that can generate the "kn=gains(k,n);" automatically.
"gains" is matrix like "54xn".
Thanks in advance.