[Scilab-users] Scilab dynamic lists and correct use of null()?
Rafael Guerra
jrafaelbguerra at hotmail.com
Sun Jan 12 15:24:06 CET 2014
Samuel,
Thanks for your message.
There is something a bit confusing in all this...
If one runs the Scilab code below an error occurs:
test(1).parm1 = [ 1 2 3 4];
test(1).parm2 = ones(3,3);
test(2) = test(1);
test(2).parm3 = "hello";
test(2)=[]; // OK
test(1)=[]; // Not OK
!--error 10000
A null assignment can have only one non-colon index
Is this a normal/expected behavior in Scilab?
Do we have to delete single dynamic list elements with 'clear'; while for
the remaining elements one should use []?
PS:
These complex data structures do not seem to be very well documented in
Scilab. Is there a good reference explaining them in detail?
Thanks and regards
Rafael G.
--
View this message in context: http://mailinglists.scilab.org/Scilab-dynamic-lists-and-correct-use-of-null-tp4027237p4028296.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list