Statistics
MATLAB Answers
0 Questions
1 Answer
RANK
12,543
of 297,503
REPUTATION
4
CONTRIBUTIONS
0 Questions
1 Answer
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
1
RANK
of 20,449
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 159,017
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
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] B(1:4)=1; f=B*A C(1:5)=1; C=C' result=f*C
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] B(1:4)=1; f=B*A C(1:5)=1; C=C' result=f*C
5 years ago | 1