필터 지우기
필터 지우기

Formation of another matrix from where I can Plot Data

조회 수: 1 (최근 30일)
Sumit Saha
Sumit Saha 2021년 1월 9일
댓글: Cris LaPierre 2021년 1월 10일
How can I open txt files folder wise and read 2nd column of txt files and store it in another matrix from where I can Plot Data? I've also attached the txt files for reference. I didn't get any confined answer

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 1월 9일
I'd start with learning how to import a single file.
This page will help you learn how to index your data. I'd also suggest completng Ch 5 of MATLAB Onramp. Ch 9 covers plotting as well. Ch 11 talks about importing data.
Perhaps this answer is helpful in seeing how to import multiple files from multiple folders.
  댓글 수: 6
Sumit Saha
Sumit Saha 2021년 1월 10일
@Cris kindly look into this matter...
Undefined function or variable 'readmatrix'.
Error in Test_check (line 34)
d = readmatrix(f,'Range','B1');
Cris LaPierre
Cris LaPierre 2021년 1월 10일
This is the function for loading the data. It was introduced in R2019a, so is not available to you in R2017a. However, just replace this with whatever you normally use to load your files.

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

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by