Bruno Luong
統計
All
Content Feed
回答済み
express basis spline derivative in terms of interpolation values
x = [1 2 3 4 5]; y = randn(size(x)); k = 5; f = spapi(k,x,y); B = spapi(k,x,eye(length(x))); fdd = fnder(f, 2); Bdd = ...
express basis spline derivative in terms of interpolation values
x = [1 2 3 4 5]; y = randn(size(x)); k = 5; f = spapi(k,x,y); B = spapi(k,x,eye(length(x))); fdd = fnder(f, 2); Bdd = ...
約8時間 前 | 0
| 採用済み
回答済み
Use MATLAB Coder to convert matlab code to mex without using multi-threading
https://www.mathworks.com/help/coder/ug/use-parallel-for-loops.html
Use MATLAB Coder to convert matlab code to mex without using multi-threading
https://www.mathworks.com/help/coder/ug/use-parallel-for-loops.html
3日 前 | 0
回答済み
How to get all possible combination With the total number of possible combination for "n" variables that can take different values
Checkout similar thread https://www.mathworks.com/matlabcentral/answers/476022-how-to-pick-up-all-combination-of-numbers-from-m...
How to get all possible combination With the total number of possible combination for "n" variables that can take different values
Checkout similar thread https://www.mathworks.com/matlabcentral/answers/476022-how-to-pick-up-all-combination-of-numbers-from-m...
4日 前 | 0
| 採用済み
回答済み
Possible issues with solving iterative linear systems with mldivide
"Is there a way to see the matrix solver steps to see which expressions might have an issue?" No they are LAPACK/BLAS based cod...
Possible issues with solving iterative linear systems with mldivide
"Is there a way to see the matrix solver steps to see which expressions might have an issue?" No they are LAPACK/BLAS based cod...
4日 前 | 0
回答済み
Sparse matrix vector product returns null.
"What can cause this issue?" Nothing. What you claim likely would not happen. Unless if you show an example.
Sparse matrix vector product returns null.
"What can cause this issue?" Nothing. What you claim likely would not happen. Unless if you show an example.
4日 前 | 0
| 採用済み
回答済み
How to define if/else non linear constraint in an optimization problem
Simply solve three different optimization pbs with the three repectively constraints independently and ignore the two other, the...
How to define if/else non linear constraint in an optimization problem
Simply solve three different optimization pbs with the three repectively constraints independently and ignore the two other, the...
4日 前 | 1
回答済み
How to use loop to fill in specific numbers?
T = combinations(1:4,1:8) % for alder release that does not support combinations [v1 v2] = meshgrid(1:4,1:8); v1 = v1(:); ...
How to use loop to fill in specific numbers?
T = combinations(1:4,1:8) % for alder release that does not support combinations [v1 v2] = meshgrid(1:4,1:8); v1 = v1(:); ...
4日 前 | 0
回答済み
Error With Least Squares Approximation
Few other recommendations beside what Torsen and John altrady told you: Lower the polynomial order, do not go above 7, But you ...
Error With Least Squares Approximation
Few other recommendations beside what Torsen and John altrady told you: Lower the polynomial order, do not go above 7, But you ...
5日 前 | 0
送信済み
Free-knot spline approximation
Least squares approximation of 1D data using free-knots spline
5日 前 | ダウンロード 33 件 |
質問
ANY and ALL with NaN array
According to any documentation page, it " determines if any element is a nonzero number". OK to me NaN is nonzero number so I do...
6日 前 | 1 件の回答 | 0
1
回答回答済み
Make histogram from multiple cells.
% Generate dummy test data C=arrayfun(@(varargin)randn(5+randi(20),24), 1:30, 'unif', 0); A=cell2mat(C(:)); % m x 24, like c...
Make histogram from multiple cells.
% Generate dummy test data C=arrayfun(@(varargin)randn(5+randi(20),24), 1:30, 'unif', 0); A=cell2mat(C(:)); % m x 24, like c...
8日 前 | 0
| 採用済み
回答済み
My First Derivative is not correctly calculated in matlab
syms yApprox(X1) a0 a1 a2 a3 a4 a5 a6 yApprox = a0 + a1.*X1 + a2.*(X1).^2 + a3.*(X1).^3+ a4.*(X1).^4 + a5.*(X1).^5 + a6.*(X1).^...
My First Derivative is not correctly calculated in matlab
syms yApprox(X1) a0 a1 a2 a3 a4 a5 a6 yApprox = a0 + a1.*X1 + a2.*(X1).^2 + a3.*(X1).^3+ a4.*(X1).^4 + a5.*(X1).^5 + a6.*(X1).^...
8日 前 | 0
| 採用済み
回答済み
for loop vectorization of De Boor algorithm
Old question, but I'll reply it for future readers that wonder how to tackle the same problem. I did a quick and dirdty vectori...
for loop vectorization of De Boor algorithm
Old question, but I'll reply it for future readers that wonder how to tackle the same problem. I did a quick and dirdty vectori...
8日 前 | 0
回答済み
Increase plot speed in MATLAB
Try to look at animatedline command Also look at drawnow with or without limitedrate option, it somewhat has certain effect, ev...
Increase plot speed in MATLAB
Try to look at animatedline command Also look at drawnow with or without limitedrate option, it somewhat has certain effect, ev...
11日 前 | 0
回答済み
Error calculating inverse for matrix block of LU decomposition of a full row rank matrix
It's a little bit perturbant, but reading the lu doc I don't see why U1 must have the same rank than U (or A, meaning 100 on you...
Error calculating inverse for matrix block of LU decomposition of a full row rank matrix
It's a little bit perturbant, but reading the lu doc I don't see why U1 must have the same rank than U (or A, meaning 100 on you...
11日 前 | 0
| 採用済み
回答済み
de boor bspline algorithm
A very late answer, but as I deal myself with de Boor algorithm I look what exists out there. If the question concerns the 3D a...
de boor bspline algorithm
A very late answer, but as I deal myself with de Boor algorithm I look what exists out there. If the question concerns the 3D a...
12日 前 | 0
回答済み
For a repeated eigenvalue only one eigenvctor is being returned
Indeed in case of eigenvalue with multiplicity > 1; the problemie is numerical challenging and MATLAB might fail to find the cor...
For a repeated eigenvalue only one eigenvctor is being returned
Indeed in case of eigenvalue with multiplicity > 1; the problemie is numerical challenging and MATLAB might fail to find the cor...
12日 前 | 0
回答済み
How "chol" and "qz" MATLAB algorithms are utilised in the "eig" MATLAB function?
See stage 3 described in https://netlib.org/lapack/lug/node56.html or somewhere in this file
How "chol" and "qz" MATLAB algorithms are utilised in the "eig" MATLAB function?
See stage 3 described in https://netlib.org/lapack/lug/node56.html or somewhere in this file
15日 前 | 0
| 採用済み
回答済み
steps to convert spline from B-form to pp-form (fn2fm)
The pp-form stores the polynomial of each each subiterval, the variable is x := (t-ti) where ti is the left knot of interval #i....
steps to convert spline from B-form to pp-form (fn2fm)
The pp-form stores the polynomial of each each subiterval, the variable is x := (t-ti) where ti is the left knot of interval #i....
16日 前 | 0
| 採用済み
回答済み
How to extract a matrix of values from cell array of cell arrays of structs
Generate data (Thanks Voss) n1 = 3; n2 = 4; mse = cell(1,n1); for ii = 1:n1 mse{ii} = cell(1,n2); % row vector for...
How to extract a matrix of values from cell array of cell arrays of structs
Generate data (Thanks Voss) n1 = 3; n2 = 4; mse = cell(1,n1); for ii = 1:n1 mse{ii} = cell(1,n2); % row vector for...
27日 前 | 0
| 採用済み
回答済み
Where is dlfeval tracing information stored?
I don't kwow the dlarray class but IMO it looks like the creating function handle f is stored in some sort of private property i...
Where is dlfeval tracing information stored?
I don't kwow the dlarray class but IMO it looks like the creating function handle f is stored in some sort of private property i...
約1ヶ月 前 | 0
質問
Default rank revealing tolerance
In few MATLAB functions such as RANK, PINV, ORTH there is a parameter TOL. MATLAB uses the default value as % tol = max(size(A...
約1ヶ月 前 | 0 件の回答 | 1
0
回答回答済み
plot() and fplot() give different results for the same function
Your coding is wrong: Replace "/" with "./"
plot() and fplot() give different results for the same function
Your coding is wrong: Replace "/" with "./"
約1ヶ月 前 | 0
| 採用済み
回答済み
getting warning while using eigs on the matrices obtained from freefem++
Try to follow the suggestion you get " Consider specifying a perturbed numeric sigma value to improve the condition of the matri...
getting warning while using eigs on the matrices obtained from freefem++
Try to follow the suggestion you get " Consider specifying a perturbed numeric sigma value to improve the condition of the matri...
約1ヶ月 前 | 0
回答済み
cubic spline interpolation - mixed boundary conditions possible?
In principle yes. The spline on the second segment (b,c) are piecewise cubic poynomials; starting from b sequentially to each in...
cubic spline interpolation - mixed boundary conditions possible?
In principle yes. The spline on the second segment (b,c) are piecewise cubic poynomials; starting from b sequentially to each in...
約2ヶ月 前 | 0
| 採用済み
回答済み
How to convert /map uint16 to int16 maintaining the dynamic range so that [0] and [2^16-1] in uint16 beomes [-2^15] and [2^15-1] without going through double
If you have C compiler this simple mex file will do the job: /*****************************************************************...
How to convert /map uint16 to int16 maintaining the dynamic range so that [0] and [2^16-1] in uint16 beomes [-2^15] and [2^15-1] without going through double
If you have C compiler this simple mex file will do the job: /*****************************************************************...
約2ヶ月 前 | 1
回答済み
Faster/better conversion than using swapbytes typecast on udp byte datastream?
Try this: %% Exampel data data =[0 5 187 8 1 136 61 48 0 0 0 0 1 67 58 246 255 127 176 76 10 231 55 137 255 240 253 91 255 22...
Faster/better conversion than using swapbytes typecast on udp byte datastream?
Try this: %% Exampel data data =[0 5 187 8 1 136 61 48 0 0 0 0 1 67 58 246 255 127 176 76 10 231 55 137 255 240 253 91 255 22...
約2ヶ月 前 | 0
| 採用済み
回答済み
How to add extra columns at specified locations
After computing dataset2 dataset = [1, 2, 3, nan, 4, 5, nan, 6, 7]; % ... dataset2 = [2, 5, 7, 8, 4, 8, 10]; do this: da...
How to add extra columns at specified locations
After computing dataset2 dataset = [1, 2, 3, nan, 4, 5, nan, 6, 7]; % ... dataset2 = [2, 5, 7, 8, 4, 8, 10]; do this: da...
約2ヶ月 前 | 0
| 採用済み
回答済み
scrit can't error related to Sortrows and matrix
Replace initialization statements sol=[]; % Start with an empty matrix of feasible solutions data = []; with sol=zeros(...
scrit can't error related to Sortrows and matrix
Replace initialization statements sol=[]; % Start with an empty matrix of feasible solutions data = []; with sol=zeros(...
約2ヶ月 前 | 0
回答済み
Max Recursion even when using clear
Don't name your script function clear.m. In command windows type which clear then rename or remove that file to restore the bu...
Max Recursion even when using clear
Don't name your script function clear.m. In command windows type which clear then rename or remove that file to restore the bu...
約2ヶ月 前 | 0