Filter löschen
Filter löschen

Import data doesn't import some of the values

2 Ansichten (letzte 30 Tage)
Emanuele Giacomuzzo
Emanuele Giacomuzzo am 23 Nov. 2020
Beantwortet: Ameer Hamza am 23 Nov. 2020
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 Kommentar
Emanuele Giacomuzzo
Emanuele Giacomuzzo am 23 Nov. 2020
The file that I have attached contains the matrix that I can't import.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 23 Nov. 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Data Acquisition Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by