How to use the Sum function in this instance
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ahmed Alzaabi
il 8 Feb 2023
Risposto: Image Analyst
il 9 Feb 2023
Hello, Ive been writing code for one of my modules and came across a formula that I dont understand how to put it in matlab, it is this equation below:

My problem is that I dont understand how to use the sum function in this instance
4 Commenti
Torsten
il 8 Feb 2023
Are you sure you included the correct code ?
And you didn't tell us about x and z.
So far I can see that if a = 0 as in your code, d_eps_alpha will also be 0.
Risposta accettata
Image Analyst
il 9 Feb 2023
Take it one term at a time, like
fi = 5 : 85;
term1 = 0.5 * cosd(fi) .^ 2
term2 = whatever
numerator = whatever
denominator = whatever
d = scalingFactor * sum(numerator ./ denominator);
I know you can do it. I have confidence in you.

0 Commenti
Vedere anche
Categorie
Scopri di più su Guidance, Navigation, and Control (GNC) in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!