photo

reza aghaee


Last seen: 29 dagar ago Active since 2020

Followers: 0   Following: 0

Statistics

All
  • Solver
  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


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) ...

nästan 4 år ago | 1 answer | 0

1

answer

Question


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;...

mer än 4 år ago | 1 answer | 0

1

answer

Question


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,...

mer än 4 år ago | 1 answer | 0

1

answer

Question


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) ...

mer än 4 år ago | 2 answers | 0

2

answers