Effacer les filtres
Effacer les filtres

using for loop to read multiple column vectors

2 vues (au cours des 30 derniers jours)
shah nawaz
shah nawaz le 12 Juin 2020
Modifié(e) : Matt J le 16 Juin 2020
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 commentaire
shah nawaz
shah nawaz le 12 Juin 2020
and this is the function file to import data from txt

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 12 Juin 2020
  11 commentaires
shah nawaz
shah nawaz le 15 Juin 2020
i have attached the code file as well.
Matt J
Matt J le 16 Juin 2020
Modifié(e) : Matt J le 16 Juin 2020
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by