About 360,000 results
Open links in new tab
  1. times - MathWorks

    B multiplies arrays A and B by multiplying corresponding elements. The sizes of A and B must be the same or be compatible. If the sizes of A and B are compatible, then the two arrays implicitly expand to match each other.

  2. Matrix multiplication with constant - MATLAB Answers - MathWorks

    Jul 22, 2020 · Matrix multiplication with constant. Learn more about matrix multiplication with constant RR=5; RS=750:150:3600; for i=1:length(RS) k(i)=RR.*RS(i) end am i not supposed to get the answer k(i) in the form of matrix ?

  3. prod - MathWorks

    Find the product of the elements in each row by multiplying in double precision.

  4. mtimes - MathWorks

    For example, multiplying a 102,400-by-102,400 sparse matrix with a 102,400-by-128 full matrix on a machine with 6 physical cores is about 2.7x faster than in the previous release. function timingSparseDenseMult A = delsq(numgrid( 'S' ,322)); B = rand(size(A,2),128); tic for k = 1:10 C = A*B; end toc end

  5. Multiply a scalar to all column of a table - MATLAB Answers

    Feb 3, 2020 · I want to mulitply a scalar to all values in the table (similary to scalar multiplication of a matrix e.g. 2*rand(5,5)). I tried 10*T, it doesn't work. Any suggestions?

  6. How do I multiply each column of a matrix by the corresponding …

    Jun 27, 2009 · There are several ways to multiply each column of a matrix by the corresponding element of the vector. The first is to use the REPMAT function to expand the vector to the same size as the matrix and them perform elementwise multiplication using .* -- however, this will require a large amount of memory.

  7. how to multiply every element in an array? - MATLAB Answers

    Apr 12, 2022 · o=[3,1,9]; This is an example of array. I want to multiply them each others. For example; 3x1x9 = 27 The lenght of array could be different. How can I calculate the multiplaction with for loop.

  8. How to multiply all elements of matrix - MATLAB Answers

    May 6, 2016 · I want to multiply nonzero elements of above matrix i.e. 0.3333*0.6667*1*1*1*0.4*0.2*0.4=0.00711. How to do this.

  9. times - MathWorks

    Multiply the matrices by using the element-wise multiplication operator .*. This operator multiplies each element of the first matrix by the corresponding element of the second matrix. The dimensions of the matrices must be the same.

  10. How to multiply data from cells? - MATLAB Answers - MATLAB …

    Jan 28, 2015 · Your cell array can be converted into a matrix / vector with cell2mat. To calculate the product of the elements of a vector, you use prod. So:

Refresh