I need some help please!
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Daniel Vonderhaar
le 7 Juin 2021
Commenté : Walter Roberson
le 20 Juin 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 commentaires
David Hill
le 7 Juin 2021
Recommend you take the matlab onramp:
James Tursa
le 7 Juin 2021
You plug in the known numbers and then solve the equation for the remaining unknown.
Réponse acceptée
Daniel Vonderhaar
le 20 Juin 2021
2 commentaires
John D'Errico
le 20 Juin 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
le 20 Juin 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!