'For ' loop iteration for xls read and write.
2 visualizzazioni (ultimi 30 giorni)
I am new to matlab, I am facing a problem. I have this piece of code where i am taking value from one column (128 bits, as zero and one only) of an excel file and after some steps, it gives me 11 new values of same length. right now i am manually saving these values as given below:
%some steps giving me 11 new values as 128 bit strings
C(i,:)=jj(); %saving values into a matrix to write into excel.
filename = 'DATASET.xlsx';
Now in the given code i have to chnage the value of column for both read and wite file. Right now i have to manually change 'A:A: to 'B:B' for xlsread and for xlswrite i will update value of column from 'A1:K128' to 'L1:V128'. doing this for small interval is fine but i have to do it for more than 50 files using xlsread.
All i need is your help to design a loop which iterates through column by coulmn for read but for write 11 column/rows.