Bruno Luong - MATLAB Central
photo

Bruno Luong


Last seen: Today Actif depuis 2009

Followers: 4   Following: 0

Statistiques

All
MATLAB AnswersFile ExchangeCodyFrom 02/09 to 02/25Use left and right arrows to move selectionFrom 02/09Use left and right arrows to move left selectionTo 02/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%

RANG
27
of 297 182

RÉPUTATION
7 674

CONTRIBUTIONS
72 Questions
2 667 Réponses

ACCEPTATION DE VOS RÉPONSES
61.11%

VOTES REÇUS
1 324

  • 24 Month Streak
  • Thankful Level 4
  • Speed Demon
  • Solver
  • GitHub Submissions Level 1
  • Personal Best Downloads Level 4
  • Ace
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 1

Afficher les badges

Feeds

Afficher par

Réponse apportée
How to convert y data for equal intervals of x, z to z data for equal intervals of x, y
Rescaling is important when doing scatering interpolation. Avoid unstable extrapolation load example.mat XYZ = [X(:), Y(:), Z(...

3 mois il y a | 0

| A accepté

Réponse apportée
UIContextMenu when defined does not show in Matlab 2021b
uiaxes/uifigure are not compatible wit axes/figure. I recommend simply do not make a switch.

3 mois il y a | 0

Réponse apportée
Unreadable UTF characters when they are loaded in MATLAB R2022b, but they could be readable in R2020b
It sounds like it related to the bug fix they carried out in 2021b, see @Stefanie Schwarz answer here; This breaks the encioding...

3 mois il y a | 0

| A accepté

Réponse apportée
IFFT on symmetric spectral data giving complex result?
assert(isreal(singleSpectrum(1)), 'first element must be real'); twoSidedSpectrum = [singleSpectrum(1:end); flipud(conj(singl...

3 mois il y a | 1

| A accepté

Réponse apportée
Format scientific decimal place bar plot
load('data_c.mat'); x = unique_stations'; vals = [means_ep; means_kzo]; b = bar(x,vals); set(gca,'yscale','log');grid on; bo...

4 mois il y a | 0

Réponse apportée
Standalone desktop application installer cannot be opened in other machines
Try to run with administrator right Correct Normally it would work like the base code with a fresh same version nMATLAB instal...

4 mois il y a | 0

Réponse apportée
Identify location of the 2D grid data
rectList = [... 1 1 1 1 1 2 1 1 1 3 1 1 1 5 1 1 2 1 1 1 2 2 1 1 2 5 1 1 3 2 1 1 3 3...

4 mois il y a | 0

| A accepté

Réponse apportée
randomAffine3d is not properly random
This is not an answer but I puspose introduce a bug that generates the rotation axis in the positivve part oof S^2 and it repr...

4 mois il y a | 0

Réponse apportée
Compare probability density functions of 2 vectors
Use histcounts to compute pdfs then compare them

4 mois il y a | 1

| A accepté

Réponse apportée
Moving the contour plot in 3D coordinate
Translation 15 unit in y after rotation Z = peaks; ax = axes(figure); HG = hgtransform(ax); Rx = makehgtform('xrotate',pi/2)...

4 mois il y a | 0

| A accepté

Réponse apportée
Moving the contour plot in 3D coordinate
May be changing ZLocation property is what you need Z = peaks(); surf(Z); hold on contour(Z,'Linewidth',2,'ZLocation',26); ...

4 mois il y a | 0

Réponse apportée
rotation of 3D XYZ points by an ijk unit vector
% source and target unit vectors u = [0.9997; -0.0240; -0.0053] ; u = u/norm(u); v = [1; 0; 0]; v = v/norm(v); % Compute ...

4 mois il y a | 0

| A accepté

Réponse apportée
Is there a way to write protect an m file.
You could transform mfile to pfile than depioy it. See pcode command

4 mois il y a | 0

Réponse apportée
Warning: Equation is badly conditioned. Remove repeated data points or try centering and scaling.
I don't use MATLAB native FIT, I can't get it works correctly to fit your data, even with smoothingspline model, and predictive ...

4 mois il y a | 0

| A accepté

Réponse apportée
sweep of tensor products
Strictly speaking you do not compute a tensor product. c = 100; n = 5; l = 10; A = rand(c, n); B = rand(c, l); C = A .* ...

4 mois il y a | 0

| A accepté

Réponse apportée
Quaternions with symbolic elements
Work around is use 2 x 2 (symboloc) complex matrix to do quaternion computation https://en.wikipedia.org/wiki/Quaternion#Matrix_...

4 mois il y a | 0

Réponse apportée
help counting number of times a value occurs across matrix
Alternative way of counting % Random test array A = round(10 + 2 * randn(3,10)) % Count #repetitions by row [value,~,J] = ...

4 mois il y a | 0

Réponse apportée
6x6 system of multivariate quadratic equations ... non-negative real solutions
Assuming the equations are x' * Ai * x + bi'*x + ci = 0 for i = 1,2, ..., N = 6. Ai are assumed to be symmetric. If not rep...

4 mois il y a | 0

| A accepté

Réponse apportée
2D FFT Gaussian filtering exercise doesn't return what is expected
You made many short cuts and reasoning that are not right. The convolution formula you post is for continuous signal/surface, d...

4 mois il y a | 0

Réponse apportée
Fixing biased random number generation
% a_max .* rand(N, 1) is a product of 2 independent uniform variables, it is NOT a uniform random variable as you expect since...

4 mois il y a | 0

Réponse apportée
having if/else statement go to previous input
This is how I would do. It seems clearer to me. if opt == 3 opt = randi([1 2]); % randi(2) is also fine end if opt == 1 ...

4 mois il y a | 0

Réponse apportée
K Nested For Loops for arbitrary K
You can use this FEX if your number combinations % Q = nchoosek(1:N+K-1,K)-(0:K-1) is too large to fit into memory, e.g. for...

4 mois il y a | 0

Réponse apportée
K Nested For Loops for arbitrary K
No loop or no recursion is needed at all K = 4; phi_deg = -15:15; N = length(phi_deg); V = nchoosek(N+K-1,K); mat = zero...

4 mois il y a | 1

| A accepté

Réponse apportée
Cholesky vs Eigs speed comparison?
Your test of PSD is not right. You should do: eigs(A,1, 'smallestreal') > smallpositivenumber % 'sr', 'sa' for older MATLAB EI...

4 mois il y a | 1

Réponse apportée
polyeig calculating few polynomial eigenvalue
I'm affraid there is no equivalent of EIGS to POLYEIG (vs EIG).

4 mois il y a | 0

| A accepté

Réponse apportée
كيفية حذف الصف والأعمد في أمر واحد من المصفوفة
A = randi(9,5,6) rowremove = 3; colremove = 4; B = A(setdiff(1:end,rowremove),setdiff(1:end,colremove))

4 mois il y a | 2

Réponse apportée
Iam facing Below Issues While Compelling the model in Matlab 2021rb
-I"D:\Users\Sumanth\OCTOBER\ CFLAGS="$CFLAGS -w " It seems the second double quotes are wrongly placed

4 mois il y a | 0

Réponse apportée
Why are plot titles assigned differently in Windows and MacOS?
Regardless the platform, use graphic handles to be sure where the title (or any graphic object) correctly appears. As example f...

4 mois il y a | 1

| A accepté

Réponse apportée
make the execution faster
Using ode45 is a better choice because it adapts the time step intelligently. On my laptop it lasts less the 4 seconds for tend...

4 mois il y a | 0

Réponse apportée
How to pass a Matlab function handle to C-Mex Code
Rather than using function handle, call MATLAB with function name using mexCallMATLAB

4 mois il y a | 0

Charger plus

Go to top of page