>> 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 件)
Image Analyst
2013 年 9 月 12 日
1 投票
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
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
2013 年 9 月 13 日
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
2013 年 9 月 12 日
Ilham Hardy
2013 年 9 月 12 日
Did you try my answer?
You need to differentiate the use of curly brackets {} and normal brackets ()
Harry
2013 年 9 月 12 日
Harry
2013 年 9 月 13 日
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!