Passer au contenu
MathWorks

Cody

  • Centre d’aide MATLAB
  • Communauté
  • Apprendre
  • Obtenir MATLAB MATLAB
  • Connectez-vous
    • Mon compte
    • Mon profil
    • Mes licences

    • Se déconnecter
  • Contactez le support MathWorks
  • Visit mathworks.com
  • MATLAB Answers
  • File Exchange
  • Cody
  • AI Chat Playground
  • Discussions
  • Contests
  • Blogs
  • Post
    • MATLAB Answers

    • Ask a question
    • Discussions

    • Start a Discussion
    • Praise Someone
    • Write an Article
    • Create a Poll
    • File Exchange

    • Submit Code or Toolbox
    • Cody

    • Create a Cody Problem
  • More
    • Communities
    • Treasure Hunt
    • People
    • Community Advisors
    • Virtual Badges
    • About
  • Home
  • Problem Groups
  • Problems
  • Players
  • More
    • Solutions
    • Recent Activity
  • Help

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

Yoav Shallev
Yoav Shallev
153 solvers
0 likes
Solve
Solve Later

 ---------------------
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
Solve

Solution Stats

679 Solutions

153 Solvers

Last Solution submitted on May 30, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers153

Chris Cleveland Riccardo G. Bin Jiang Lorenzo

Suggested Problems

  • Bullseye Matrix

    6111 Solvers

  • Back to basics 21 - Matrix replicating

    1831 Solvers

  • Calculate the area of a triangle between three points

    3579 Solvers

  • multiply by three

    1025 Solvers

  • UICBioE240 problem 1.13

    174 Solvers

More from this Author5

  • Given a Vector v1, create v2 which is the sum of each two adjacent elements in v1. {length(v2)=length(v1)-1}

    163 Solvers

  • Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.

    140 Solvers

  • Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.

    149 Solvers

  • Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:

    157 Solvers

  • Given a Matrix add a frame of 0's to it

    8 Solvers

Problem Tags

  • basics
  • matrix

Community Treasure Hunt

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

Start Hunting!
MathWorksMathWorks

Sélectionner un site web

Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

Vous pouvez également sélectionner un site web dans la liste suivante :

Comment optimiser les performances du site

Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.

Amériques

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asie-Pacifique

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文
    • English
  • 日本 (日本語)
  • 한국 (한국어)

Contactez votre bureau local

  • Trust Center
  • Marques déposées
  • Politique de confidentialité
  • Lutte anti-piratage
  • Statut des applications
  • Conditions d՚utilisation
  • Contact Us

© 1994-2026 The MathWorks, Inc.