How to determine if elements in a column are negative
古いコメントを表示
I am developing a program for a class project to determine the states for a petri net. It will use the basic algorithm for a coverability tree. One of the first steps is determining the firability of a transition, and I would need to determine if any of the elements in a column of a matrix is negative. I looked through the function list and didn't see anything that would apply.
Any suggestions for either the column logic or petri net in general would be appreciated.
Thanks
採用された回答
その他の回答 (1 件)
vipul utsav
2013 年 3 月 22 日
1 投票
[ind1 ind2]=find(matrix<0); matrixneg=matrix(ind1,ind2);
カテゴリ
ヘルプ センター および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!