Change the file-name in tblwrite when created table
Show older comments
I want to create 15 txt tables with different names by using tblwrite in matlab. my attempt was in this code I want to create 15 txt tables with different names by using tblwrite in matlab. my attempt was in this code
for j=1:15 rownames=char(rownames1(:,j)); T(:,1)=[1:length(K_minus_t)]; table=char(T(j,1)); colnames{j}={'lambda_L';'C_L';'lambda_N';'tau_N';'lambda_c';'tau_c';}; values{j}=[coef_line lam_tau_curve lam_tau_cap]; tblwrite(values{j},colnames{j},rownames,'table.txt'); end unfortunately, it was failed. Any help would be greatly appreciated. I will be grateful to you.
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!