octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setfields() compatibility question


From: Rik
Subject: setfields() compatibility question
Date: Mon, 20 Oct 2014 11:36:34 -0700

Can someone test this code snippet in Matlab?

x(2,2).a = 1
setfield (x, {':', 2}, 'a', 2)
x(:,1).a = 3

I expect errors out of the third statement, but I'm interested whether the
setfield command works.

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]