二つのベクトルの要素ごとの積の平均を計算しよう - MATLAB Cody - MATLAB Central

Problem 44400. 二つのベクトルの要素ごとの積の平均を計算しよう

Difficulty:Rate
二つの同じ長さのベクトルが与えられたとき、二つのベクトルの要素ごとの積の平均を求めましょう。
例:
二つのベクトル [1 2 3] [10 15 20] が与えられたとき、
それぞれの要素ごとの積の平均を取ると、
解は 33.3333 となります。
途中の計算は (1*10 + 2*15 + 3*20)/3 のようになります。

Solution Stats

53.31% Correct | 46.69% Incorrect
Last Solution submitted on Feb 28, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers390

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!
Go to top of page