Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7501557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:34:33+00:00 2026-05-29T20:34:33+00:00

Matrix A: 10 rows, 50 columns a1 a2 a3 …. b1 b2 b3 ….

  • 0

Matrix A: 10 rows, 50 columns

a1 a2 a3 ….

b1 b2 b3 ….

c1 c2 c3 ….
…

Matrix B: 50 rows, 10 columns

x1 x2 x3….

y1 y2 y3….

….

I would like to multiply data in each rows in Matrix A by columns(1) in Matrix B, the results will look like:

[x1*a1, x2*b1, x3*c1, x4*d1….

x1*a2, x2*b2, x3*c2, x4*d2….

x1*.

….]

Then, multiply each rows of Matrix A by columns(2) in Matrix 8:

[y1*a1, y2*b1, y3*c1, y4*d1….

y1*a2, y2*b2, y3*c2, y4*d2….

y1*. ….]

Then, by row(3) till columns(50)

I am looking for a script : )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:34:35+00:00Added an answer on May 29, 2026 at 8:34 pm

    You can use bsxfun.

    A=rand(10,50);
    B=rand(50,10);
    C=bsxfun(@times,A,permute(B,[3 1 2]));
    

    Here C(:,:,1) would be your first result matrix, and C(:,:,2) the second…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of data in a matrix which I would like to
I have a string matrix with N rows and 2 columns. Each cell stores
A simple 2 dimensional array allows swapping rows (or columns) in a matrix in
Using NumPy , a matrix A has n rows and m columns, and I
I have a matrix in SQL reporting and I would like it to print
Writing an MxN matrix ( M rows, N columns ) to a CSV file:
I have a data frame with 22239 rows & 200 columns. The first column
How can I generate a random matrix with more rows than columns? For example,
A matrix has m rows and n columns (n being a number not exceeding
I have a quadratic matrix(two-dimensional dynamic array of pointers) and need to change rows/columns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.