photo

VISHWA D


Last seen: meer dan 4 jaar ago Active since 2020

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
A = [1:5; 6:10; 11:15; 16:20]; row_vector=[1 1 1 1 1] col_vector=[1; 1; 1; 1] result=(row_vector*(A'))*(col_vector)

meer dan 4 jaar ago | 0