Array multiplication and array division

In summary, array multiplication is a common operation in Matlab and can refer to the dot product between two arrays or multiplying two rectangular arrays together. Arrays are widely used in math and science, and can be referred to as matrices as well. Array division, also known as right or left division, allows one to divide an array by another array. It is a method within Matlab that can quickly modify elements of an array and is not the same as scalar or cross products in mechanics. While arrays can be used to represent vectors and matrices, they are different data structures and can be modified in unique ways within Matlab. The element-by-element product of two arrays can have real world applications and is not the same as matrix multiplication.
  • #1
mech-eng
828
13
Hi, in Matlab I encounter with two new operations for me which are array multiplication and array division. I want to learn that do they have physical applications in real world physics problems or are they be related with banking and accounting.
 
Mathematics news on Phys.org
  • #2
Array multiplication is a fairly common operation. I'm not sure what 'array division' is.

Array multiplication can mean, for example, the dot product between two n x 1 arrays or multiplying two rectangular arrays together to obtain another rectangular array (m x n) x (n x p) = (m x p), where m, n, and p represent the dimensions of the various arrays in the format (no. or rows x no. of columns).

Arrays are used widely in math and science (you may have encountered the term 'matrix'; 'matrix' is another name for an array).

Can you provide a clearer picture of 'array division'?
 
  • #3
SteamKing said:
Array multiplication is a fairly common operation. I'm not sure what 'array division' is.

Array multiplication can mean, for example, the dot product between two n x 1 arrays or multiplying two rectangular arrays together to obtain another rectangular array (m x n) x (n x p) = (m x p), where m, n, and p represent the dimensions of the various arrays in the format (no. or rows x no. of columns).

Arrays are used widely in math and science (you may have encountered the term 'matrix'; 'matrix' is another name for an array).

Can you provide a clearer picture of 'array division'?

Sorry it was a right or left division on an array. But in Matlab we can divide an array such as matrix by another array. I think the example you give on array multiplication is not what I mean. It is different than scalar and cross products in mechanics we learn. I see array multiplication while studying Matlab and it produces an array again but scalar product not. It is also different than matrix multiplication as well.
 
Last edited:
  • #4
Perhaps, if you could include some examples, it might illuminate further discussion.
 
  • #5
SteamKing said:
Perhaps, if you could include some examples, it might illuminate further discussion.


Here is a one example. Is it enough?
 

Attachments

  • array multiplication.png
    array multiplication.png
    7 KB · Views: 464
  • #6
Look like it's just a method within MATLAB that allows someone to modify the elements of the array quickly. It's important to not confuse the data structure of an array with the concept of vector or in the case of a double array, matrix.
 
  • #7
MarneMath said:
Look like it's just a method within MATLAB that allows someone to modify the elements of the array quickly. It's important to not confuse the data structure of an array with the concept of vector or in the case of a double array, matrix.

Confusing array with a vector and a matrix? But both vectors and matrices are already arrays. I think array multiplication is a new type of multiplication, multiplication of element to element.
It can both applied to matrices and vectors so it is not important to confuse any data structure.

Is it correct?
 
  • #8
Not quite. In programming, we often represent vectors and matrices as arrays. In programming arrays are data structures (and data types). It's useful to take the array data structure and input numbers into the memory locations for and create objects that resemble what we know as vectors and matrices. Once you do that you can begin to perform operations on the object that reflect matrix operations. However, as you've just seen, you can also modify the array in a way a normal vector and matrix cannot be modified. What is happening here is a method that exist within MATLAB that modifies the elements in the data sucture, quickly.
 
  • #9
There are applications where an element-by-element product of two arrays (##C_{ij} = A_{ij}B_{ij}##) is useful. Matlab provides this operation because it does have utility. This is not matrix multiplication. It's something different.
 

1. What is array multiplication?

Array multiplication is a mathematical operation that involves multiplying two or more arrays of numbers together. It is similar to regular multiplication, but instead of multiplying single numbers, you are multiplying entire arrays.

2. How is array multiplication different from regular multiplication?

The main difference between array multiplication and regular multiplication is the number of operands involved. Regular multiplication involves multiplying two single numbers, while array multiplication involves multiplying two or more arrays of numbers.

3. What is the purpose of array multiplication?

The purpose of array multiplication is to perform calculations on multiple sets of data simultaneously. It is commonly used in scientific and mathematical applications to solve complex problems and analyze large data sets.

4. What is array division?

Array division is a mathematical operation that involves dividing two arrays of numbers. It is similar to regular division, but instead of dividing single numbers, you are dividing entire arrays.

5. How is array division different from regular division?

Similar to array multiplication, the main difference between array division and regular division is the number of operands involved. Regular division involves dividing two single numbers, while array division involves dividing two or more arrays of numbers.

Similar threads

  • General Math
2
Replies
47
Views
3K
  • General Math
Replies
1
Views
599
Replies
3
Views
242
Replies
1
Views
865
Replies
19
Views
4K
Replies
10
Views
1K
Replies
2
Views
1K
Replies
3
Views
1K
  • Programming and Computer Science
Replies
6
Views
807
Replies
19
Views
2K
Back
Top