필터 지우기
필터 지우기

Sum of a series

조회 수: 1 (최근 30일)
David Quilligan
David Quilligan 2016년 1월 29일
댓글: AANJANEY KUMAR VERMA 2022년 7월 25일
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
Akbar Khan
Akbar Khan 2017년 4월 4일
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 2022년 7월 25일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by