Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

The function without if statement

1 vue (au cours des 30 derniers jours)
Master Blabla
Master Blabla le 17 Nov 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
How to vectorize this function with if statement
Number = 100
VectorIm = zeros(5000, Number); %%% initialise VectorIm with 5000 and 100
i = 1; %%% counter of column
%%% Values - distance between VectorIm image and ManyVecImage image (float value)

Réponses (1)

Bjorn Gustavsson
Bjorn Gustavsson le 17 Nov 2020
That should to be the same as:
VectorIm = ManyVecImage(:,Values < 10000);
HTH

Cette question est clôturée.

Tags

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by