Matt J
Statistics
42 Files
Cody Discussions10 Discussions
RANK
6
of 302,378
REPUTATION
32,468
CONTRIBUTIONS
321 Questions
12,504 Answers
ANSWER ACCEPTANCE
79.13%
VOTES RECEIVED
4,334
RANK
201 of 21,756
REPUTATION
6,811
AVERAGE RATING
4.90
CONTRIBUTIONS
42 Files
DOWNLOADS
212
ALL TIME DOWNLOADS
56314
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
10 Discussions
AVERAGE NO. OF LIKES
1
Feeds
Submitted
uiGetFiles -- reimplementation of uigetfile as a .mlapp
Matlab's native uigetfile is implemented here using a .mlapp dialog window to overcome certain bugs that have crept in in R2025 ...
1 day ago | 1 download |
UIGETFILE to filter out files starting with a specific character
To overcome this issue (and others), I reimplemented uigetfile as a .mlapp, downloadable from here, https://www.mathworks.com/m...
1 day ago | 0
Unexpected behaviour of uigetfile with "*.*" filter
...creating/using custom uigetfile... I'm not sure what was unattractive about this option. With help from AI, I was able to co...
1 day ago | 0
Unexpected behaviour of uigetfile with "*.*" filter
This isn't a complete solution to your problem, but you can still have replicate filters for non-empty extensions, testFilters ...
2 days ago | 1
| accepted
Function Argument Validation accepting "areyoukiddingme" as (1, 4) double
@Adrian does this yield that the whole Function Argument Validation is rather useless Function argument validation is not usel...
6 days ago | 2
Why Don't taylor and series Return the Constant and Linear Terms Around the Expansion Point?
I'd imagine that when asking for a Taylor series the user is expecting to see all terms around the expansion point. Not sure ab...
10 days ago | 1
Making custom neural network layer with state, doesn't accept unformatted dlarray
It's not an issue with the dlarray formatting. It is an issue with the predict() syntax, which should be, function [Z,p...
16 days ago | 0
| accepted
How to prevent a variable in a for loop within a parfor loop from being broadcast to all workers
Avoid using cells and loops when matrices and matrix arithmetic will do, A=permute( cat(3,RFRF{:}) , [1,3,2] ); %nresp x ncomp...
20 days ago | 1
| accepted
How to prevent a variable in a parfor loop from being broadcast to all workers?
Yes: FileNames=cell(2,1); FileNames{1}='abc'; FileNames{2}='wxyz'; select=[1 2]; [~,is]=sort(select); FileNames=FileName...
20 days ago | 1
| accepted
How can I find a set of numbers in a larger set of numbers
A = [4 3 7]; B = [6 7 9 10 5 9 5 4 3 7 9 10 34 2 3 4 3 7 32 46 1]; n=numel(A); xc=normxcorr2(A,B); I=find(xc>0.9999)-cei...
23 days ago | 0
Question
Are properties with Access class lists private?
I have the simple class hierarchy below: classdef myclass properties (Access = {?ClassA}) p=1; end meth...
24 days ago | 1 answer | 2
1
answerHow to overload a single parentheses indexing operation, not all of them?
Is there a way to provide just a single method that I need? I have created a general-purpose parent class to help with this, ...
28 days ago | 0
Can I use Matlab's default implementation of empty with matlab.mixin.indexing.RedefinesParen?
I think in most/many cases, you could just define the empty() method to return a base class object. As long as the child classes...
28 days ago | 0
Submitted
RedefinesIndexing: a class for incremental modular index overloading
Subclasses of RedefinesIndexing can make incremental changes to modular indexing methods while keeping traditional array semanti...
28 days ago | 0 downloads |
How to avoid recursion with parenReference
I have created a general-purpose class called RedefinesIndexing ( Download ) which elaborates on the example in the RedefinesPar...
29 days ago | 1
How can I capture all outputs in a cell array, if the function uses varargout and the number of outputs is dependent on the function parameters.
Since the function in question is supplied by the user, I have no control over it and cannot e.g. use the first result to return...
1 month ago | 0
Reliable way to separate entangled points into different lines?
or do i need to run some sort of weird RANSAC strategy across every cluster until it converges towards a set of lines If it hel...
1 month ago | 0
Zero Hessian Matrix using dlgradient and dljacobian
The call to dljacobian should be, hessian = dljacobian(gradients.Value{2}(:), net.Learnables.Value{2},1); The reason, I believ...
1 month ago | 0
| accepted
How can I capture all outputs in a cell array, if the function uses varargout and the number of outputs is dependent on the function parameters.
except trial and error, which will not work for me due to side effects and the runtime of the function I don't think there is a...
1 month ago | 0
Why is trainlm in train is extremely faster than lm in trainnet options
I suspect that trainnet does not explicitly compute the Jacobian J and J.'*J the way trainlm does. There are memory-conserving v...
2 months ago | 0
| accepted
Why is trainlm in train is extremely faster than lm in trainnet options
The network architectures in the two cases are not equivalent. By default, feedforwardnet uses tansig activations for hidden lay...
2 months ago | 0
Is There Any Practical Difference Between Extraction and Deletion When Reducing a Vector?
I remember past tests showing that extraction was more efficient, but that was many years and Matlab versions ago. It still appe...
2 months ago | 0
How to avoid recursion with parenReference
The problem is that no matter how I try to select the subset of objects to return in the third line, it calls parenReference rec...
2 months ago | 0
How to get var(2:3).fun indexing to work for my custom classdef file (Part 3)
Attached is an alternative solution that skips subsref/subsasgn altogether and instead inherits from the matlab.mixin.indexing.R...
2 months ago | 0
How to get var(2:3).fun indexing to work for my custom classdef file (Part 3)
You need to implement a numArgumentsFromSubscript method, for example, as attached. a = myclass(1:7); a(2:3).add I surmise...
2 months ago | 0
| accepted
How to get "end" indexing to work in my custom classdef file
It doesn't appear that you have supplied an overloaded end(...) method for the class. I imagine you would want something like t...
2 months ago | 0
| accepted
Is it More Efficient to Load a Subset of Variables from a .mat File Rather than All of the Variables?
I would expect Option 2 to be more efficient, especially when compression is applied. By specifying a subset of variables, load...
2 months ago | 1
| accepted
Is rowfun Showing Strange Behavior when the Target Function Returns an Empty Output?
How could fun2 return an output with more than one row when applied to the third row of T when the output in that case should be...
2 months ago | 1
How to erase a substring that starts with a given pattern?
c = ["Glucose C6H12O6"; "Benzol C6H6"]; pat = " C" + digitsPattern + "H" + digitsPattern; extractBefore(c,pat)
2 months ago | 0
| accepted
Question
Interacting with the sub-components of a Custom UI Component
I have started gettng my feet wet with custom UI components in App Designer. Here's one I just created, which consists of severa...
2 months ago | 0 answers | 1











