pulling our elements from a matrix using for loop

1 次查看(过去 30 天)
if matrix A = [1 3 4 2 17 6 4 5 2]
what is a matrix command that i can use it to pull first 6 elements?

采纳的回答

Star Strider
Star Strider 2018-2-26
Try this:
B = A(1:6);

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by