I need some help please!
2 views (last 30 days)
Show older comments
Daniel Vonderhaar
on 7 Jun 2021
Commented: Walter Roberson
on 20 Jun 2021
Hello!
I got this as an exsample, but I dont know how to get the solution for these questions. Would one of you please help?
4 Comments
David Hill
on 7 Jun 2021
Recommend you take the matlab onramp:
James Tursa
on 7 Jun 2021
You plug in the known numbers and then solve the equation for the remaining unknown.
Accepted Answer
Daniel Vonderhaar
on 20 Jun 2021
2 Comments
John D'Errico
on 20 Jun 2021
LOL. Usually, we don't encourage people to answer questions posted with no effort shown by the student. But since you answered your own question. I guess that is ok. :)
If I can offer some getting started advice...
You used the variables alpha, beta, gamma. And while they may seem perfectly valid variable names, at the same time, they are also MATLAB functions, every one of them. At this point in your career, you won't be using the gamma or beta functions. But one day you may need to do so. ANd alpha is a graphics utility. Try this:
help alpha
help beta
help gamma
In each case, you will find functions in MATLAB that MAY come in quite handy one day.
A good idea when you use a variable name that seems like a common word, you might check to see if it already exists as a function in MATLAB.
Walter Roberson
on 20 Jun 2021
In practice, using alpha tends to cause problems: it is a common failure to encounter a point in a program where alpha has not been defined, and then to have MATLAB error with a confusing error message when alpha gets used. For example,
bx = x.^(1-alpha)
with alpha not having been defined as a variable, will generate an error about "Too many output arguments".
If beta or gamma are used in the same kind of circumstances, the error is instead about "Not enough input arguments" which tends to be easier to understand.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!