Create variable name from structure fields

4 visualizzazioni (ultimi 30 giorni)
Rajveer Singh
Rajveer Singh il 11 Nov 2017
Risposto: Walter Roberson il 11 Nov 2017
I am reading text files in a folder (Well_A1_1.txt, Well_A1_2.txt......Well_A1_N.txt) and storing file names in a struct as in the image shown below. I am sequentially going running though each file (k= 1:N) and after performing operation on each file and have output variable 'data' a m x n matrix every single time. Now what I want is store 'data' values in Well_A1_1 in first run, Well_A1_2 in second run and so on. Can anyone help.
Thanks! Raj

Risposte (1)

Walter Roberson
Walter Roberson il 11 Nov 2017

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by