Community Profile

photo

Bruno Luong


Last seen: Today
1.127 total contributions since 2009

Bruno Luong's Badges

  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 1
  • Thankful Level 2
  • Guiding Light
  • 6 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Speed Demon
  • Solver

View details...

Contributions in
View by

Answered
GUIDE Handle not updating
Try to put this [handles.Antenna(:).Info] = deal(readAntenna(selected,currDir)); in antennaId_Callback. (NOTE: You must call ...

circa un'ora ago | 0

Answered
How to sort a array of matrix based on the maximum value
dmax = cellfun(@max, D); dmax(1) = Inf; [~,i] = sort(dmax,'descend'); D = D(i);

circa 2 ore ago | 0

Answered
fminunc gets first-order optimality of zero on iteration 0, does not find optimum
If your gradient is 0, then your FEM returns the exact same result for two different values of YM. This can be created by many ...

circa 3 ore ago | 0

Answered
Is there a way to get the max memory used when I run my script?
Have you tried the >> memory Maximum possible array: 10412 MB (1.092e+10 bytes) * Memory available for all arrays: ...

circa 4 ore ago | 0

Answered
interpolating the NaNs in Cell array - 180x1
y = fillmissing(y,'linear')

circa 5 ore ago | 1

Answered
Binning regions of a 2D matrix slices (and extending this into the third dimension)
This assumes the first/second dimensions of your matrix are divisible by 32 % Test matrix A=rand(512,128,1200); binsz = 32;...

circa 5 ore ago | 0

Answered
Vectorization of For loop
d = b(:,:)*a(:)

circa 6 ore ago | 0

Answered
Generating vector r of random noise
r = rand(1,100)*0.2 - 0.1

circa 13 ore ago | 0

| accepted

Answered
Going back to original matrix
[~,B] = ismember(L,A,'rows')

circa 21 ore ago | 0

| accepted

Answered
Graph is Blank ? why?
Try to add this after the statement of loading the file ich=fillmissing(ich,'nearest') and see it it fixes the issue.

1 giorno ago | 0

Answered
how to find index of string using AND operator when adding conditions
Your description is not clear to me so I give two versions idx = find(ismember(zz, {'A' 'B'})); or idx = find(ismember(zz, 'A...

1 giorno ago | 1

Answered
Strange behaviour computing l1 norm of rows of a matrix
Who build this sparse matrix B? If it's build from external source it can be not-valid. I believe there is a tool on FileExchan...

1 giorno ago | 3

| accepted

Answered
Wrong Hessian output in fminunc
I guess the hessian is estimated from BFGS formula, that needs more than 1 FMINUNC iteration. In you case the minimum is reached...

1 giorno ago | 0

Answered
Undefined function 'ne' for input arguments of type 'table'.
Filefolder = find(table2array(Folderlinks)~="")

1 giorno ago | 0

Answered
y = randsample(population,k)
TMW never mentions it officially, but it's Fisher-Yates shuffle algorithm (source https://uk.mathworks.com/matlabcentral/answe...

1 giorno ago | 0

Answered
Standard deviation for a field inside a field?
arrayfun(@(s) std(s.BO.circle), structarray)

2 giorni ago | 1

| accepted

Answered
find indicies of maximum and minmum elements of an array in its each segmented smaller arrays, plus mean
Test example A=1:100; indexA=[8 16 30 37 43 48 66 71 76 81 86 91 97]; Code I = zeros(siz...

3 giorni ago | 1

| accepted

Answered
spline with non monotonic axis
t = 0:100; x= sin(0.2*t); y = cos(0.6*t); ti=linspace(min(t),max(t),1000); xi = spline(t,x,ti); yi = spline(t,y,ti); plo...

3 giorni ago | 0

Answered
find minumum indices of one array in another array
A= [ 47 100 153 207 261 314 368 422 474 527 581 635 687 741 794 847 900 954 1007 1060]; B=[3...

3 giorni ago | 0

Answered
Accessing Elements in a 3D matrix using Linear Indexing ?
Given sz = [m,n,p] ans linidx is the linear index of an element, here is one way of computing the subindexes (row, col, page). T...

3 giorni ago | 0

| accepted

Answered
Create surface consisting of two implicitly surfaces
"Can anyone help me with this question?" Not clear to me what exactly is the question. If you have two implicit equations for ...

3 giorni ago | 0

| accepted

Answered
interpn vs griddata: how are results different?
Mathematical, in short the difference is INTERPN uses tensorial linear function on nd-hypercube that enclose the query point. ...

4 giorni ago | 0

Answered
Usage of structure as input of a function. Is it efficient ?
"I've struggled to find ressources online about that matter (maybe I didn't find the right keywords" No, it's not your fault, T...

4 giorni ago | 3

| accepted

Answered
Find/return value from each row in a big matrix that corresponds with a condition/value
"Let me specify, I only want the first time the value appears in each row and if the value dont appear I want closest value." T...

4 giorni ago | 0

Answered
Convert subscripts to linear indices with dynamic matrix size
% Generate random array of nd-indexes sz=[3 4 5 6]; m = 10; n = length(sz); SUBIDX=ceil(sz.*rand(m,n)); % Method 1, with ...

4 giorni ago | 1

| accepted

Answered
Vectorize a code involving multiple loops commands
x = [0:0.1:10]; a=[2 1; 0.5 0.25]; b=[500 200; 300 250]; c=[0.25 0.35; 0.15 0.25]; d=[0.5]; X = reshape(x,1,1,[]); AB = ...

4 giorni ago | 1

| accepted

Answered
Conditional Random number generation
m = 5; n = 3; s = 10; This will generate uniform distribution with sum criteria % generate non-negative integer random (m x ...

4 giorni ago | 0

Answered
Rounded random numbers with fixed sum
k = 3; r = (diff([0 sort(randperm(100+k-1,k-1)) 100+k])-1)/100

4 giorni ago | 0

Answered
mex-file crashes MATLAB in for loop
Those are wrong, you should not Free the pointers that you are not Malloc. mxFree(a_double); mxFree(b_double); mxFree(z_do...

5 giorni ago | 1

| accepted

Answered
C = union( A,B ) is too slow. Is there any faster way given that A and B are ordered.
If you have a decend C-compiler you might use my MEX MERGE SORTED ARRAY c = mergesa(a,b); % or mergemex(a,b); c = c([true; dif...

5 giorni ago | 1

| accepted

Load more