help-octave
[Top][All Lists]
Advanced

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

Re: Picking up the correct index values


From: Doug Stewart
Subject: Re: Picking up the correct index values
Date: Wed, 27 May 2020 12:14:22 -0400



On Wed, May 27, 2020 at 9:54 AM GK19 <address@hidden> wrote:
Hi

you cant combine them. It should be 4 arrays. Can you please help me with
that



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


does this help?

vnw_1 = [ 0.00000   0.90000]
vpw_1 = [ -1.8000   -1.2000]
vnw_2 = [ 0.90000   0.00000]
vpw_2 = [ -1.20000  0.20000]

t1=[vnw_1 ; vpw_1]
t2=[vnw_2 ; vpw_2]
q1=(t1(1,1)==t2)
q2=(t1(1,2)==t2)
q3=(t1(2,1)==t2)
q4=(t1(2,2)==t2)
ws=q1+q2+q3+q4
output= t1(ws==1)

--
DASCertificate for 206392


reply via email to

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