How to define a new variable in a table, Part 3

1 vue (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 19 Juin 2020
Commenté : madhan ravi le 19 Juin 2020
I have a table test
date breakfast lunch
1/2/2020 10 20
1/3/2020 5 25
1/4/2020 8 20
Just for the sake of an exmple, I want to calculate a new variable with the formula
test.newvariable(k) = test.lunch(k)/sqrt(test.breakfast(k))
Can one define this new variable without using a loop?

Réponse acceptée

madhan ravi
madhan ravi le 19 Juin 2020
Modifié(e) : madhan ravi le 19 Juin 2020
Remove (k) and replace / with ./
  2 commentaires
alpedhuez
alpedhuez le 19 Juin 2020
let me work on it
madhan ravi
madhan ravi le 19 Juin 2020
But we already made it in your previous questions , didn’t we ;)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by