* Given vec = 1:10, which statement below produces the same value of s as does the ?following script s = 0; for i=1:length(vec) s = s+vec(i)*vec(i); end s = sum(vec^2); O s = vec*vec'; O =vec'*vec; O s = vec.^2; O s = vec.*vec; O

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter6: The Trigonometric Functions
Section6.1: Angles
Problem 27E
icon
Related questions
Question
Given vec = 1:10, which statement below
produces the same value of s as does the
?following script
S = 0;
for i=1:length(vec)
s = s+vec(i)*vec(i);
end
s = sum(vec^2); O
s = vec*vec'; O
s = vec'*vec; O
s = vec.^2; O
s = vec. *vec; O
Transcribed Image Text:Given vec = 1:10, which statement below produces the same value of s as does the ?following script S = 0; for i=1:length(vec) s = s+vec(i)*vec(i); end s = sum(vec^2); O s = vec*vec'; O s = vec'*vec; O s = vec.^2; O s = vec. *vec; O
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Elementary Geometry For College Students, 7e
Elementary Geometry For College Students, 7e
Geometry
ISBN:
9781337614085
Author:
Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:
Cengage,
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell