how to divide two groups of number and sum the fractions of the two...

조회 수: 1 (최근 30일)
Cheryl
Cheryl 2013년 11월 11일
답변: Image Analyst 2013년 11월 11일
If I had x= 1 2 3 4 5 and y= 6 7 8 9 10...How would I divide x1/y1+ x2/y2? Then how could I take those numbers an add them together?
Thanks So Much

답변 (1개)

Image Analyst
Image Analyst 2013년 11월 11일
Try this:
theSum = sum(x./y)

Community Treasure Hunt

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

Start Hunting!

Translated by