
Matt J
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.
Statistics
RANK
6
of 262.635
REPUTATION
24.896
CONTRIBUTIONS
218 Questions
9.684 Answers
ANSWER ACCEPTANCE
75.23%
VOTES RECEIVED
3.270
RANK
243 of 17.980
REPUTATION
5.601
AVERAGE RATING
4.90
CONTRIBUTIONS
34 Files
DOWNLOADS
306
ALL TIME DOWNLOADS
46868
RANK
of 113.641
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
3 Highlights
AVERAGE NO. OF LIKES
2
Content Feed
How can I assign zeros to a particular value in an expression
N =4; u = [0,(1:N),0]; v = [0,(N:2*N-2),0]; rhsode=diff(u,2)+(v(3:end)-v(1:end-1))
9 minutos ago | 0
Question about the fminsearch Algorithm
Is there a way for me to actually set up the starting simplex by myself? So that instead of giving the fminsearch-solver an init...
23 minutos ago | 0
Fitting a line of best fit on a plot only between a restricted domain.
You can do it interactively with the brush tool and basic fitting menu options on the figure toolbar. https://www.mathworks.com...
alrededor de 12 horas ago | 0
Query regarding toolbar in MATLAB App designer
As far as I can tell, you must rebuild the toolbar using uitoolbar, uipushtool, and uitoggletool.
alrededor de 13 horas ago | 0
Parallel processing in ga using 'UseParallel'
Is it that it calls the objective function in parallel? Yes. And can I specify in the parallel pool settings that only 10 are...
alrededor de 14 horas ago | 1
Automatisation of struct creation and data import
for i=1:3 data_alone_paired(i,1).acc_pelvis_subject1 = data_alone(2*i-1).fsignal_down(:,1); data_alone_paired(i,1).acc_pelvi...
alrededor de 23 horas ago | 0
How to calculate the rotation of this egg?
BW1=~getEgg('egg1.png'); BW2=~getEgg('egg2.png'); S1=regionprops(BW1,'Orientation'); S2=regionprops(BW2,'Orientation'); ...
alrededor de 23 horas ago | 1
How to calculate the rotation of this egg?
First, crop the black corders from your image fiels. Then, use ellipticalFit() from, https://www.mathworks.com/matlabcentral/fi...
alrededor de 24 horas ago | 1
How can I calculate and plot a 3D pointing vector from a 2D azimuth and elevation angle?
x1=2; %initial x position y1=2; %initial y position z1=0; elev=20; [az,r]=cart2pol(x1,y1); [x2,y2,z2]=sph2cart(az,elev*...
1 día ago | 0
Not enough input arguments
It must be something in your environment. Running the code here in the forum produces no errors. I would suggest clearing the wo...
1 día ago | 0
Deduplicate Rows from Struct
How about this? Database.x = [1 0 1 2 0 2 3 0 1 1 0 1]; Database.f = [10 20 ...
1 día ago | 0
| accepted
Question
Is there a way to specify objective and constraint gradients when doing nonlinear optimization in the problem-based framework?
In the solver-based framework, user-applied gradients are specified as additional output arguments from the objective and constr...
1 día ago | 1 answer | 0
1
answerfmincon nonlinear inequality constraint
The nonlinear constraints are not obeyed at all iterations. At iterations where they are not obeyed, chol() will give you an err...
1 día ago | 2
| accepted
Remove centroid locations of objects that are too close
A=[xf(:) yf(:)]; D=pdist2(A,A); D(D==0)=inf; %retroactive EDIT keep = all(D>d,1); xf=xf(keep); yf=yf(keep);
1 día ago | 0
| accepted
Number of .mat files into single .mat file
It depends what they contain and how you want the variables joined within the final .mat file. One way: filenames="data"+(1:10...
1 día ago | 1
| accepted
Calibration) How can i get to know multiplying order of Rotation matrix corresponding each axis?
(1) There is no single, unique ordering of Rx,Ry,Rz when you decompose a rotation matrix. You have 6 different choices for the o...
1 día ago | 0
why is acumarray much slower calculating means than sum?
I suspect it is because, when you pass in @sum, accumarray is smart enough to recognize that it can use its default settings, wh...
1 día ago | 2
How to use lsqnonlin command for solving a cost function minimization problem which consists of optimization variable?
If you have an objective created with optimvar variables, you would solve the problem by using the solve command, C = [0 0 0 1 ...
1 día ago | 0
| accepted
limits of Optimization variable can be another variable in problem based optimization?
No, you must use a linear inequality constraint: PbattV1 = optimvar('PbattV1',N,'LowerBound',0); prob.Constraints.conName=(P...
1 día ago | 0
| accepted
How to convert an optimization variable to symbolic variable?
You can use the evaluate() command to substitute in values.
1 día ago | 0
Set elements in a 3D array to zero based on a condition
Qr(Qr<0)=0;
1 día ago | 0
| accepted
reduction variables and evaluation order
First remember that each worker is assigned some consecutive subset of loop iterations. The worker will execute the iterations w...
2 días ago | 0
| accepted
max value of a function
In general I use: x= double(solve(diff(func))); This assumes there are no local min/max or saddle points. if i try to use max...
2 días ago | 0
Fastest way to compute a multiplication of matrices times a sequence of kronecker products
With this FEX package https://www.mathworks.com/matlabcentral/fileexchange/25969-efficient-object-oriented-kronecker-product-ma...
2 días ago | 0
| accepted
I meet a formula about bilinear interpoltaion, but it not mention the 'int' in formula, how can I convert it to matlab code?
You could just use interp2.
2 días ago | 0
for loop storing the same variable
Because in every pass through the loop, you assign the result to the same location. Perhaps you meant, demodulated_power_vector...
2 días ago | 0
| accepted
Error when using sptensor in parfor
You could try with ndSparse() instead of sptensor() https://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sp...
5 días ago | 0
| accepted
Calculate the mean of nonzero pixels and setting a threshold
fun=@(z) nanmean(z(z<99)); my_mean = accumarray(double(mask(:))+1, my_array(:),[], fun)
5 días ago | 1
Can I use a nearest neighbor extrapolation strategy with interp1?
If you want to mix interpolation and extrapolation methods, use griddedInterpolant instead: F=griddedInterpolant(1:5,'linear','...
6 días ago | 0
| accepted