photo

cidafing


Last seen: 3 years ago Active since 2023

Followers: 0   Following: 0

Statistics

MATLAB Answers

0 Questions
1 Answer

RANK
12,478
of 301,379

REPUTATION
4

CONTRIBUTIONS
0 Questions
1 Answer

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
0

RANK
 of 21,244

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 174,273

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Answered
比如一个数组A=[1,5,7,6],想要将对应坐标其输入到n*n矩阵中,比如这样式的1,3对应矩阵中的X1,3;5,7对应矩阵x中的X5,7。
clear; A=[1,5,3,4]; n=6; X=zeros(n); ind = sub2ind([n,n],A(1:end-1),A(2:end)); X(ind)=1;

3 years ago | 0

| accepted