how to write data to xls sheet?
Mostra commenti meno recenti
value_F = 0.1,0.2,0.3,0.4,0.5,0.6
filename = 'C:\Documents and Settings\admin\Desktop\test.xlsx';
value_F
Data= {'value_F';value_F};
sheet = 1;
xlRange = 'B';
xlswrite(filename,Data,sheet,xlRange)
where value_F is calculated from simulink model and asiigned to workspace,,,am able write oly value_F,,,am unable to write all the values of value_F
1 Commento
nehad mohamed
il 17 Gen 2021
how to write all value for F every value in cell in sheet
Risposta accettata
Più risposte (3)
If there're both CHAR data and DOUBLE data, I prefer to use XLSWRITE twice to make it work without extra effort. Here I assume value_F is a double matrix.
xlswrite(filename,data(1),1,'A1');
xlswrite(filename,data{2},1,'A2');
3 Commenti
Arun Badigannavar
il 24 Gen 2013
Jing
il 24 Gen 2013
Just use the code I provided above, it can do that, just write twice...
Arun Badigannavar
il 25 Gen 2013
Walter Roberson
il 24 Gen 2013
value_F = [0.1,0.2,0.3,0.4,0.5,0.6];
1 Commento
Arun Badigannavar
il 24 Gen 2013
Sachin Ganjare
il 24 Gen 2013
0 voti
Check the type of workspace output variable using "whos ,var_name". It could be a problem with type of data being written in excel.
Categorie
Scopri di più su Gaussian Process Regression in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!