Community Profile

photo

Matt J


Last seen: Today Active 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.

Statistics

All
  • Most Accepted 2022
  • Grand Master
  • Editor's Pick
  • Personal Best Downloads Level 4
  • Most Accepted 2021
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 5
  • Knowledgeable Level 5

View badges

Content Feed

Answered
How to have a class that contains multiple functions that is used in other classes?
A static class method can be imported from a package like in this example, https://www.mathworks.com/help/matlab/ref/import.htm...

12 minutes ago | 0

Answered
Adding zeros to a column vector to match a larger column vector
This gracefully handles the case when length(x)=length(y), and requires no consideration of whether x,y are row or column vector...

4 hours ago | 0

Answered
Is Conv2 based on direct convolution?
It is not FFT-based. To do FFT-based convolution (using the overlap-and-add method) you could use fftfilt.

4 hours ago | 0

Answered
How to draw a generic cylinder with arbitrary orientation
See this File Exchange download, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitting-c...

4 hours ago | 0

Answered
Loading files by replacing some part of the name with a variable
Pre-generate all of the filenames and loop over them. FileNames = compose("GNSS_Validierung_%.2d",(1:41)' )

11 hours ago | 0

Answered
Facing problem in solving simultaneous nonlinear equation with 3 unknowns
What @Dyuman Joshi says is true. However, your equations don't seem to make sense without upper and lower bounds on x. For examp...

13 hours ago | 0

Answered
Assigning row names iteratively
The row names of a table cannot be non-unique, so having the names of the 7 days of the week repeat 52 times would not generate ...

13 hours ago | 0

| accepted

Answered
Plotting a giant surface exceeding array limitations
First of all, you should consider downsampling from 40000 points to perhaps 400. Having very dense data beyond a certain point w...

1 day ago | 1

| accepted

Answered
Partial Fourier transform of large sparse 3D array
There is at most 1 nonzero pixel in each x-y plane (first 2 dimensions) ... I'm thinking of doing 1D Fourier transform on each d...

1 day ago | 0

Answered
Partial Fourier transform of large sparse 3D array
You can do the partial Fourier transforms by computing a set of partial DFT matrices: dftPartial=@(N,k)sparse(exp(-(2j*pi/N)*(0...

2 days ago | 0

Answered
Adding more values to an array every loop
One possibility, y=nan(1,100); s=0; for k=1:numel(y) y(k)=2*k-1; s=s+y(k).^2; if s>40, y...

2 days ago | 1

| accepted

Answered
My ellipse wont close after running the code .
Can't you just use the native spline() command? theta = linspace(0, 2 * pi, 8); t_x = 2*cos(theta); t_y = sin(theta); dt_x...

2 days ago | 0

Answered
Newton Raphson to solve a system of non-linear equations
From the surface plot, the equations don't appear to have any solution, or at least no where near the vicinity you are searching...

2 days ago | 0

Answered
Why is my gamultobj algorithm not working?
My guess would be that it is struggling to find feasible solutions to the nonlinear constraints (perhaps because they don't have...

3 days ago | 0

Answered
Solve large number of independent systems with fsolve, where some systems do not have a solution
I see no reason why fsolve would "give up" if you've set MaxIterations and MaxFunctionEvaluations to Inf, regardless of whether ...

3 days ago | 0

| accepted

Answered
Display long strings that include newlines in a table
I don't think there's a way. But you could write to an Excel file (e.g., with writetable) where multiline cells are possible. >...

3 days ago | 0

Answered
Dot indexing is not supported for variables of this type.
Have you actually looked at the contents of device? Is it possible that MAI.GetDeviceByIndex(0) returns empty [] because someth...

3 days ago | 0

Answered
understand in which function the field is filled
If ReportAggreg is created literally with an assignment statement of the form someStruct.ReportAggreg = something it should be...

4 days ago | 0

| accepted

Answered
Can I define the relationship between input and output using the raw experimental data in MATLAB. somthing like this .
Yes, you have a choice of lsqcurvefit, fit, and various others.

4 days ago | 0

Answered
How can I get X value by transforming the griddedInterpolant function?
Why not just, F=scatteredInterpolant(Y(:),Z(:),X(:));

4 days ago | 0

| accepted

Answered
Is there any layer defined in matlab for sine activation function? Or else can we define the layer using functionLayer?
If it will not have any learnable parameters, you can use a functionLayer.

4 days ago | 0

Answered
How can I use the returned sort index from the sort() function on a multidimensional array?
The easier way would be to use the attached modification of sort() which will simply return the output indices as lienar indices...

4 days ago | 0

Answered
Loop around a toolbox
This runs: for N = 40:42 %<---shortened Daten=rand(N);%<-----added v = [1]; m = zeros(1,N); for n ...

4 days ago | 0

| accepted

Answered
app class properties check
I imagine that you could define your own property validation function, https://www.mathworks.com/help/matlab/matlab_oop/propert...

4 days ago | 1

Answered
Using Linear indicies to create new image
stats=regionprops(BW,'PixelIdxList'); Z0=false(size(BW)); for i=1:numel(stats) Z=Z0; Z(stats(i).PixelIdxLi...

4 days ago | 0

Answered
How to extract all values along the third axis of a 3d-array using a logical 2d-array?
a = rand(10,10); a(5,5) = 10; b = a+rand(1,1,1000); br=reshape(b,[],size(b,3)); c = br(a == 10,:)

4 days ago | 2

Answered
How can I graph these two equations in matlab?
One way, f =@(y) (y-4).*(2*y-y.^2); fplot(f); xlabel y; ylabel f(y) and similarly with the other function.

5 days ago | 1

Answered
Common legend for each row of tiled layout
I could do nested tiled layouts, but that seems very cumbersome, especially when I have many more rows. Why? %% Make Layout Sk...

5 days ago | 1

| accepted

Answered
is there a way to perform this task w/o using loops?
There are ways to do it without loops, but doing it without loops will be of no benefit to you. It will take more lines of code,...

6 days ago | 1

Answered
Draw angled ellipses around clusters on PCA plot
Using polyshapes: ellipse=rotate( scale(nsidedpoly(1000),[2,1]) ,30); plot(ellipse)

6 days ago | 0

Load more