can someone help me get the MATLAB code
Mostrar comentarios más antiguos
Let’s define two row vectors such that VecA = [3 4 5] and VecB = [5 12 13]. Compute the following:
- dot(VecA,VecB)
- VecA’ * VecB
- VecA * VecB’
- VecA .* VecB
- VecA’ .* VecB
- 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
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
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!