| Thread Closed |
MATLAB exponent problem |
Share Thread |
| Jun3-10, 03:04 PM | #1 |
|
|
MATLAB exponent problem
I am trying to do a very simple problem on MATLAB, but I do not know much about MATLAB so this is challenging. Here is the code:
Code:
y=0:50:300; D=0.210; % D is the mean sediment diameter w=14*D^(1.1); % w is the particle fall speed A=0.067*w^(0.44); % A is the sediment parameter h=A*y^(2/3); % h is the shoreline depth under water plot (y,h); ??? Error using ==> mpower Inputs must be a scalar and a square matrix. Error in ==> beachprof at 5 h=A*y^(2/3); % h is the shoreline depth under water What is going on here and how can I fix it? |
| Jun3-10, 10:33 PM | #2 |
|
|
Your problem is in this line:
Code:
h=A*y^(2/3); Code:
h=A*y.^(2/3); Code:
doc mpower doc power |
| Thread Closed |
Similar discussions for: MATLAB exponent problem
|
||||
| Thread | Forum | Replies | ||
| Problem solving equation with negative exponent | Calculus & Beyond Homework | 8 | ||
| Matlab ODE problem | Math & Science Software | 3 | ||
| confusing exponent problem | General Math | 3 | ||
| Exponent problem | General Math | 10 | ||
| exponent integral problem | Calculus | 4 | ||