필터 지우기
필터 지우기

>> R1=1;L=10e​-3;C1=10e-​6;R2=10; A=[{-R1/L}​{-1/L};{1/​C1}{-1/{R2​*C1}}]; B=[{1/L};0]; C[0 1]; D=[0]; ??? A=[{-R1/L}​{-1/L};{1/​C1}{-1/{R2​*C1}}]; | Error: Unbalanced or unexpected parenthesis or bracket.

조회 수: 2 (최근 30일)
Harry
Harry 2013년 9월 12일
help with this

답변 (2개)

Image Analyst
Image Analyst 2013년 9월 12일
You can't just place two cells next to each other like that - you need a comma or semicolon to separate them. Try replacing }{ with }, {
  댓글 수: 2
Image Analyst
Image Analyst 2013년 9월 12일
편집: Image Analyst 2013년 9월 13일
Actually I don't know why you're using cells anyway. Why not just use parentheses so you have normal, regular numbers, not cells. Cells are not for the faint of heart beginner MATLAB programmers.
Harry
Harry 2013년 9월 13일
thanks man i got the solution by removing the unnecessary brackets.

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


Ilham Hardy
Ilham Hardy 2013년 9월 12일
I don't know what you are trying to achieve, but i think you should start with perusing this... http://matlab.wikia.com/wiki/FAQ
R1=1;
L=10e-3;
C1=10e-6;
R2=10;
A=[(-R1/L)*(-1/L);(1/C1)*(-1/(R2*C1))];
B=[(1/L);0];
C=[0 1];
D=0;
  댓글 수: 4
Harry
Harry 2013년 9월 12일
and I am trying to get the step response of R,L,C circuit using steady state equation.
Harry
Harry 2013년 9월 13일
thanks man i got the solution by removing the unnecessary brackets.

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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by