NEED HELP FAST! I have several problem about ASCII file.

2 ビュー (過去 30 日間)
della tan
della tan 2018 年 7 月 18 日
再開済み: Walter Roberson 2018 年 12 月 22 日
So, I have a ASCII data file with unknown number (NaN). My teacher want me to change NaN into -99.9999. But when I tried so many times, the undefined variable error is appear. WHAT SHOULD I DO? Pls I appreciate if anyone can help :))
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 7 月 20 日
Please do not close questions that have an answer.

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

回答 (1 件)

Image Analyst
Image Analyst 2018 年 7 月 18 日
What did you try? Did you try the obvious
data(isnan(data)) = -99.9999;
?? What error message did you get?
  6 件のコメント
della tan
della tan 2018 年 7 月 18 日
i dont understand with "If you want to parse the strings into numbers, use textscan(), or sscanf(), or strsplit() with str2double()". Can you give me an exemple with my data?
Walter Roberson
Walter Roberson 2018 年 7 月 18 日
It would be easier to go back to the original text data and import that properly, than to continue working with this badly input .xlsx

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

カテゴリ

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