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
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top