|Feb7-11, 11:46 AM||#1|
Simple MATLAB problem that has me stumped
1. The problem statement, all variables and given/known data
Use an array for single digit values of x [1,10] to find values of y for the equation y = (e^3x) / (sqrt (x+1)).
2. Relevant equations
3. The attempt at a solution
So, I tried defining the function as Function [ (e^3x) / (sqrt (x+1))] = y(x) , but that gave me an error message. I then tried to just define x and y first with syms x; and syms y;, and then define y as y = (e^3x) / (sqrt (x+1)).
However, since this is actually not a function, i was not able to arrayfun() to get the answer that I needed. This is my first MATLAB homework and the TA didn't explain anything, he just said to do it.
Any help would be greatly appreciated.
|Feb7-11, 05:16 PM||#2|
Here this will fix your problem
x = 1:10; y= (exp(3*x)) ./ (sqrt (x+1))
|Similar Threads for: Simple MATLAB problem that has me stumped|
|The great Antiphon is stumped on a simple problem||Quantum Physics||14|
|a simple problem with matlab code||Programming & Comp Sci||1|
|Matlab, for loop simple division problem||Math & Science Software||1|
|So simple, but stumped. (Triangles)||Precalculus Mathematics Homework||4|
|Simple trig problem has me stumped||General Math||2|