[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to create automatically the variable name
From: |
Leloup |
Subject: |
Re: How to create automatically the variable name |
Date: |
Sun, 24 Jun 2018 04:17:43 -0700 (MST) |
>> for K = 1:3,struct(["A",num2str(K)],K),endfor
ans =
scalar structure containing the fields:
A1 = 1
ans =
scalar structure containing the fields:
A2 = 2
ans =
scalar structure containing the fields:
A3 = 3
>> A1
error: 'A1' undefined near line 1 column 1 ??????????????????????
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html