Looping a process with 3 data sets

조회 수: 4 (최근 30일)
William Harris
William Harris 2020년 4월 2일
댓글: Rik 2020년 4월 2일
Previously i have written code to plot data, filter out values outside a specified range and then replot the data. This process works perfectly for one data set. I am now required to run the same process to multiple data sets using a loop. How would i go about this?
clear
clear all
clc
List = uigetfile('*txt','MultiSelect','on')
for i=1:length(List)
load(List{i})
end
  댓글 수: 1
Rik
Rik 2020년 4월 2일
Apart from the unnecessary clear clear all clc it looks like you already have the required structure. How doesn't this work?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by