In the "Section 5 - Further Practice" of MATLAB Onramp, it is stated that, "Indices can be non-consecutive numbers. Try extracting the first, third, and sixth elements of density.". How to do it ?

6 次查看(过去 30 天)
In the "Section 5 - Further Practice" of MATLAB Onramp, it is stated that, "Indices can be non-consecutive numbers. Try extracting the first, third, and sixth elements of density.". How to do it ?

回答(2 个)

Lan Lou
Lan Lou 2020-9-1
You would use:
p=density([1 3 6],:)
or
p=density([1 3 6],end)
or
p=density([1 3 6],1)

Renad Saad
Renad Saad 2020-11-12
how to do the further practice ???

类别

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

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by