Community Profile

photo

Matt J


Last seen: Today
7.300 total contributions since 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.

Contact

Matt J's Badges

  • 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

View details...

Contributions in
View by

Answered
Calculation of Rotation in 3D space
You can use absor() https://www.mathworks.com/matlabcentral/fileexchange/26186-absolute-orientation-horn-s-method to register ...

alrededor de 10 horas ago | 0

Answered
how to change values within an array to NaN
zn = F(xn,yn); bad = (1280 <= xn & xn<=1950) & (3025 <= yn & yn <= 4000) ; zn(bad)=nan;

alrededor de 10 horas ago | 0

| accepted

Answered
Failure in initial objective function evaluation in FMINCON function
This loop does not make sense, because in the workspace of Cost(), the variable U only has 1 column. for i=1:Np x(: ...

1 día ago | 0

Answered
Finding domain and range with polyfit/polyval
In theory, you would do, [c1,c2]=deal(coef); c2(end)=c2(end)-15; r1=roots(c1); r2=roots(c2); time=r2(r2>43 & r2<45) - r...

1 día ago | 0

Answered
Define a collection of variables
Since you already have the data in table form, you can just do things like, mdl=fitlm(T(:,["Albania","Afghanistan","sales"]))

1 día ago | 0

| accepted

Answered
Getting the "Error running optimization. Too many output arguments." when running fmincon with gradient option in derivatives.
Any idea on where the issue may be? It sounds like you have set SpecifyObjectiveGradient=true. However, it does not appear from...

3 días ago | 0

| accepted

Answered
Passing options from subclass constructor to superclass?
Can't you just convert the options structure back to a cell array of name value pairs and use that to call the super class cons...

3 días ago | 0

| accepted

Answered
How can I recognize a mesh of points on the same plane?
In this example there are 11 frames, which are 2D structures made up of points located on the same plane and that said plane is ...

3 días ago | 0

Answered
Trying to get a function to apply to values in an array
One way to fix it, V=arrayfun(@(z)tank(10,z), d);

4 días ago | 1

| accepted

Answered
cftool and hyperdimensional data
It cannot, but lsqcurvefit can. https://www.mathworks.com/help/optim/ug/lsqcurvefit.html

4 días ago | 1

| accepted

Answered
How to Use "Ask a Question" Section Correctly?
Clearing cookies was sufficient for me.

4 días ago | 0

Question


Using CUDA mex files interoperably with gpuArray
I have a 3rd party black box CUDA mex file. Every time I use it, it puts my GPU in a state such that gpuArray cannot subsequentl...

4 días ago | 1 answer | 2

1

answer

Answered
How do I remove any Column in a matrix
Nothing is wrong with the code you've posted, but it would be simpler to do, B=A(:,[1:n-1,n+1:end]); or, slightly less effici...

5 días ago | 2

| accepted

Answered
How to convert a cell containing sub cells to a vector
A={{{rand(5,1)},{rand(7,1)}},{rand(3,1)}}; %Example Vector=A; while iscell(Vector) Vector=cellfun(@(c) c(:), Ve...

5 días ago | 0

| accepted

Answered
How does vectorized lsqcurvefit() calculate sum-of-square, row-wise or column-wise?
if ydata is m-by-n, then sum-of-squares should be m-by-1. No. The objective function minimized by lsqcurvefit is always just, ...

5 días ago | 1

| accepted

Answered
Column multiplication of two 2D matrices.
I am planning to take sum along the third dimension That would simply give you A*B.'

5 días ago | 1

Answered
Column multiplication of two 2D matrices.
I doubt you will be able to do the computation with the matrix sizes you've indicated. The result will consume 3.5 TB of RAM in ...

5 días ago | 0

Answered
multiple loop do not loop
for i=1:noofcol for j=1:noofrow

6 días ago | 0

| accepted

Answered
Rearranging a 512x64 matrix into a 32x1024 matrix
See reshape(). https://www.mathworks.com/help/matlab/ref/reshape.html

6 días ago | 0

Answered
Variance when only one observation is not NaN
A=myTable.A; pastvarofA=movvar(A,[4,0],'omitnan'); pastNaNs=movsum(~isnan(A),[4,0],'omitnan'); pastvarofA(pastNaNs<=1)=na...

6 días ago | 0

| accepted

Answered
Performance of Parfor Loops
Because even when you use just 1 worker, the Matlab code will to some degree be able to use all 8 cores that you have. To see if...

6 días ago | 0

| accepted

Answered
EDITED: Variance when only one observation is not NaN
A=[1;2;3;NaN;5;5;6]; varofA = movvar(A,2,'Endpoints','discard')

7 días ago | 0

| accepted

Answered
Obtaining min value each month across several years
G=findgroups(filename(:,3),filename(:,4)); [mintemp,rowIndex]=splitapply(@func,filename(:,1),(1:numel(G)).',G) functio...

7 días ago | 0

| accepted

Answered
Problems running gpuArray function - CUDA driver
Make sure you've rebooted the computer after the installation.

7 días ago | 0

Answered
Optimization objective funcion containing a sum
s=sign(sum(PV(1:n,1))); if s<=0, b=1; else, b=0; end

8 días ago | 0

Answered
Optimization function with a summation
The solution is simply, b = zeros(144,5); b(PV(1:j)>0,:)=1;

8 días ago | 0

Answered
optimization using problem based
Are you sure t should be an optimvar? It seems to me it should be a set of discrete known values t = linspace(0,Time,N) Once...

8 días ago | 0

Answered
Error in fminsearch (line 200) fv(:,1) = funfcn(x,varargin{:});
Change the output of your function to a squared error over all 3 companies, or some other scalarization of the current output th...

8 días ago | 0

Answered
If I already had a function and some points(x,y), how can I find six parameters in a function?
fminspleas would be a good choice, https://www.mathworks.com/matlabcentral/fileexchange/10093-fminspleas seeing as 3 of your ...

9 días ago | 1

Answered
Find the symmetric and skew-symmetric matrices by 2x2 blocks
A=[ 0,-1, 2,3; 1,0, 4,2; -2,3, 0,-1; 4,-2, 1,0; ]; n=length(A)/2; mask = (-1).^( (1:2*n).' ...

10 días ago | 0

Load more