
Bruno Luong
Statistics
RANK
34
of 260,614
REPUTATION
5,179
CONTRIBUTIONS
40 Questions
1,780 Answers
ANSWER ACCEPTANCE
52.5%
VOTES RECEIVED
879
RANK
45 of 17,907
REPUTATION
15,789
AVERAGE RATING
4.70
CONTRIBUTIONS
51 Files
DOWNLOADS
231
ALL TIME DOWNLOADS
145155
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
How to replace unique interval of columns in each row of a matrix with zero?
A1= [1 1 1 1 1 1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1...
1 day ago | 0
| accepted
All possible path between two points
allpath introduced in R2021a will do. For older release I posted a code here
3 days ago | 0
Is there a reason why row vectors are default in Matlab?
Beside an historical reason to me it seems it related to for the for-loop is designed to work For M a true matrix for v = M ...
4 days ago | 0
Script using parfor spawns way too many threads
It sounds count productive to cut off the low-level multi-thread and move it on you parfor loop. I rather split the parfor into...
6 days ago | 0
vertical or horizontal array random combination in single array
A={[12;13] ;[1,5] ;[5;6;7]; [1,3,5,4]}; B = cellfun(@(x) x(:), A, 'unif', 0); C = cat(1,B{:})
21 days ago | 0
| accepted
Reorder symmetric adjacency matrix
p is your order, A is the adjadcent matrix p = [8, 9, 10, 1, 2, 3, 4, 5, 6, 7]; Areorder = A(p,p)
24 days ago | 0
Question
Parallel pool on function that uses persistent variables
Obviously parallel computing cannot handle correctly persistent variable, as showed in this minima example. It seems when runin...
1 month ago | 2 answers | 0
2
answersDifference between spline(x,y,xq) and interp1(x,y,xq,'spline')
spline is a MATLAB file that build the intermediate piecewise polynomial then evalutae it (in your case). INTERP1 call an inter...
1 month ago | 0
Delete all repeatation number
a = [1 2 2 3 2 4 5 6 7 8 6] [u,~,j]=unique(a); a(ismember(a,u(accumarray(j,1)>1)))=[]
1 month ago | 2
Uniquetol which preserves the first occurance
Use the third inputs followed by accumarray % Dummy data n = 100; A = randi(10,1,n)+1e-12*rand(1,n) [~,~,J]=uniquetol(A); ...
1 month ago | 0
| accepted
Question
How to find which toolboxes are required for compiled standalone app?
My question is straightforward: Is there away to check which toolbox are required after mcc command. I can see the file requir...
1 month ago | 0 answers | 0
0
answersHow do I convert a non-normal distribution to an equivalent normal distribution?
You can almost always map a reasonable continuous random distribution to a normal one. If r follows some distribution law and y...
1 month ago | 1
| accepted
Obtaining the combinations of a vector array to satisfy lineal constrains.
See this thread (14 year ago) with simlar question, the technique using gcd can help to reduce the search https://groups.google...
1 month ago | 0
Is there an easy way to remove points from a signal which can be restored by interpolation
This Free knot spline FEX can acoomplish what you ask for.
1 month ago | 0
Preallocate variables with unkown size
You can compute exactly the size needed for your vectors A = G_orig.adjacency; A(inActive,:) = 0; m = nnz(A(:,inActive)); ph...
1 month ago | 0
| accepted
Reshape Nx1 struct with field of Mx1 elements to N*Mx1 vector
Something like B = cat(1,A.bar)
1 month ago | 0
| accepted
cumulative sum table over group
tableA = {"A" 1 0 3 ; "A" 1 2 3 ; "A" 1 3 3 ; "A" 2 0 2; "A" 2 2 ...
2 months ago | 1
| accepted
Question
What means "MATLAB connector is not running"?
I have a GUI app that runs fine under MATLAB, however when compiled as standalone with MCC, I get a strange warning message "w...
2 months ago | 1 answer | 0
1
answermulti array vectorization problem (reformulated)
A = [ -0.8013 -0.4981; -0.2278 -0.9009]; t = 0:3; % eigen space [V,D]=eig(A,'vector'); D = reshape(D,1,[]); % compu...
2 months ago | 2
Find differences in a set of points without a for loop
x = randi(10,3,1) d = abs(x - x.')
2 months ago | 0
Rotate the coordinate system to align an existing plane with Y'Z' plane
Take a look at this thread and see if you can use it
2 months ago | 0
replace matrix A with the values of another matrix B
A= cat(3, [ 0 0 1; 0 1 0; 0 1 1], ... [1 0 0, 0 0 0; 0 0 0], ... [0 1 ...
2 months ago | 1
| accepted
Can anyone please vectorize the code I have?
There is nothing in your data to guess that Jout must have 14 elements, the last index > 0 is 13. J_org = [ 0 2 0 ...
2 months ago | 0
| accepted
Variable f coeffficient depends on x for linprog
Solve 2 problems f= [0 f2]; x = linprog(f,A,b,Aeq,beq,lb1,up1); with lb1 = -inf(size(x)), up1 = zeros(size(x)); g= [50 f2]; ...
2 months ago | 0
Computing Euclidean distance between 2 points
For a row vector d % sum(d.^2) is equal to % d*d' Example d=randi(10,1,3) sum(d.^2) d*d'
2 months ago | 1
Standalone compiled with Matlab compiler doesn't work
Have you include PSD_FSE3D.xml in the packaging? Do you take into account the path of the file is different when you run in sta...
2 months ago | 0
| accepted
Surface plot of function over triangular domain
P1 = [1,1]; P2 = [2,0.5]; P3 = [4,4]; zfun = @(x,y) x.^2+y.^2; % Create triangular mesh of triangla P1,P2,P3 n=20; [I,J]...
2 months ago | 1
swaping 2 random numbers from array
ij = randperm(length(x)-1,2)+1; x(ij) = x(flip(ij));
2 months ago | 0
| accepted