Difference between revisions of "EGR 103/Fall 2009/Questions"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
*On Problem 5.4.3, I typed in the Manning equation as<source lang="MATLAB">U = (sqrt(S)./n)*((B.*H)/(B+2.*H))^(2/3)</source> which failed to produce a graph. What is the reason for this?<small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Xyz2006tor|Xyz2006tor]] ([[User talk:Xyz2006tor|talk]] • [[Special:Contributions/Xyz2006tor|contribs]]) </small><!-- Template:Unsigned --> | *On Problem 5.4.3, I typed in the Manning equation as<source lang="MATLAB">U = (sqrt(S)./n)*((B.*H)/(B+2.*H))^(2/3)</source> which failed to produce a graph. What is the reason for this?<small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Xyz2006tor|Xyz2006tor]] ([[User talk:Xyz2006tor|talk]] • [[Special:Contributions/Xyz2006tor|contribs]]) </small><!-- Template:Unsigned --> | ||
**That just calculates a value - you have to use the plot command to create a graph. [[User:DukeEgr93|DukeEgr93]] 00:40, 17 September 2009 (EDT) | **That just calculates a value - you have to use the plot command to create a graph. [[User:DukeEgr93|DukeEgr93]] 00:40, 17 September 2009 (EDT) | ||
+ | |||
+ | |||
+ | *how do I find the most displacement for a million values? I've run it for like 25 mintues and matlab is still busy. [[User:Ruobling|Ruobling]] 17:09, 17 September 2009 (EDT) |
Revision as of 21:09, 17 September 2009
Lab 5
- I am making a graph for NormDist.m as part of Lab 5, but I cannot get NormDist to accept a non-square matrix of z values. It treats linspace(-4, 4, 100) as a 100 x 1 matrix. Any hints for how I can graph NormDist? Mjc43 13:46, 12 September 2009 (EDT)
- It's treating it as a 1 x 100 matrix - and that is correct; be sure to use .* and ./ and .^ in your calculation and it will be fine. DukeEgr93 14:42, 12 September 2009 (EDT)
- On Problem 5.4.3, I typed in the Manning equation aswhich failed to produce a graph. What is the reason for this?—Preceding unsigned comment added by Xyz2006tor (talk • contribs)
U = (sqrt(S)./n)*((B.*H)/(B+2.*H))^(2/3)
- That just calculates a value - you have to use the plot command to create a graph. DukeEgr93 00:40, 17 September 2009 (EDT)
- how do I find the most displacement for a million values? I've run it for like 25 mintues and matlab is still busy. Ruobling 17:09, 17 September 2009 (EDT)