필터 지우기
필터 지우기

Writing a MATLAB code that does Nodal Analysis

조회 수: 10 (최근 30일)
Jeff Smith
Jeff Smith 2018년 5월 2일
답변: Walter Roberson 2018년 5월 2일
So I'm basically writing a matlab code that will automatically solve a simple circuit (just resistors, current sources and voltage sources) using nodal analysis. All I want the user to do is input values for R, the resistance, or I the current sources. (voltage sources will be transformed into current sources with source transformation.) If I initialize R as a 4x4 matrix consisting of 'inf' in each slot, how would I allow the user to input their own resistances? Using R(2,3)=5 or whatever.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 5월 2일
You could consider using a uitable to allow the user to modify the values, and have a uicontrol to trigger the action.

카테고리

Help CenterFile Exchange에서 Circuits and Systems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by