Borrar filtros
Borrar filtros

Multiple Table addition calculations

5 visualizaciones (últimos 30 días)
addy fang
addy fang el 27 de Jul. de 2020
Editada: addy fang el 27 de Jul. de 2020
I have a few tables each has similar structures with five columns. I want to add them to form new table. For example, 10% of table one add 20% table two and 70% table three to have a new table. The total percentage is 100%. I need to make many tables with all the possible variations.
I tried this:
for A=0:0.1:1, B=0:0.1:1, C=0:0.1:1, and A+B+C=1.0
R=T1.*A+T2.*B+T2.*C
%%T1, T2, and T3 are the tables%%%
end;
It did not work. Can someone help? Thank you.

Respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by