MATLAB Answers

HOW CAN I MULTIPLY VALUES IN JUST ONE COLUMN?

4 views (last 30 days)
Pul
Pul on 24 Jun 2021
Commented: Pul on 24 Jun 2021
Hi everyone,
I should multiply all the values of the column "Var4" for those values:" x10x0.5" ; how could I do it?
Thank you very much.
  4 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 24 Jun 2021
It looks like you have a table. If T is your table and you want to multiply 3 and 4 th column.
iwant = T.(3).*T.(4) ; % .* <-- element by element multiplication
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!