Create variable name from structure fields

조회 수: 4 (최근 30일)
Rajveer Singh
Rajveer Singh 2017년 11월 11일
답변: Walter Roberson 2017년 11월 11일
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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 11월 11일

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by