LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert this matlab code to labview?

Solved!
Go to solution

 result = find( ([(arrayofval >= minvalue); 0] & [0; (arrayofval < minvalue)]) |...

([(arrayofval <= minvalue); 0] & [0; (arrayofval > minvalue)]) );

 

thanks in advance.

0 Kudos
Message 1 of 17
(4,287 Views)

anyone can help me on this? thanks...

0 Kudos
Message 2 of 17
(4,276 Views)

Be patient. Your post is only an hour old and most of the members here are volunteers.

0 Kudos
Message 3 of 17
(4,269 Views)

Hi simply_ynan,

  Are you sure that is exact expression you want to find out..Which version of labview are you using?

 

 

Thanks and regards,

srikrishna

Regards,
Srikrishna


0 Kudos
Message 4 of 17
(4,263 Views)

I'm using labVIEW 2010. Yes, this is the code currently I have in Matlab and would like to convert it to LabVIEW.

0 Kudos
Message 5 of 17
(4,258 Views)

Hi simply_ynan,

  But i think utlimately the value will be an empty array?Correct me if i am wrong..

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 6 of 17
(4,248 Views)

Hi srikrishnaNF,

 

That's also my case here. But when using this code in Matlab, I didn't get an empty array. Thanks for helping.

0 Kudos
Message 7 of 17
(4,243 Views)

Simply_ynan,

 

What is your result in Matlab with this code? I am with srikrishnaNF on this one and I would think you would get an empty array. Can you let us know what you are getting in Matlab and then we can better understand what results you should be looking for and thus how to implement your Matlab code in LabVIEW? 

 

David A.

National Instruments
Applications Engineer
0 Kudos
Message 8 of 17
(4,210 Views)

What is a typical set of parameter values you used in matlab?

0 Kudos
Message 9 of 17
(4,194 Views)

arrayofval is equals to values in arrayofval.csv(attached file) and minval is equal to -7.9925.

Then running that code in Matlab will give us the values in result.csv(also in attached file).

Thanks.

 

 

Download All
0 Kudos
Message 10 of 17
(4,182 Views)