How to plot a graph using for loop?

1 view (last 30 days)
Joyce
Joyce on 23 Apr 2013
I have two matrices
Matrix #1
Rows = individual beam (Row #1 = Beam #1 = Beam A)
Column 1 = Modulus of Elasticity, in pascals
Column 2 = Length measurement, in inches
Column 3 = Width measurement, in inches
Column 4 = Thickness measurement, in inches
Matrix #2
Rows = individual beam (Row #1 = Beam #1 = Beam A)
Column 1 = Mass #1, in grams
Column 2 = Deflection measurement for Mass #1, in inches
Columns 3, 5, 7 and 9 = Mass #2 - #5, respectively, in grams
Columns 4, 6, 8 and 10 = Deflection measurements for Masses #2 - #5, respectively, in inches
And I need to Create polyfit solutions for each parameter, using the data to determine the relationship between stiffness and the parameter.
Length: (A) force versus deflection and (B) stiffness versus L
Width: A) force versus deflection and (B) stiffness versus W
Thickness: (A) force versus deflection and (B) stiffness versus T
Modulus: (A) force versus deflection and (B) stiffness versus E
I kept getting weird look graphs. Thank you!!!
  1 Comment
bym
bym on 23 Apr 2013
can you provide a small sample of your data? Also, you are mixing your units which could definitely produce 'wierd look graphs'

Sign in to comment.

Answers (0)

Categories

Find more on Sparse Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!