フィルターのクリア

Converting string to number

3 ビュー (過去 30 日間)
Yara Hassan Moustafa
Yara Hassan Moustafa 2022 年 6 月 15 日
編集済み: Image Analyst 2022 年 6 月 16 日
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 件のコメント
Yara Hassan Moustafa
Yara Hassan Moustafa 2022 年 6 月 16 日
The arrays are differnet and the CSV files are written over each other, so i tried to export the file and then read it again to store the data in matlab. After that, i repeat the runs till i finish the number of samples that i am trying to collect data for.
Image Analyst
Image Analyst 2022 年 6 月 16 日
編集済み: Image Analyst 2022 年 6 月 16 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by