|
From: | TAISO, Renpoo |
Subject: | I wanna assign NULL ARRAY inside of Struct |
Date: | Sat, 27 Dec 2014 12:34:33 +0900 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Hi there. I have a question on using Struct in octave. Would you look at these codes? I wanna AUTOMATICALLY set up the Struct containing both integers and NULL ARRAYs for the returning values for a function, to define each variables from the Struct. results = struct( ... 1st. problem is "isnumeric( getfield( results, results_fields{i}, {2} ) ) ". I wanna identify whether or not it is numeric for the value field of the Struct "results". 2nd. problem is "eval( results.( results_fields{i} ) );" in case that I wanna assign NULL ARRAY inside of the Struct "results". What should I do to refactor these codes? Thanks in advance. Renpoo |
[Prev in Thread] | Current Thread | [Next in Thread] |