Community Profile

photo

Bruno Luong


Last seen: Today
1.347 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
Comparing all the elements of an array with all the elements of another array
This returns the elements in order as in B, from left to right A = 100:10:600 B = [100 103 105 120 123 128 130 200 205 207 300...

etwa 14 Stunden ago | 0

Answered
How to solve explicit equation of ellipse
There is a function EllAlg2Geo ready to use in this FEX % Random coefficients for test: A = 0.5+rand; D = 0.5+rand; B = rand...

etwa 15 Stunden ago | 0

Answered
Combine griddedInterpolants on the same grid
If you know in advande the reference gridded points and the query points, (but the z data change), you migh build one ce interpo...

etwa 16 Stunden ago | 0

Answered
The number of rows in A must be the same as the number of elements of b.
Remove u0 from your linprog call, and read the doc to double check if you call correctly linprog(f,A,b,Aeq,beq,umin,umax,option...

etwa 19 Stunden ago | 0

Answered
Is anyone else having problems with MatLab 2020b freezing when saving/viewing figures? If so do you know any solutions?
I don't know if you have the same problem, in my case I found a large memory leak of TMW graphic system when using opengl hardwa...

etwa 19 Stunden ago | 0

Answered
How t generate cone using scattered random point cloud?
This code provides the uniform distribution on the surface of the cone h = 3; % height r = 1; % base radius n = 1e4; % numbe...

etwa 19 Stunden ago | 1

| accepted

Question


Why stock DOT function is suboptimally implemented
Followup the discussion in https://www.mathworks.com/matlabcentral/answers/612051-calculation-precision-changed-in-2020b and ...

etwa 21 Stunden ago | 1 answer | 1

1

answer

Question


column operator erases complex property
Why column (:) changes my data? (R2020b) >> z=complex(3,0) z = 3.000000000000000 + 0.000000000000000i >> isreal(z) ...

2 Tage ago | 1 answer | 3

1

answer

Answered
Efficient number occurence count
ac = accumarray(num(:),1);

3 Tage ago | 1

Answered
How can i extract the value of an element of a sparse double?
full(M(3,3))

3 Tage ago | 0

| accepted

Answered
NaN from str2double('1 2 3') on Matlab 2020a
"works fine on Matlab 2018b" Are you sure? >> version ans = '9.5.0.1298439 (R2018b) Update 7' >> str2double('1 2 ...

5 Tage ago | 0

| accepted

Answered
How to multiply 3D matrices without using for loop
If you have R2020b C = pagemtimes(A,'ctranspose',B,'none'); Or using MTIMESX on File-Exchange I just make a quick comparison ...

5 Tage ago | 0

| accepted

Answered
What frustrates you about MATLAB? #2
MATLAB startup accelerator. I just don't like my computer being polluted by some services installed in the task scheduler. I pr...

5 Tage ago | 0

Answered
What frustrates you about MATLAB? #2
The camorbit/camlight (camera toolbar) that makes the 3D graphic rotation turns forever when I swing with the mouse. It's fun t...

5 Tage ago | 0

Answered
How to apply function "strrep" to more than 32 substrings?
newIDFFile = readIDFFile; for k=1:length(x) newIDFFile = strrep(newIDFFile, sprintf('@@P%d@@',k), x(k)); end

5 Tage ago | 1

Answered
Calculation precision changed in 2020b?
This is a robust code. theta = acos(max(min(dot(x,y)/sqrt(sum(x.^2)*sum(y.^2)),1),-1)) Note it returns 0 for x or y is 0. One...

6 Tage ago | 1

| accepted

Answered
How to enter variable names into plot title (R2019a)
title("2D Gaussian when mean is " + m(i) + " and standard deviation is " + s(i))

8 Tage ago | 0

Answered
I want to make a recursive formula and execute two statements with the same variables at the same time
I'm surpised nobody proposes yet a very MATLABish solution [a,b] = deal([a b],a]

8 Tage ago | 0

Answered
Randomly chooses points from a triangular region and stores the x and y coordinates
This is a direct method, no loop, no discard, etc... n = 1e4; b = 1; h = 2; w1=1-sqrt(rand(1,n)); w2=(1-w1).*rand(1,n); ...

9 Tage ago | 0

Answered
R2020b AppDesigner doesn't fill UiFigure completely with child
No problem with me here is the capture with R2020b What is your monitor resolution setting?

9 Tage ago | 0

Answered
MATLAB code for finding certain coefficients
Some detail of the formula is not totally clear to me (do we consider li>=0 or li>=1), but it goes like this (EDIT, assume now ...

11 Tage ago | 0

| accepted

Answered
How to display exactly 2^64?
They teach me this when I was kid % Raise to power 2^64 d=1; for p=1:64 r=0; for i=length(d):-1:1 a=2*d(i)...

14 Tage ago | 0

Answered
can linprog handle discrete variables
You might try to use INTLINPROG by introducing (integer) slag variables b2 has the same size as x2 but values in {0,1}. Then ad...

14 Tage ago | 0

Answered
Diagonal displacement of matrix into another matrix
Simple loop would be the simplest for me % Test matrix A=randi(10,2,8) n = size(A,2)/2 B = zeros(n+1,n+1,n); for k=1:n ...

15 Tage ago | 0

Answered
The roots for an equation containing tangent
>> fzero(@(x) x*1.4 - atan(0.28*x) - 37.5, 0) ans = 27.8165

15 Tage ago | 0

Answered
I want to use the L0 norm ?
nnz(x)

15 Tage ago | 0

Answered
Node Pair list from a graph
nchoosek(1:4,2)

17 Tage ago | 0

| accepted

Answered
Convex polygon partitioning in MATLAB
Trivially any mesh generator will do this.

18 Tage ago | 0

Answered
Looking for a very fast root finding method in Matlab
% randomm coefficients for test a=rand(1,10); b=rand(1,10); c=rand(1,10); % assume a ~= 0 tic n = length(a); bn = b./a;...

18 Tage ago | 2

| accepted

Question


Appdesigner cut/past bug?
When I open R2020b appdesigner of a mapp file created under R2020a, the cut and past menu is grayed out (and action using shortc...

19 Tage ago | 0 answers | 0

0

answers

Load more