Dimensionality issue with Matlab Function
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I thought this should be fairly simple, I really have no idea what went wrong, been trying for a week, gosh!! so ashamed of myself.
I define the following at Workspace: I=[5 5.1 5.2 5.2]; V=[95 80 85 20];
I expect an output like this: at t=0, arr=20, at t=1, arr=30, at t=2, arr=40,
When I run the simulation, what I got is: at t=0, arr=20, 0, 0, 0, at t=1, arr=0, 10, 0, 0, at t=2, arr=0, 0, 10, 0,
There are few problems with this result: 1. I expect only one arr value at a particular time, but it came out four arr values at a time
I wonder why the arr never adds up to 30 and 40 etc My system is as follow: http://imgur.com/nEKDqqS
6 件のコメント
want2know
2013 年 11 月 4 日
Wayne King
2013 年 11 月 4 日
You should show the code you've written
Walter Roberson
2013 年 11 月 4 日
The MATLAB part of the code does not change "count", so you need to demonstrate that something will be changing "count"
want2know
2013 年 11 月 5 日
want2know
2013 年 11 月 5 日
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!