Converting string to number
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello All,
I need to convert a hug string data to numbers. The data is save in a variable based on the following command such that each row can lead to another huge matrix of data. So how can I convert this to numbers of class double?
for i = 1:1000
PowersScenario1(i+j1,:)={num2str(i) [csvread('ieee123_EXP_POWERS.CSV',1,1)]};
end
Thanks in advance.
Yara Hassan
6 Commenti
Image Analyst
il 16 Giu 2022
Modificato: Image Analyst
il 16 Giu 2022
Can you zip up two of the csv files and attach the file with the paperclip icon?
Do you have only one CSV file? This one: 'ieee123_EXP_POWERS.CSV'?
Or are there many of them and the filename actually changes in your for loop?
Risposte (0)
Vedere anche
Categorie
Scopri di più su Data Type Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!