Community Profile

photo

Bruno Luong


Last seen: Today
1,296 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

詳細を表示...

貢献した分野
表示方法

回答済み
how to create a matrix from another
x([2 4], end)

約1時間 前 | 0

回答済み
abcd is efghijk?
function C= circulant(x) n=length(x); C=zeros(n,n); C(:,1)=x; for j=2:n C(:,j)=[C(n,j-1); C(1:n-1,j-1)]; end

1日 前 | 0

| 採用済み

回答済み
abcd is efghijk?
function C= circulant(x) n = length(x); C = x(mod((1:n)'-(1:n),n)+1);

1日 前 | 0

質問


Memory leak with OPENGL hardware
Context: I have a matlab code that output a complex 3D graphic animation on GUI figure, involving patch, lines, markers, camera ...

1日 前 | 0 件の回答 | 0

0

回答

回答済み
Obtain all integer partitions for a given integer
I wrote a short function that doesn't need to post-proceesed with UNIQUE (wast of time and memory) when using with NSUMK or allv...

1日 前 | 0

回答済み
abcd is efghijk?
function C= circulant(x) toeplitz(x,circshift(flip(x),1)) end

2日 前 | 0

回答済み
Set all elements of a sparse matrix to zero
B(:) = 0; C(:) = 0;

2日 前 | 0

| 採用済み

回答済み
Is it posiible to hide a source code?
pcode myfun

2日 前 | 1

回答済み
Set of sequnce number
>> A = [1,2,3,4,5,6,7,8] A = 1 2 3 4 5 6 7 8 >> polyval(A,10) ans = 12345678...

3日 前 | 0

回答済み
Histcounts including values beyond bin edges
Append -Inf/+Inf in your finite edges

3日 前 | 1

| 採用済み

回答済み
Meaning of less/greater than in handle objects
I believe the graphic handle object at one point of MATLAB history (before R2014b?) is just a double numbers unique assigned too...

3日 前 | 0

| 採用済み

回答済み
How can I access the last values of a list using end?
list(end-3)

5日 前 | 1

| 採用済み

回答済み
Matrix having one row
Avoid using LENGTH Replace with for i = 1:size(x,1) ... end

6日 前 | 0

| 採用済み

回答済み
Memory cost of multiplying sparse matrices
I guess MATLAB creates a temporary buffer of length equals to the number of rows of A when A*B is invoked. The exact detail only...

6日 前 | 0

回答済み
How can I pseudorandomize with constrains and make spesific number spread equally among the array?
Unzip this attached file, you'll get a pfile r1234.p Call it A = r1234 You'll get the result as specified.

6日 前 | 0

| 採用済み

回答済み
Replacing several values in multidimensional array simultaneously
A(:,:,1) = [1 2 3 ; 4 5 6]; A(:,:,2) = [7 8 9 ; 10 11 12]; s = size(A); A(:, sub2ind(s(2:3),[2 3],[1 2])) = 0 % = [0 0; 0...

6日 前 | 0

| 採用済み

回答済み
How to generate a matrix with assigned probability?
it doesn't matter whereas it run in for-loop or not. x = 0.8; % probability of 1s m = 5; n = 2; % for ... A = rand(m,n)...

7日 前 | 1

| 採用済み

回答済み
Permutations of array retaining sub-array groups together
Try this: A = [ 1 2 3 4 5 6 7 8] G = [ 1 2 2 2 3 4 5 5 ] l = diff(find([true,diff(G)>0,true])); Ag = mat2cell(A, 1, l); A...

7日 前 | 1

| 採用済み

回答済み
How to calculate the angle between two sets of scatter plots?
clear o_data = [3.11009098091043 0.0161338808382554 -3.50871929189684; 34.1536562864604 0.446152781388255 -3....

9日 前 | 1

| 採用済み

回答済み
How do I found A-B*x which these matrix are 3x3
Waoh, revise the theory of eigen vectors and linear algebra in general Multiply a vector by a constant diagonal matrix is like ...

9日 前 | 0

回答済み
Extract sub n-dimensional array from n-dimensional array
% Testt matrix A=randi(10,[2,3,4]) n = ndims(A); s = size(A); i = repelem({':'}, 1, n) ; i{end} = 3 % whatever page s...

11日 前 | 1

| 採用済み

回答済み
error in matrix multiplication
MATLAB uses two different BLAS functions to perform B*D' and B*K In the first case, it use D and it never explicitly compu...

11日 前 | 1

| 採用済み

回答済み
how to plot 2D mesh using coordinates and connectivity matrix?
Use FILL or PATCH

11日 前 | 0

回答済み
How to get the best combination of element to approach a value?
EDIT CODE If you have optimization toolbox a = [68,150,270,560,1000,2200,4700,9400] ; val = 7611 A = [ a, -1; -a, -1...

11日 前 | 0

| 採用済み

回答済み
How to find the index of a non-integer array with closest value to any integer?
x = [3.75 22.95 2548.01 424.5] [~,i] = min(abs(x-round(x)))

12日 前 | 0

| 採用済み

回答済み
Finding Minimum value of an anonymous function using fminbnd
You should not mix between discrete sampling of your function G and continuous evaluation required by FMINBND % Given : ...

12日 前 | 0

| 採用済み

回答済み
creating a matrix from a vector
v2=linspace(-30,10,100) % This iis a ROW vector not column M1 = [v2.', v2.', v2.'] M2 = [v2; v2; v2]

12日 前 | 1

| 採用済み

回答済み
Solving Matrix functions with a function
x0 = zeros(48,1); xA = lsqnonlin(@(x) f(x)-A, x0)

12日 前 | 0

回答済み
why my empty cell array taking 104 bytes instead of 112 bytes..?
A = {[]} is NOT an empty cell, it's 1 x 1 cell contains an empty array. An empty cell is A = {}

14日 前 | 1

| 採用済み

回答済み
Reversing binary stream Conversion According to attached table?
function [output, outputchar] = reversebinrestore(m, array) if ischar(array) array = array-'0'; end switch m ca...

14日 前 | 1

Load more