필터 지우기
필터 지우기

using for loop to read multiple column vectors

조회 수: 2 (최근 30일)
shah nawaz
shah nawaz 2020년 6월 12일
편집: Matt J 2020년 6월 16일
I want to use a for loop to read different column vectors which are mentioned with different fn data in attached file and then I want to plot several figures from the output of for loop. Main problem is I don't know how to import fn vector data multiple times in loop and replace it with next fn vector when code complete for previous loop.
I have already imported data from txt file by using import tool and named the columns with variable names. fn is a varible which has name fn 10, fn22, fn32.... these are 5 column vectors.
  댓글 수: 1
shah nawaz
shah nawaz 2020년 6월 12일
and this is the function file to import data from txt

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

답변 (1개)

Matt J
Matt J 2020년 6월 12일
  댓글 수: 11
shah nawaz
shah nawaz 2020년 6월 15일
i have attached the code file as well.
Matt J
Matt J 2020년 6월 16일
편집: Matt J 2020년 6월 16일
You are not using the same variable 'i' for both the inner and outer loops loop counters. Additionally, you don't seem to be using the loop counters anywhere inside the loops.

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

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by