how to creat this vector K?
1 次查看(过去 30 天)
显示 更早的评论
A=[1 3 9 10 -1 4 5 2 3 15 1];
B=[10 15] and his index [4 10]
how to creat this vector k?
K=[NaN NaN 9 10 -1 NaN NaN NaN 3 15 1]
3 个评论
Rik
2021-1-30
That is a different question. Do you want to find the maximum value? Then you should read the documentation for the max function. Matlab has very good documentation, it is one of the things I consider being an advantage over their competition.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!