for t=0:1:10 L(t) = 3*cos(t); M(t) = diag([L 5*cos(t) 7*cos(t)]); K(t) = [12e5*cos(t) 18e5*cos(t) 34e5*cos(t);18e5*cos(t) 15e5*cos(t) 12e5*cos(t);13e5*cos(t) 12e5*cos(t) 22e5*cos(t)]; [X,e] = polyeig(K, M) o = sqrt(e); fprintf('the freqeuncy is"%d" \n',o) writematrix(o,'hello/tt.xlsx','sheet',1,'range','A1:A30');end
Hi, From the above code I am trying to store 10 time series in a single excel file but I can't able to do it and getting a error like "Array indices must be positive integers or logical values". Can anyone please help me in this.
Thank you in Advance.
Best Answer