필터 지우기
필터 지우기

How to assign values to variables and calculate equation?

조회 수: 1 (최근 30일)
Harsha M V
Harsha M V 2019년 4월 20일
편집: Walter Roberson 2019년 4월 20일
In GUI table, I enter an equations (like '((VDD-VSS)*(Id_M5+(2*(Id_M7))))/(CL*Cc)*Vth_M5^2*Cc').
I split this equations using,
output = regexp(S, '[ ()^*+/-]+', 'split');
output(cellfun(@isempty, output)) = []
I get,
output = 'VDD' 'VSS' 'Id_M5' '2' 'Id_M7' 'CL' 'Cc' 'Vth_M5' '2' 'Cc'
and I have its corresponding values,
ComVal = 1.800000000000000 -1.800000000000000 0.000011200000000 2.000000000000000 0.000010400000000 0.000000000002000 0.000000000010117 0.367000000000000 2.000000000000000 0.000000000010117
class of ComVal is double.
Now, how do I calculate the value of the equation entered?
Thank You.
  댓글 수: 4
Harsha M V
Harsha M V 2019년 4월 20일
Thank You Sir.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by