From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Plot Linear fit for only given intervals of x in xy plot

JP187_0-1574675306276.png

 

I want to a plot a linear fit as shown (in cyan) between the x axis values as choosen which should be user defined .  I tried to filter out the x axis array greater than lower limit and less than upper limit and plot but due to rest  of data in array as NaN the linear fit doesnt work.

 

please help!!

0 Kudos
Message 1 of 2
(1,705 Views)

Hello JP187,

 

How did you filter given portion of array?

Why you haven't use subtract portion function?

 

Could you please attach the the code?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 2
(1,520 Views)