How can I copy all elements, which > 4 to vector V?

3 次查看(过去 30 天)
I have a M = magic(5) matrix. How can I copy all elements, which > 4 to vector V?

采纳的回答

Abhinav
Abhinav 2023-1-17
M = magic(5);
V=M(M>4)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by