Generating & Plotting Graphs in MATLAB

  • Thread starter Thread starter M11
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on generating and plotting graphs in MATLAB using normally distributed random numbers. The user successfully generated 1000 random numbers with the function randn(1000) but sought guidance on plotting scatter and histogram graphs. It was established that a histogram plot is essential for visualizing the distribution of the generated data, and MATLAB provides a built-in function for this purpose, specifically hist.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of normally distributed random numbers
  • Knowledge of basic plotting functions in MATLAB
  • Concept of histogram and data distribution
NEXT STEPS
  • Explore MATLAB's hist function for creating histograms
  • Learn about MATLAB's scatter function for plotting scatter graphs
  • Research techniques for customizing plots in MATLAB
  • Investigate statistical analysis of normally distributed data in MATLAB
USEFUL FOR

Students, data analysts, and researchers who need to generate and visualize normally distributed data using MATLAB.

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 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K