Generating & Plotting Graphs in MATLAB

  • Thread starter Thread starter M11
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
To generate 1000 normally distributed random numbers in MATLAB, the function randn(1000) is used. To visualize this data effectively, a histogram plot is recommended, as it shows the distribution of the points across specified intervals. Simply plotting the raw data points may not provide meaningful insights. MATLAB offers built-in functions for creating histograms, which can be found in the documentation. Utilizing these tools will enhance the analysis of the generated data.
M11
Messages
14
Reaction score
0
hi,

Homework Statement



I am asked to generate 1000 normally distributed random numbers and then plot the scatter and histogram graphs of the data.



The Attempt at a Solution




I used : randn(1000) and it generated the random number, now how can I plot the graphs?

from where can I get the other variable?
 
Physics news on Phys.org

Similar threads

Replies
2
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
7
Views
1K
Replies
10
Views
2K
Replies
1
Views
3K
Replies
6
Views
1K
Back
Top