LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting

Solved!
Go to solution

Hello everyone,

 

I want to plot a simulated Rayleigh distribution with the theoretical one, but I have two problems.

1. The y axis is different

2. The simulated is obtained using the histogram block which creates a cluster graph, and because the simulated is obtained using an array 

I cannot use build array function to put them in one graph.

please see the attached pictures below

Download All
0 Kudos
Message 1 of 7
(4,014 Views)

Hi Ali,

 

Would you attach your project please? That will make it easier to explore the issue.

 

This seems like scaling issue between your simulated and theoretical distributions. What are the X inputs that you are giving each one? 

 

Thanks,

Fran

0 Kudos
Message 2 of 7
(3,718 Views)

Thanks for replying,

here you go.

 

Best Regards,

Ali

0 Kudos
Message 3 of 7
(3,662 Views)

I do not know how to give a specific X and Y axis, can you tell me how to do it ?

 

Many thanks,

Ali

0 Kudos
Message 4 of 7
(3,653 Views)
Solution
Accepted by AliSabra

Hi Ali,

 

For plots, you can use Property Nodes to set X/Y ranges. To do that, you can create a reference to the Graph or Histograph and use Property Nodes to modify them. See below for more info:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019ZclSAE&l=en-US

 

For the actual difference in the two plots, I would point you toward the Help for each. The main difference stem from the fact the Histogram is computed numerical and the PDF is generated using an equation. I would also take a look at your X inputs as well:

http://www.ni.com/documentation/en/labview/4.0/analysis-node-ref/continuous-pdf-rayleigh/?prodref=La...

http://www.ni.com/documentation/en/labview/4.0/analysis-node-ref/histogram-single-shot/?prodref=LabV...

 

Thanks,

Frank

 

Plot BD.pngPlot of x vs y.png

 

 

Message 5 of 7
(3,610 Views)

Hello Frank,

 

Thanks for the information, it is really helpful.

Perhaps you can also help me to do maximum likelihood estimation so that I can estimate the  distribution parameters ?

 

Best regards,

Ali

0 Kudos
Message