Community Profile

photo

Matt J


Last seen: Today 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 2021
  • Editor's Pick
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 5
  • Knowledgeable Level 5
  • First Answer

バッジを表示

Content Feed

回答済み
Error when using sptensor in parfor
You could try with ndSparse() instead of sptensor() https://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sp...

2日 前 | 0

回答済み
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)

3日 前 | 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','...

3日 前 | 0

| 採用済み

回答済み
Find unique number sets
A = [1 4; 2 3; 3 2; 1 4]; [B,iA]=unique(sort(A,2),'rows')

3日 前 | 0

| 採用済み

回答済み
How to find all possible 8x8 submatrices of a 13x8 matrix?
Using this File Exchange tool set, https://www.mathworks.com/matlabcentral/fileexchange/115340-block-transposition-permutation-...

3日 前 | 1

回答済み
Plotting graph for specific columns and rows
plot(yourTable{1:4000,20}, yourTable{1:4000,60})

3日 前 | 0

| 採用済み

回答済み
Class implementation such that assignment x=MyObj does in fact x=MyObj.prop1
You can't have precisely what you have asked for, but you can do this, classdef TestClass < handle properties pro...

3日 前 | 0

| 採用済み

回答済み
How to create a rectangular mask based on current code for making an elliptical mask
You could also just use poly2mask. This would avoid the overhead of imrotate. M=256; N=256; %Image dimensions diamMax=60; ...

3日 前 | 0

回答済み
How to create a rectangular mask based on current code for making an elliptical mask
I don't understand how your current code works, but you might consider modifying the code below, as appropriate: M=256; N=256...

3日 前 | 0

| 採用済み

回答済み
Backslash does not provided the solution with the smallest 2-norm
In this case, we expect that MATLAB returns the solution x which has the smallest 2-norm, right? No, the backslash operator wil...

3日 前 | 1

回答済み
How to resample vectors of different length into the same length?
How can I achieve that? You can use interp1 Also should I resample to the biggest size out of the vectors or bring them all to...

4日 前 | 0

回答済み
How find the row number for different elements in a column?
As an example, suppose you wanted to find the first occurrence of a 2 in each column. Then one way would be, A=randi(10,10,5) ...

4日 前 | 0

回答済み
Help with DFT Algorithm (No FFT)
When I carry out this calculation I get the following: . No, because 1/3 of your xx are padded zeros. This will reduce your amp...

4日 前 | 2

| 採用済み

質問


Using find() is faster than direct logical indexing?
Does it make sense that using find() instead of direct logical indexing is faster in this example: A=randi(100,5e3,5e3); tim...

5日 前 | 1 件の回答 | 0

1

回答

回答済み
How to call the row number of an element?
With find, but be mindful that direct logical indexing is often faster if you are seeking to modify the matrix. Compare: %Repla...

5日 前 | 0

回答済み
AUC or trapz for irregular shape that intersects itself
Perhaps as follows? p=polyshape(WL_1546La, WL_1546Fa); Areas=area(regions(p))

5日 前 | 0

回答済み
Is it possible to loop through and set image pixels with a parfor loop?
If you have the Image Processing Toolbox, you should use imwarp to perform an image transformation.

5日 前 | 1

回答済み
Why does filtering data before PCA improve results?
PCA applied to the transformed cluster should find PC1 close to L', and therefore the projections of the images on L' should be ...

6日 前 | 0

回答済み
how can I find the max value out of iterative for loop ?
Seems to be working: count=1; while 1 for i=1:20 x(i)= randi(87);% calculations end maxvalue(cou...

6日 前 | 0

| 採用済み

回答済み
Store m iterations of a variable in for loop
Perhaps as follows: ivals=1:step:m; J=numel(ivals); [LAT_3,LON_3,ALT_3]=deal(nan(1,J)); for j = 1:J i=ivals...

6日 前 | 0

| 採用済み

回答済み
How to generate a smooth derivative after fitting a curve to the data?
You can try some different choices of the smoothing parameter, load Data % using cubic spline pp = spline(x,y); derX= fnde...

6日 前 | 0

回答済み
Using structures with Functions
@Stephen23's answer might be what you are looking for, but if you need the struct in scalar form for some reason, then the attac...

6日 前 | 1

回答済み
How do I combine 3 figures into a single plot and compare them?
Perhaps this is what you mean. Start with 3 plots, colors={'r','g','m'} for i=1:3 figure(i); h(i)=plot((0:4)+i,colors{i}); y...

7日 前 | 0

回答済み
How to remove thin lines from the following image?
Perhaps bwpropfilt(bW,'Eccentricity',____)

7日 前 | 0

回答済み
Using bwpropfilt after imrotate
The reason, I suspect, that the number of objects seems to decrease when you imrotate is that you have several objects that are ...

7日 前 | 0

| 採用済み

回答済み
how can I solve this problem
Are N and W known variables? Your code does not provide them, but if they are known, you can reorganize as a polynomial and use ...

7日 前 | 1

回答済み
How to generate and store in different sizes vectors or cells in a loop?
Use cell arrays. interval=cell(1,length(Vneg)); for con=1:length(Vneg); interval{con}=A(A(:,1)>=Fneg(con2) & A(:,1...

7日 前 | 0

| 採用済み

回答済み
Using Curve Fitter, computing Local Maximum (y) and corresponding (x) and export x y of fitted curve to external format (Excel)
If all you're after is the local max, I would skip the curve fitting app and use polyfit. keep=~(isnan(x)|isnan(y)); x=x(keep)...

8日 前 | 0

| 採用済み

回答済み
Exponential curve fitting with nonlinearleastsquares methood
Use fminspleas from the File Exchange, which only requires an initial guess of T1. https://www.mathworks.com/matlabcentral/file...

8日 前 | 0

回答済み
How can I delete a row based on the value of the previous row?
It'll have to be done with a loop, A=[10, 11.5, 13.3 13.5 13.7 17]; i=2; while i<=numel(A) if A(i)<A(i-1)+2 ...

8日 前 | 0

もっと読み込む