|
From: | Nicholas Jankowski |
Subject: | Re: nonconformant arguments |
Date: | Sun, 5 Apr 2020 09:28:48 -0400 |
I want Xn to be the sum of all elements in o_vector matrix. In Matlab 2018 and newer versions theXn = sum(o_vector,'all');does this work. But octave doesn't support this. How can I do this in octave?
for now, you can replace>> sum(o_vector,'all')with>> sum(o_vector(:))that will work no matter the size or shape of o_vector.
[Prev in Thread] | Current Thread | [Next in Thread] |