跳到内容
MathWorks

Cody

  • 帮助中心
  • Cody 问题
  • MathWorks
  • MATLAB 帮助中心
  • 社区
  • 学习
  • 获取 MATLAB MATLAB
  • 登录
    • 我的帐户
    • 我的社区资料
    • 关联许可证

    • 登出
  • 联系 MathWorks 支持人员
  • Visit mathworks.com
  • MATLAB Answers
  • File Exchange
  • Cody
  • AI Chat Playground
  • Discussions
  • Contests
  • Blogs
  • 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
151 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

676 Solutions

151 Solvers

Last Solution submitted on Sep 04, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers151

Riccardo G. CXD Shahriar Kabir Bin Jiang

Suggested Problems

  • Select every other element of a vector

    36151 Solvers

  • Project Euler: Problem 6, Natural numbers, squares and sums.

    2536 Solvers

  • Back to basics 23 - Triangular matrix

    1117 Solvers

  • Is the Point in a Circle?

    627 Solvers

  • Approximate the cosine function

    343 Solvers

More from this Author4

  • 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.

    145 Solvers

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

    161 Solvers

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

    137 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:

    155 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

选择网站

选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。

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

您也可以从以下列表中选择网站:

如何获得最佳网站性能

选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。

美洲

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

欧洲

  • 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)

亚太

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

联系您当地的办事处

  • 信任中心
  • 商标
  • 隐私政策
  • 防盗版
  • 应用程序状态
  • 使用条款
  • Contact Us

© 1994-2026 The MathWorks, Inc.