reza aghaee
Followers: 0 Following: 0
Feeds
提问
Counting the number of the unique value in each row of a matrix without using for loop
M = randi(21,[1000000,9]); counter = zeros(size(A,1),1); for j = 1 : size(A,1) a = unique(Mat(j,:)); counter(j) ...
4 years 前 | 1 个回答 | 0
1
个回答提问
create datatip on a surface
a = 0 : 0.1 : 1; b = 0 : 0.1 : 1; [bb,aa] = meshgrid(b,a); Acc = aa.^2 - bb.^2; ss = surf(aa,bb,Acc); c = a(2)^2 - b(4).^2;...
4 years 前 | 1 个回答 | 0
1
个回答提问
runtime of sparse matrix components allocation
Nobs = 20000; K = 20; tic H = sparse([],[],[],Nobs,Nobs,4*K*Nobs); for j = 1 : Nobs jj = randi(Nobs,1,K); H(j,...
4 years 前 | 1 个回答 | 0
1
个回答提问
Time of sparse matrix components allocation
Nobs = 20000; K = 20; tic H = sparse([],[],[],Nobs,Nobs,4*K*Nobs); for j = 1 : Nobs jj = randi(Nobs,1,K); H(j,jj) ...
4 years 前 | 2 个回答 | 0