how to read data file.trc with a for loop?

1 回表示 (過去 30 日間)
Rabih Sokhen
Rabih Sokhen 2021 年 11 月 21 日
回答済み: Image Analyst 2021 年 11 月 21 日
hello guys
i have the following files:
test1.trc , test2.trc , ..... test20.trc " all the followings files are"ReadLeCroyBinaryWaveform"
i want to read all the files by using for loop, my code is:
clear all
clc
for i=1:20
data(i)=ReadLeCroyBinaryWaveform('test'num2str(i),'.trc');
end
%, but I am getting an error, how can I fix this?
Thank you in advance

回答 (1 件)

Image Analyst
Image Analyst 2021 年 11 月 21 日
You forgot to
  1. read the posting guidelines TUTORIAL: How to ask a question (on Answers) and get a fast answer
  2. Give us the actual error message and lines of code that threw the error
  3. Attach the data file
  4. Give us the code for ReadLeCroyBinaryWaveform()
We can't really do much until you do.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by