Community Profile

photo

Bruno Luong


711 2009 年以降の合計貢献数

Bruno Luong's バッジ

  • Thankful Level 2
  • Guiding Light
  • 6 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Speed Demon
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
How to solve a special linear equation Ax=b? A is a row vector.
Code for p = Inf and noise_threshold = 0.01; A = [0.103+0.201i 0.196+0.294i 0.401+0.499i 0.602+6.993i 0.803+0.892i] b = 0.5+0....

約7時間 前 | 0

回答済み
Finding unique set from large dataset
x = ["abc", "bcd", "ded"] % no need using curly bracket for strings string(unique(cat(2,x{:}))')'

約14時間 前 | 0

回答済み
Full change of array?
You make a mixing array/scalar in your code. Change count(count+1) = count + 1; to count = count + 1;

約15時間 前 | 0

| 採用済み

回答済み
Find equal rows between cell array and matrix into for loop
Try this: A=[-0.11 7.17 3.66 -0.09 3.45 1.55 -0.21 2.17 9.87 -0.14 4.88 6.66] B{1,1} = [-0.09 3.45 1.55] B{1,2...

約16時間 前 | 0

| 採用済み

回答済み
How to save a 3D surface plot in 2D view in vector image format?
Try this h=surfc(peaks,'LineStyle','none'); set(h(2),'LineColor','k'); view(2); % Make contour-plot on top of the surface ...

約17時間 前 | 0

回答済み
How to plot a struct with 2 fields in Matlab
Try this x=reshape([T(:).x],size(T)); y=reshape([T(:).y],size(T)); plot(x(:,[1:end 1])',y(:,[1:end 1])')

1日 前 | 0

| 採用済み

回答済み
Problem with data indexing in nested structure
n = length(Z.hours); % 3 sg=zeros(n,2); for i=1:n b = strcmp({Z.hours(i).AA(:).source},'sg'); sg(i,:) = [i,Z.hours(i...

1日 前 | 0

回答済み
How to unload C++ interface (of shared library)
Not sure if it's applicable for C++ but have you checked doc unloadlibrary

1日 前 | 0

回答済み
Check points inside n number of triangle in a square
see pointLocation method of Triangulation class

1日 前 | 0

回答済み
Mix-integer optimization problem using GA
Take x1 fix allowed value, e.g. 32, optimize wrt (x2,...), repeat 4 times pick the solutions (among 4) with smallest score value...

1日 前 | 0

回答済み
I want to double all the points on the elliptic curves in matlab
See this post there a an algo to demonstrate doubling and adding points in EC. Adapt for your case % EL parameters a = 0; b ...

1日 前 | 0

| 採用済み

回答済み
How can I get the index numbers of cells that form a specific string?
s='a.b.c.d.e' str=[{'a.b.c.d'};{'b.c.d.e'};{'a'};{'b'};{'c'};{'d'};{'e'}] c = idexing(str, s); c{:} str=[{'a.b'};{'b.c'}...

2日 前 | 1

回答済み
Assign Value to Multiply Indexed Range
You might store in a table, which by design put the two variables/row dimensions to the same level; so you can index them either...

2日 前 | 0

| 採用済み

回答済み
How to get the vertex points of all grid points within a cube?
[x,y,z]=ndgrid(0:5); scatter3(x(:),y(:),z(:),'r')

2日 前 | 1

回答済み
Finding the Probability of a Sequence of Numbers
N = histcounts2(A(1:end-1),A(2:end),1:121,1:121); p = N / sum(N(:))

2日 前 | 0

回答済み
How to speedup assignment of indexed large matrix?
In general on a computer there is a huge different between accessing contiguous memory block (fast, the later code) and non cont...

3日 前 | 0

| 採用済み

回答済み
How can I create a matrix with combination of some other matrix elemenst dynamicaly in a loop
V = {[1 2 3] [4 5] [6 7 8] [9 10]}; M = zeros(1,0); n = cell(0); for k=1:length(V) Vk = V{k}; % replace by your dynami...

3日 前 | 0

| 採用済み

回答済み
How to extract only numerical values from cell into new column array?
s={"chb12_06.edf" "1665 seconds" "1726 seconds" "3415 seconds" "3447 seconds" "chb12_08.edf" "1426 seconds" "1439 seconds" "1591...

3日 前 | 0

| 採用済み

回答済み
How do I find the centre of gravity for an irregular shape?
You can get the coordinates of the centroid if you have a boundary coordinates of a polygonal region: [xc,yc] = polygoncentroid...

4日 前 | 0

| 採用済み

回答済み
Replace elements of a matrix by a smaller matrix which contains circular shaped values margins
C = A; sB = size(B); idx = {1+(1:sB(1)),1+(1:sB(2))}; % adjust offset 1 and 1 if B to be moved at other place C(idx{:}) = B ...

4日 前 | 0

| 採用済み

回答済み
How to compute a Hankel matrix for N-dimension ?
Not sure what is the Hankel in 4-D but by extension in 2D it should be something like this w=5; x=4; y=3; z=2; b = rand(1,w...

4日 前 | 0

| 採用済み

回答済み
How to fit ellipse equation through segment of ellipse?
Warning: you won't ever get reilable ellipse with such as small portion of data. I'll still provide you a code (Optimization ...

4日 前 | 1

回答済み
How to gracefully truncate a matrix of unknown dimensions?
Input = rand(3,4,5) Dimension = 2; a=2; b=4; commaidx = cell(size(size(Input))); commaidx(:) = {':'}; commaidx{Dimension}...

6日 前 | 0

回答済み
Find constraints on polynomial coefficients optimization
Why can't you implement ts := max(min(-a2/(2*a1),T),0); Then add the 6 constraints into your minimization pb: two non-linear ...

6日 前 | 0

| 採用済み

回答済み
Vector decomposition with Matlab
b= [2; 1; 2; 1; 0; 1; 2; 1; 2] b1=min(b,1); b1([find(b==2,1,'first'),find(b==2,1,'last')])=2; b2=b-b1; n=length(b); tail=...

7日 前 | 1

| 採用済み

回答済み
For a multidimensional array is it possible to return all other array dimensions for a single index of one dimension without having to use the colon for indexing?
Mdls = struct(); % Initialise Mdls as struct Mdls = repmat(Mdls,[2,4,6,8,6,4,2]); % Arbitrarily size the struct dim = 3; % dim...

7日 前 | 0

| 採用済み

回答済み
How to find the nearest positive definite matix
Find the smallest eigen value lbdmin of A (use for example EIGS function), then change A by adding A + max(-lbdmin,0)*eye(size...

9日 前 | 1

回答済み
What is the best way to generate samples from a multivariate complex normal distribution with an arbitrary covariance matrix?
% Generate test complex covariance matrix R sdp (m x m) m = 3; A = randn(m)+1i*randn(m); R = A'*A % Generate x, n-samples ...

10日 前 | 0

回答済み
Should I set my bounds in the main function call or in the constraints function in global optimization?
In the lb, ub if you can. Then in linear constraints. then in non-linear constraints. Don't do in the main function. ...

10日 前 | 0

| 採用済み

回答済み
how can i separate a matrix into a multiplication of two matrices One of Real Values and the Other for Integer values.
Of course. Test matrix X = rand(5) n = length(X) then Z = ceil(1000*rand(n,n)) Y = X/Z Y*Z

11日 前 | 1

| 採用済み

Load more