필터 지우기
필터 지우기

Multiple Table addition calculations

조회 수: 5 (최근 30일)
addy fang
addy fang 2020년 7월 27일
편집: addy fang 2020년 7월 27일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by