can someone help me get the MATLAB code

Let’s define two row vectors such that VecA = [3 4 5] and VecB = [5 12 13]. Compute the following:
  1. dot(VecA,VecB)
  2. VecA’ * VecB
  3. VecA * VecB’
  4. VecA .* VecB
  5. VecA’ .* VecB
  6. VecA .* VecB’
The operator, “ .* ” is called element-by-element multiplication (Gilat, Sec. 3.4) and the operator “ ’ ” is a transpose (Gilat, Sec. 2.4). Discuss which expression is identical to dot(VecA,VecB) and why not for other expressions.

Respuestas (1)

Bjorn Gustavsson
Bjorn Gustavsson el 2 de Jun. de 2019
You have the code. They are the lines after the '.' after the list-numbers.
If this is your question, then your first point along the way is the getting started section of the
matlab documentation, just put that string into a search and read-browse-and-test. That's the
best way to get into this. If you want to test-n-try your way forward, start up matlab, then define the first
array like this:
>> VecA = [3 4 5]
and so on...
...the help functionality of matlab is also good for initial browsing, most operations you will need have matlab-functions, so use help and lookfor to search for matlab-solutions already available.
Wellcome to matlab.

Categorías

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 2 de Jun. de 2019

Respondida:

el 2 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by