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.

답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2019년 6월 2일

1 개 추천

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.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2019년 6월 2일

답변:

2019년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by