Effacer les filtres
Effacer les filtres

How to make NaN data

1 vue (au cours des 30 derniers jours)
hj lee
hj lee le 11 Juin 2020
Commenté : hj lee le 12 Juin 2020
Hello,
here is the data.
a = [-2 -1 2 3]
b = [1 2 3 4]
c=a.*b
c = [-2 -2 6 12]
right?
but I want to make the NaN value to the negative c data..
in this case, c = [NaN NaN 6 12]
How to do that?
values of b can vary depending on my initial condition, so I need the code which change to NaN automatically.

Réponse acceptée

madhan ravi
madhan ravi le 11 Juin 2020
  1 commentaire
hj lee
hj lee le 12 Juin 2020
Thank you very much!!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by