help for an exercise answer

3 Ansichten (letzte 30 Tage)
N/A
N/A am 16 Sep. 2023
Beantwortet: Jerbin J am 17 Sep. 2023
The size of two vectors is given by the following commands:
>> size(a)
ans = 5 1
>> size(b)
ans = 1 5
Which operation is allowed? Multiple propositions can be true.
a + b
a' - b
a * b
a' * b
a - b
  1 Kommentar
Steven Lord
Steven Lord am 17 Sep. 2023
Why don't you tell us which ones you think are allowed and which ones you don't (and why you think that way) and we can tell you whether you're right or not (and if you tell us your reasoning, we can explain why.)

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Dyuman Joshi
Dyuman Joshi am 16 Sep. 2023
A simple way is to define 2 vectors (choose values as per your liking) of the given size and find out which are allowed and which are not.
If you want to learn more about the topic in hand, refer to -

Jerbin J
Jerbin J am 17 Sep. 2023
a + b,a' - b,a * b,a - b
These operations can be performed.
a'*b,cannot be performed because:Incorrect dimensions for matrix multiplication.

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by