ÿerror: () must be followed by . or close the index chain

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ÿerror: () must be followed by . or close the index chain

LucaLuca
This post was updated on .
A=
3  5  6 -1
4  -1  9  1
6  3  5   2

G=find(a([1 3],:)<0)

ans =7

Now i want to change in G position in A([1 3],:) in the their first element

A([1 3],:)(G)=A([1 3],1)


but i receive this error :

ÿerror: () must be followed by . or close the index chain





--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: ÿerror: () must be followed by . or close the index chain

Doug Stewart-4


On Mon, Aug 12, 2019 at 3:01 PM LucaLuca <[hidden email]> wrote:
A=
3  5  6 -1
4  -1  9  1
6  3  5   2

G=find(a([1 3],:)<0)

ans =7

Now i want to change in G position in A([1 3],:) in value=10;

A([1 3],:)(G)=10


but i receive this error :

ÿerror: () must be followed by . or close the index chain





--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



Do you still need help?

--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: ÿerror: () must be followed by . or close the index chain

Octave - General mailing list
hi, now i solve it

i changed the code



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html