Matt J
Estadística
318 Preguntas
12.477 Respuestas
40 Archivos
Cody5 Problemas
33 Soluciones
CLASIFICACIÓN
6
of 302.147
REPUTACIÓN
32.402
CONTRIBUCIONES
318 Preguntas
12.477 Respuestas
ACEPTACIÓN DE RESPUESTAS
79.25%
VOTOS RECIBIDOS
4.320
CLASIFICACIÓN
201 of 21.574
REPUTACIÓN
6.778
EVALUACIÓN MEDIA
4.90
CONTRIBUCIONES
40 Archivos
DESCARGAS
72
ALL TIME DESCARGAS
55981
CLASIFICACIÓN
11.535
of 179.426
CONTRIBUCIONES
5 Problemas
33 Soluciones
PUNTUACIÓN
598
NÚMERO DE INSIGNIAS
7
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
10 Temas destacados
MEDIA DE ME GUSTA
1
Feeds
Best practice for passing structure to a function and adding new fields when returning it
Which of the following is considered best practice? I would say the most common (and therefore perhaps the best) practice is Op...
3 días hace | 0
Saving large mat-files 2-4 GB takes 1 or 2 min. how to do things in paralell?
See Run Functions in Background. You might also consider storing directly in HDF5 using h5create and h5write. It is essentially...
5 días hace | 0
Sequential neural network training with 1-D function layer
You could try islocalmax instead, if a mask of the maxima locations is sufficient.
6 días hace | 0
| aceptada
Can Same Commands in Debugger and Command Window Exhibit Different Behavior?
I suspect the only reason size() reports that foo is 1x2 in the first place is because size() is overloaded by class sym to do s...
6 días hace | 0
| aceptada
Improving my forwardfill call
A = [0.1 0.2 0.3 NaN NaN NaN 0.7 NaN 0.9 1] A_ffilled = forwardfill(A,1) A_ffilled = forwardfill(A,2) EDIT: function [B,...
10 días hace | 0
| aceptada
Transparency of background in MATLAB figure
Use export_fig, https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig with the "-transparent" flag.
11 días hace | 1
| aceptada
Lake America used as a name in Mapping Toolbox
I need to know if, like how I now view Google Earth/Maps and Alphabet Inc, I need to inject a level of mistrust and loss of resp...
13 días hace | 0
Any quick fix for this matrix-scalar simplification?
Here's one approach. Limitation: all matrices in the expression must be explicit variables with names that can't end with number...
13 días hace | 1
pinv function is supported for dlarray input while the pageinv function is not supported
If your inputs to the operation will always be a 3x3XN stack, as in your example, then you can use the code below in conjunction...
16 días hace | 0
Pregunta
functionSignatures.json for built-in functions
I would like to define code suggestions/completions for built-in Matlab functions. This document, https://www.mathworks.com/hel...
17 días hace | 1 respuesta | 0
1
respuestaHow to modify Find Files GUI file size threshold
After consulting Tech Support, I have learned that the field will re-enable if non-empty text is entered into the "Find Files co...
19 días hace | 1
| aceptada
Pregunta
How to modify Find Files GUI file size threshold
In the "Find Files" GUI there is a "Skip files over" field that sets an upper limit on the file size to include in the search. F...
20 días hace | 1 respuesta | 0
1
respuestaHow Can Short-Circuiting Logical Operators &&, II be Overloaded in a Classdef?
You can't overload && or || directly. It would make their common usage less efficient if the parser had to check the class of al...
21 días hace | 0
| aceptada
anonymous function with rng call inside
rng('default') T= rand(1,10); t=1:15; T(ceil(t/10)) ans = Columns 1 through 9 0.8147 0.8147 0.8147 ...
22 días hace | 0
anonymous function with rng call inside
function y=f(t) rng(ceil(t/10)); y=rand(1); end
22 días hace | 0
Neural Network with custom performance function
If you are using trainnet, the lossFcn input argument lets you supply a custom loss function explicitly, https://www.mathworks....
25 días hace | 0
Histogram gives a wrong result?
Due to the floating number? Correct. There is no reason to expect exact boundaries, or for data to fall exactly within those bo...
26 días hace | 0
Get back find in files interface from before 2025b
This search and replace app from the File Exchange might be worth considering as a possible substitute, https://www.mathworks.c...
alrededor de 1 mes hace | 0
Is delegated or department-level license administration possible?
If not, how are other universities or large organizations handling this? It's horrendous. Every time I want to upgrade my Matla...
alrededor de 1 mes hace | 0
Help with this triple nested for loop
I don't know what you're trying to do with Ux, but U is just, U = cat(3, ... repelem(cat(3,A1,A2,A3,A4),1,1,6), ... r...
alrededor de 1 mes hace | 0
| aceptada
Classdef Static method calling builtin subsref instead of classdef subsref
With the newer modularized indexing, the overloaded indexing will be active inside the classdef. So, one option is to overload y...
alrededor de 1 mes hace | 0
Plotting fit lines on multiple sets of data in one plot - how to limit each of the fit lines start and end points?
From the documentation: plot(cfit,x,y) plots cfit together with a scatter plot of the data in x and y. The axes limits are give...
alrededor de 2 meses hace | 0
fmincon solver for nmpc applications
FMINCON's sqp algorithm does not accept a HessianFcn parameter. You would need to switch to either trust-region-reflective or in...
alrededor de 2 meses hace | 0
Can I return the xml string from writestruct?
You can't suppress file output, but you can use readlines and writelines to retrieve the file contents in string form and then m...
alrededor de 2 meses hace | 0
| aceptada
Handling outliers in Spray Angle calculations
This is one way you might clean things up: fnames={dir('*.bmp').name}; Bcell=cellfun(@cleanUp,fnames,'uni',0); tiledlayout(...
alrededor de 2 meses hace | 1
Graceful exit from a parfor loop
It sounds like a job for onCleanup.
alrededor de 2 meses hace | 1
| aceptada
Pregunta
gpuArray support for Optimization Toolbox solvers
I have wondered for a while why the OptimizationToolbox doesn't currently support gpuArray data types in its solvers (lsqnonlin,...
2 meses hace | 1 respuesta | 2
1
respuestaInput image rescaled to 0-1 using im2single for ImageNet models, will that result in wrong outputs?
Yes, probably. For all of these networks, the input layer normalization settings are 'zerocenter', which is not a scale invarian...
2 meses hace | 0
| aceptada
Pregunta
Sparse gpuArray indexing limitations
When trying to extract a sub-matrix of a sparse gpuArray, I get, >> S=gpuArray(sprand(100,100,0.1)); >> S(1:5,1:5) Sparse gpu...
2 meses hace | 2 respuestas | 0
2
respuestasPagemldivide returns incorrect results for complex gpuArrays
Looks like a bug to me. I would report it. Test Data Acpu=randn(20,10,2)+1j*randn(20,10,2); Bcpu=randn(20,10,2)+1j*randn(20,1...
2 meses hace | 0
| aceptada











