Cadence Calculator : check if number is greater than 1

Status
Not open for further replies.

DaHomer

Newbie level 5
Joined
Jul 30, 2016
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
70
Hi,

I just want to check for each element of a waveform vector, if it is greater than 1.
The result should be a vector of the same size with 0 and 1 as values.

Do you have an idea, how to do this?

Greetings,
DaHomer
 

Do you surely mean vector ?
Data of PSF is not vector.
It is a waveform.
Waveform consists from two vectors.

plot( if(wf > 1.0 then 1.0 else 0.0) )
 

Excuse me, I meant Nx2-matrix or waveform.:grin:

Thanks for the help, that works!
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…