Array multiplication and array division

Click For Summary

Discussion Overview

The discussion revolves around the operations of array multiplication and array division in MATLAB, exploring their definitions, applications, and distinctions from traditional mathematical operations like scalar and matrix multiplication. Participants are interested in understanding whether these operations have physical applications in fields such as physics or if they are more relevant to areas like banking and accounting.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant expresses curiosity about the physical applications of array multiplication and division in real-world problems.
  • Another participant describes array multiplication as a common operation, explaining it can refer to the dot product or the multiplication of rectangular arrays, but admits uncertainty about 'array division.'
  • A later reply clarifies that 'array division' refers to right or left division in MATLAB, distinguishing it from scalar and cross products learned in mechanics.
  • Some participants suggest that array multiplication is different from matrix multiplication and involves element-wise operations.
  • There is a discussion about the distinction between arrays, vectors, and matrices, with some participants asserting that all vectors and matrices are types of arrays, while others emphasize the differences in data structures and operations.
  • One participant notes that MATLAB's array operations allow for quick modifications of array elements, which is not possible with traditional vectors and matrices.
  • Another participant mentions that element-by-element products of arrays have practical applications, reinforcing that this operation is distinct from matrix multiplication.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the definitions and implications of array multiplication and division. There are multiple competing views regarding the relationship between arrays, vectors, and matrices, as well as the applications of these operations.

Contextual Notes

Some participants express uncertainty about the terminology and the specific operations within MATLAB, indicating a need for clearer examples and definitions to facilitate understanding.

mech-eng
Messages
826
Reaction score
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.
 
Physics news on Phys.org
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'?
 
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:
Perhaps, if you could include some examples, it might illuminate further discussion.
 
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: 546
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.
 
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?
 
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.
 
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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 2 ·
Replies
2
Views
10K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
Replies
19
Views
3K