i'm trying to change the value of k from to 0.1:0.1:7 and when i try this i get this error
??? Error using ==> InputOutputModel.subsasgn at 58Subscript indices must either be real positive integers or logicals.Error in ==> spect at 7G(k)=tf([k],[10*10^-3 1]);
my code:
for k=0.1:0.1:7;G(k)=tf([k],[10*10^-3 1]);end
how can i fix that?
Best Answer