How to let 2 vector row to multiply by itself
1 view (last 30 days)
Show older comments
hi I want vector m to multiply with n but for some reason I got this
input(4,7)
i =
4 5 6 7
output =
16 25 36 49
this is my code
function output=input(m,n)
i=m:n
output=i.*i
end
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!