Calling for a matrix value
古いコメントを表示
I need to call for values for values from teh matix Qsol every hour of the day but when i try it it gives me an error "??? Subscript indices must either be real positive integers or logicals."
t = 0:1:24
Qsol = [0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0; 32,71,5,5,9; 57,472,38,38,119; 83,651,68,63,286; 87,679,107,82,454; 97, 606,209,97,595; 107,457,318,107,704; 114,252,394,114,772; 116,126,420,126,795; 114,114,394,252,772; 107,107,318,457,704; 97,97,209,606,595; 87,82,107,679,454; 83,63,68,651,286; 57,38,38,472,119; 32,5,5,71,9; 0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0];
-Qsol(t,1)
Any help will be most appreciated :)
Thanks
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!