Azzera filtri
Azzera filtri

Sum of a series

1 visualizzazione (ultimi 30 giorni)
David Quilligan
David Quilligan il 29 Gen 2016
Given N = 5, Vref(1) = 16 and Vin = 32 how would you go about solving the above? Are nested for loops needed? If Vin > Vref d(i)=1 and if Vin < Vref d(i) = 0.
  3 Commenti
Akbar Khan
Akbar Khan il 4 Apr 2017
Here are some similar c programs to find the the sum of Arithmetic progression , geometric progression and harmonic progression sum . Although it is a C program but logic remains the same. You can use same looping mechanism to to find sum of your series mentioned above. Hope it helps.
AANJANEY KUMAR VERMA
AANJANEY KUMAR VERMA il 25 Lug 2022
Well I dont see Vin in the posted function at all.
As for your question regarding the nested for loops. No, they are not needed here as you have only one changing variable that is "i". Even if d is function you could calculate its value by writing a simple function in matlab.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements 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!

Translated by