![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/9375180_1531918149384_DEF.jpg)
Luke Waller
Followers: 0 Following: 0
Statistics
1 Question
0 Answers
RANK
179,274
of 292,737
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 19,936
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 147,904
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
Question
I'm trying to create a binary to unary encoding converter. However I am getting stuck on one of the final loops. Which should print out the number of ones for the positional value. After this I plan on adding the resulting matrices together.
A=[1 0 1]; l=length(A); un = zeros(1, l); for N = 1:l %position is (N-1) % B=A(N:end); ignore ...
5 years ago | 1 answer | 0