Given a matrix A return a vector of the product of the elements in each column using a loop without using prod. - MATLAB Cody - MATLAB Central

Problem 44889. Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.

Difficulty:Rate
 ---------------------
for m:
     3     1     3     3    10     1     9     1     9
     4     1     4     5     6     5     7     6     9
     1    10     9     9     2     6     2     2     2
     8     9     7     1     9     3     2     6     4
---------------------
v= 96	90	756	135	1080	90	252	72	648

Solution Stats

30.77% Correct | 69.23% Incorrect
Last Solution submitted on Sep 04, 2025

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0

Problem Recent Solvers151

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

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

Start Hunting!