Community Profile

photo

Matt J


Last seen: Today
7,153 2009 年以降の合計貢献数

Professional Interests: medical image processing, optimization algorithms

PLEASE NOTE: I do not read email sent through my author page. Please post questions about FEX submissions in their respective Comments section.

連絡する

Matt J's バッジ

  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer

詳細を表示...

貢献した分野
表示方法

質問


Let other applications use Matlab's version of the CUDA toolkit
I have an external piece of CUDA code that needs to know the path to the CUDA Toolkit in order to compile. Rather than installin...

約4時間 前 | 1 件の回答 | 0

1

回答

回答済み
Methods to Speed-up fsolve
If the solutions are expected to evolve continuously, it can save time to use the last result as the initial guess for the next ...

約7時間 前 | 0

| 採用済み

回答済み
How to make Visual Studio 2013 visible to Matlab 2018a
Well, restarting Matlab did not help, but rebooting the computer did.

約8時間 前 | 0

質問


How to make Visual Studio 2013 visible to Matlab 2018a
I have installed Visual Studio 2013 Professional under Windows 10 and I have successfully used it to write, compile, and execute...

1日 前 | 1 件の回答 | 0

1

回答

回答済み
Why is pagemtimes slower on GPU than a CPU?
I don't have a Matlab version that supports pagemtimes, but for the GPU version, it might be advisable to instead try pagefun(@m...

1日 前 | 0

回答済み
fmincon constraining some variables and not others
Setting A(i,i) and b(i) as 0 seems a waste of CPU since fmincon() will probably keep using a constrain that actually is not. In...

1日 前 | 1

| 採用済み

回答済み
i am trying to find coefficients a0 , an and bn but the output for bn seems wrong and will not simplify
Well, here is what I get for bn, >> bn bn = [ 17202483417667977/4503599627370496, 0, 5734161139222659/4503599627370496,...

2日 前 | 0

回答済み
Convert Column vector into matrix
H=histcounts(coln,1:257); result=((1:10).'<=H).*(1:256);

2日 前 | 1

| 採用済み

回答済み
lsqcurvefit bad fitting results
Probably the sqrt() operation in your model function. There is nothing preventing the algorithm from searching in regions where ...

3日 前 | 0

回答済み
Is it possible to add variables to my nonlinear constraints if they are not in the objective function?
Your initial guess x0=[20,20] contains only 2 elements but it should contain 5 because that is how many unknowns you have. If yo...

3日 前 | 0

| 採用済み

回答済み
Running function on GPU for all combination of variables
Here's a loop-free method using ndgridVecs, https://www.mathworks.com/matlabcentral/fileexchange/74956-ndgridvecs but bear in ...

4日 前 | 0

回答済み
construction of diagonal matrix of functions
This might be what you want. It assumes that f_1,2,3(x) work element-wise. function A=func(x) f1=f_1(x(1:end-1)); f2=f_2(...

4日 前 | 0

| 採用済み

回答済み
construction of diagonal matrix of functions
function A=func(x,n) e=zeros(1,n-2); f1=f_1(x); f2=f_2(x); f3=f_3(x); A=toeplitz([f2,f1,e], [f2,f3,e]); ...

4日 前 | 0

回答済み
Running function on GPU for all combination of variables
In this case, I'd use parfor to descrease the simulation duration, but the size of this variable is quite large so I'd prefer to...

4日 前 | 0

| 採用済み

回答済み
Optimization of a unknown vector variable
H1=sum(h1); H2=sum(h2); H3=sum(h3); obj=@(a,b) H1.*a.^2 +H2.*b.^2+H3; x0=[1,1]; lb = []; ub = []; Aeq = []; beq =[];...

4日 前 | 0

| 採用済み

回答済み
Is it possible to find out an unknown variable within constraint which is not present in the objective for a optimization problem?
Yes. It is not a problem if your objective only depends on a subset of variables. However, you must pass the full unknown vector...

5日 前 | 1

| 採用済み

回答済み
FSOLVE GIVES SAME VALUE
clc;clearvars;close all; format short g;format compact; tfinal=30; pars.D=0.00005611; pars.x2f=20; pars.Y=0.4; pars.beta=0....

5日 前 | 0

回答済み
Linprog stopped because no point satisfies the constraints.
linprog is telling you that no solution exists, because there is no x that satisfies your constraints. Your problem must have a ...

5日 前 | 0

回答済み
How can I straighten edges of calibrated images ?
Try setting the 'OutputView' option to 'valid' https://www.mathworks.com/help/vision/ref/undistortfisheyeimage.html#d122e205695...

6日 前 | 1

| 採用済み

回答済み
Matlab close when run
You are using an undefined variable called "k" inside myfun at this line vtk=vt/k; %<--- k not defined here

6日 前 | 0

回答済み
lsqnonlin seems stuck at the same residual value,norm step and first order optimality for a while now
For a 3-variable problem known to have non-differentiabilities, it would make sense to use fminsearch instead of lsqnonlin. Ther...

6日 前 | 0

回答済み
Optimization function based on different domain of optimized variables
Solve the problem twice, once with the constraint x1<=k and once with x1>=k, imposing the appropriate objective function in each...

6日 前 | 0

| 採用済み

回答済み
Change white pixels to invisible
Shouldn't you have alphachannel = 1-double(all(image == 255, 3));

7日 前 | 0

回答済み
Converting strings to operators
I can't tell if you really intend S to be a string vector because that dpesn't agree with the example you posted. If I assume it...

7日 前 | 1

回答済み
optimization problem of areas
Your objective function Area2 is written to be a function of z, but nothing in sum( ( x.*dt(m(1):c(1)) ) ) depnds on z. Perha...

7日 前 | 0

| 採用済み

回答済み
Fmincon gives relative maximum constraint violation but still gives output due to conflicting constraints.
For example, [tmp,fval,exitflag] = fmincon(Total_Profit,Guess,A,b,Aeq,beq,LB,UB,[],options); if exitflag>0 xopt(i,:...

7日 前 | 0

回答済み
Calculate the midpoint of two lines on a track
The effectiveness of any solution we give will depend on whether the illumination levels of every frame will be similar to your ...

8日 前 | 0

回答済み
Preallocation within an optimization loop
xopt=nan(runs,2); %Pre-allocate Total_Private_Profit=nan(runs,2); %Pre-allocate for i = ...

8日 前 | 0

| 採用済み

回答済み
orthagonal planes and normal vectors
format long; A=normalize( [3,2,-1; 3,-8,-7;-22,18,-30] ,2,'norm'); If they are orthogonal, this should give the identity matr...

10日 前 | 1

回答済み
Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.699518e-25.
If C is singular, then C is singular and that's all there is to it. However, this will make the same inversion slightly less sin...

10日 前 | 0

| 採用済み

Load more