How do you input this function

K = Gain of the amplifier = 12.5.
Vi = input voltage -2.5 < Vi < 2.5 V, (use 0.25 increments).
V+ = positive power supply voltage, V+ = +20 V.
V- = negative power supply voltage V- = -20V.
Vo = output voltage
Vo = -KVi
How do i input the range of voltage into matlab? I am stuck on what to do. I am supposed to plot the output voltage

 채택된 답변

Image Analyst
Image Analyst 2013년 4월 28일

0 개 추천

Do you want to interactively ask the user for them? If so, look at inputdlg(). There are examples in the help. Otherwise just hard code them into your code like
positiveV = 20;
negativeV = -20;
Vi = -2.5 : 0.25 : 2.5; % Alternatively use linspace()

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Circuits and Systems에 대해 자세히 알아보기

태그

질문:

2013년 4월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by