How to load data from a .txt file to matlab in the form of a matrix???

조회 수: 2 (최근 30일)
avinash pabbireddy
avinash pabbireddy 2014년 3월 31일
답변: Prateekshya 2024년 8월 23일
I am saving data in a .txt file from c++ code which is continuously updating in real time.can i get this real time data loaded in to matrix in matlab in real time?? Please help
  댓글 수: 6
Jan
Jan 2014년 4월 1일
What do you mean by "real time"? Notice that the file output is buffered usually, such that the file is written in chunks. Then "real time" is not strictly defined.
avinash pabbireddy
avinash pabbireddy 2014년 4월 1일
As soon as i run the c++ code data is saved in.txt file i want to get this data continously in to matlab

댓글을 달려면 로그인하십시오.

답변 (1개)

Prateekshya
Prateekshya 2024년 8월 23일
Hello Avinash,
As per my understanding, the dlmread() or readmatrix() function will read the data from a file and store it in a matrix. Please refer to the following documentation for more information on the functions:
I hope this helps!

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by