Azzera filtri
Azzera filtri

meas, k nearest neighborhood

88 visualizzazioni (ultimi 30 giorni)
Ahsen Feyza Dogan
Ahsen Feyza Dogan il 2 Lug 2019
Risposto: Star Strider il 2 Lug 2019
Hi,
In this code I don't understand that what meas does, and it assings all row and 3rd and 4th column to x.
load fisheriris
x = meas(:,3:4);
gscatter(x(:,1),x(:,2),species)
Thank you

Risposte (1)

Star Strider
Star Strider il 2 Lug 2019
Apparently ‘meas’ is a matrix, The ‘x’ assignment takes columns 3 and 4 from it.
It would have been just as easy (and likely more efficient) to simply code it as:
gscatter(meas(:,3),meas(:,4),species)
and remove ‘x’ altogether.

Categorie

Scopri di più su Stochastic Differential Equation (SDE) Models in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by