Filter löschen
Filter löschen

Multiple Table addition calculations

5 Ansichten (letzte 30 Tage)
addy fang
addy fang am 27 Jul. 2020
Bearbeitet: addy fang am 27 Jul. 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.

Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by