Clear Filters
Clear Filters

Multiple Table addition calculations

5 views (last 30 days)
addy fang
addy fang on 27 Jul 2020
Edited: addy fang on 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.

Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!