Community Profile

photo

Bruno Luong


Last seen: Today
1,456 2009 年以降の合計貢献数

Bruno Luong's バッジ

  • 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

詳細を表示...

貢献した分野
表示方法

回答済み
Multiplication of tranformation matrices gives strange result
Your decription does not match with what your code is doing (your code) You take T1 on (x,y) data You take T2 on (x,y)...

4日 前 | 1

| 採用済み

送信済み


MultipleQR
Perform a bunch of QR factorization of same size matrix

4日 前 | ダウンロード 4 件 |

回答済み
How to find the last 1 in every row
Depending on the density of 1s, but a for-loop (remember that?) might be the fatest function BenchMax A=rand(10000)>0.5; ...

5日 前 | 0

回答済み
Reshape data vector for a surf plot over a non-rectangular domain
A diamond shape is bijective mapped from/to a rectangular shape, thus meshgrid/ndgrid combined with surf are still applicable. ...

6日 前 | 1

回答済み
Matrix Operation and decomposition
Just straight as-it-is syntax A^(1/2) A^(-1/2) or sqrtm(A) inv(sqrtm(A)) % sqrtm(inv(A)) Checkout https://www.mathworks.co...

6日 前 | 0

| 採用済み

回答済み
atan2 not consisent
Your result atan2(a(77:78,2),a(77:78,3)) ans = 3.141592653589793 -3.141592653589793 Type single value a(78,2) yo...

6日 前 | 0

回答済み
Determinant of a unitary matrix
Here is one way of computing determinant of a complex matrix U, based on Q-less qr n = size(U,1); d = 1; for k=1:n i = k...

6日 前 | 0

回答済み
Counting consecutive negative numbers in an array
length(strfind([false v<0],[0 1])) or sum(diff([false v<0])==1)

7日 前 | 1

| 採用済み

回答済み
Output only numbers with complex conjugate
a(ismember(a,conj(a))&imag(a)>=0)

7日 前 | 0

| 採用済み

送信済み


Random unitary matrix (and standard subgroup of U(n))
Generate matrix of one of these four supported types of groups: O(n), SO(n), U(n), SU(n)

7日 前 | ダウンロード 0 件 |

回答済み
Possible combinations for a vector
dec2base(0:3^9-1,3)-'0'

7日 前 | 0

質問


Determinant of a unitary matrix
Is there any other (better) way to compute the determinant of the unitay matrix beside det (that calls lu factorization)? >> [U...

7日 前 | 2 件の回答 | 0

2

回答

回答済み
Create Random Points in Elliptical Belt
If the two ellipse has the same aspect ratio and aligned then this is the method without rejection. n=1e4; ax=3; ay=1; rin...

8日 前 | 0

回答済み
Find angle of rotation matrix in MATLAB
Yes the approach is wrong your code has plenty of bugs* you need to learn how to debug you need to pratice MATLAB onramp O...

8日 前 | 0

回答済み
difference between str2num and str2double for getting a matrix
Under the hood str2num uses EVAL str2double uses SCANF, and work only on scalar. I see no reason why SCANF is more accurate t...

8日 前 | 0

| 採用済み

回答済み
how to calculate number of unique element in array?
c =[ 1 1 1 1 1 1 2 1 2 2 2 3 2 4 2 5 2 5 3...

9日 前 | 0

回答済み
What is the simplest way to map vector values of float to matrix of floats ?
The only vector of key map container supports is char vector (variable length) If your vector has fixe length say n; you could ...

9日 前 | 0

回答済み
Solving a linear system equations with variables on both sides
See my answer in another thread.

9日 前 | 0

回答済み
Bit wise operation of And and XOR together
Z=quad(0,1,1,0,1,0,1,1) function F10 = quad(u2,v2,w2,x2,u3,v3,w3,x3) % note: u2 and u3 not used anywhere F10=1+v2+x2+x2*v2+...

9日 前 | 0

回答済み
Surface plot not displaying full data range
Cross answer

10日 前 | 0

回答済み
surface plot face not showing colors corresponding to Zgrid in some areas
Here is a workaround, keep flat facecolor. You can use mean/min instead of max depending on what is relevant for you. Z=peaks(1...

10日 前 | 0

質問


LOADLIBRARY error 'CL' and LIMITS.H not found
I get this error message recently >> loadlibrary('C:\WINDOWS\system32\user32.dll', 'WinMouse.h') Error using loadlibrary Fail...

11日 前 | 0 件の回答 | 1

0

回答

回答済み
grouping indices based on how close they are
If your array is sorted >> c = mat2cell(a,1,diff(find([true diff(a)>5 true]))); c{:} ans = 11 12 13 ans = ...

11日 前 | 0

| 採用済み

回答済み
Find first item with a certain condition and use it, instead of finding all items with that condition
Process by block, eventually you get the result after a couple of minutes p = zeros(1,100); p(1) = 3; n = 10^10; m = 1e7; ...

11日 前 | 0

回答済み
how to find kshortest path or use Dijkstra algorithm for 12 plot points.
Assuming you want to find all paths from 1 to 12, using the code AllPath here, here is the 6 paths with the total distances (euc...

11日 前 | 0

回答済み
fminsearch with matrices help
Sort out the dimensions of the matrix before doing anything on paper, programming, etc... >> x=rand(150,3); >> A=rand(3,3) ...

12日 前 | 0

回答済み
Combination of choices - recursive function
Recursive method maxsum=16 lo=1; up=Inf; start=5; [~,A] = price(start, lo, up, maxsum) %% function [p, A] = price(sta...

12日 前 | 0

回答済み
Combination of choices - recursive function
This is non-recusive approach (recursive is perhaps more scalable) maxsum=16 lo=1; % 2 up=Inf; % 8 start=5; % estimate ...

12日 前 | 1

回答済み
Solve as Optimization Problem in Matlab
c=[15 16 17]; t = 121; A = [ c -1; -c -1]; b = [ t; -t]; f = [zeros(length(c),1); 1]; LB = 0*f; x = intlinpr...

13日 前 | 3

Load more