Import data doesn't import some of the values

4 ビュー (過去 30 日間)
Emanuele Giacomuzzo
Emanuele Giacomuzzo 2020 年 11 月 23 日
回答済み: Ameer Hamza 2020 年 11 月 23 日
When I try to import a matrix into MatLab from a text file, it doesn't import some of the values. An example of values that is not imported is 2.134282. An example of values is imported is 0.00277.
  1 件のコメント
Emanuele Giacomuzzo
Emanuele Giacomuzzo 2020 年 11 月 23 日
The file that I have attached contains the matrix that I can't import.

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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 23 日
Have you tried readmatrix()? It seems to import the value correctly
format long
M = readmatrix('weighted_network.txt');
x = M(26, 35)
Result
>> x
x =
2.134282000000000

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by