Import data doesn't import some of the values

조회 수: 3 (최근 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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by