mapping a value to a vector

8 vues (au cours des 30 derniers jours)
Aviram Zilberman
Aviram Zilberman le 24 Juil 2017
Commenté : Aviram Zilberman le 25 Juil 2017
Hi, My question referrers to the attached table : given a value for the parameter in the upper row, I need to match the value for the parameter in the lower row. Is there a matlab short code for doing that ? Thanks, Aviram

Réponse acceptée

Jan
Jan le 24 Juil 2017
Modifié(e) : Jan le 24 Juil 2017
X = [10.2, 7, 25];
Edge = [6, 7.8, 9, 10.8, 17, 18.8, 24, 24.6, Inf];
Bin = [6, 9, 12, 18, 24, 36, 48, 54];
Lambda = Bin(discretize(X, Edge));
  1 commentaire
Aviram Zilberman
Aviram Zilberman le 25 Juil 2017
Wow ! Thanks for the quick answer

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by