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:
- 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.
답변 (1개)
Bjorn Gustavsson
2019년 6월 2일
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!