How work this sparse matrix in matlab?

Status
Not open for further replies.

jalal.baba

Junior Member level 1
Joined
Feb 5, 2018
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
118
Hi
i can't understand how work this code in matlab?
Code:
A = sparse([f(:,1); f(:,1); f(:,2); f(:,2); f(:,3); f(:,3)], ...
           [f(:,2); f(:,3); f(:,1); f(:,3); f(:,1); f(:,2)], ...
            1.0);

I have f matrix:

out put is:
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…