help-octave
[Top][All Lists]
Advanced

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

Re: nonconformant arguments


From: Doug Stewart
Subject: Re: nonconformant arguments
Date: Sat, 4 Apr 2020 12:46:02 -0400



On Sat, Apr 4, 2020 at 12:37 PM Hamed Khatibi <address@hidden> wrote:
Hi
Please help me with this error:
operator +: nonconformant arguments (op1 is 1x17, op2 is 1x18)
error: called from
    Project2 at line 14 column 23

The part of the code is:
o_vector(i,j) = input('Please enter the '+num2str(j)+...
            'th element of the '+i+'th region output vector: ');

Also if i bypass this error I have another errors, for example in this line:
Xn = sum(o_vector,'all');
The debuger says "all" is undefined.

Please help me how can I correct these types of errors when using octave instead of Matlab.
Thanks





you can try this:
o_vector(i,j) = input(['Please enter the '  num2str(j)  'th element of the '  i  'th region output vector: ']);
--
DASCertificate for 206392


reply via email to

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