Matt J
Statistics
38 Files
Cody HighlightsRANK
6
of 300.447
REPUTATION
32.050
CONTRIBUTIONS
290 Questions
12.302 Answers
ANSWER ACCEPTANCE
78.28%
VOTES RECEIVED
4.255
RANK
201 of 21.006
REPUTATION
6.723
AVERAGE RATING
4.90
CONTRIBUTIONS
38 Files
DOWNLOADS
124
ALL TIME DOWNLOADS
55447
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
3 Highlights
AVERAGE NO. OF LIKES
2
Feeds
Question
Free boundary of a tetrahedral mesh has interior-crossing edges
I have the following tetrahedralized solid, a right prism with a non-convex base, load data %Solid display tetramesh(TET,'F...
ongeveer 13 uur ago | 0 answers | 0
0
answersValue to differentiate is not traced. It must be a traced real dlarray scalar. Use dlgradient inside a function called by dlfeval to trace the variables.
rawOut = extractdata(rawOut); dY8 = extractdata(dY8); dY18 = extractdata(dY18); If you pre-convert all your input...
ongeveer 15 uur ago | 0
Why the optimization results of lsqnonlin are different in R2026a and R2025a?
There appears to be a new (and buggy) implementation of expm.m in R2026a, resulting in incorrectly complex results for skew sym...
2 dagen ago | 1
| accepted
Quick substitution of all multi-objective optimization results (gamultiobj) into optimization expressions
Obviously I can build a loop over ii to get an array Mval, but is there a way to do it more elegantly? Doesn't seem it like it....
5 dagen ago | 0
Why is xlim not working?
Calling axis equal triggers an xlim,ylim adjustment. % Set parameters for main circle center = [3,6]; radius = 2; angleStart...
6 dagen ago | 1
| accepted
Submitted
A class for successive matrix products
A class representing products of matrices, internally storing/manipulating them separately.
6 dagen ago | 1 download |
How to define size of class property depending on a given parameter (including codegen)
With the classdef below, you can set the default size with its defaultSize() static method. This will remain in effect until the...
7 dagen ago | 1
"help" does not work
Possibly help.m is calling a function which you have shadowed. You will probably have to use dbstep to track this, or the equiva...
8 dagen ago | 0
App Designer: How can I use an index to increment a Value field such as editfield1.value, editfield2.value, editfield3.value, etc.?
It would be better to use a uitable for this, or at least to use numeric EditFields instead of textual EditFields. Regardless, ...
8 dagen ago | 0
| accepted
how to upscale the dimensions of a matrix to match the dimensions for a second matrix?
Use imresize load Carbon load Rain rainResized = imresize(rain, OutputSize=size(bc_aod)); tiledlayout('h') nexttile im...
8 dagen ago | 0
| accepted
rmpath does not remove folders on path
No, as you have been warned "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" is not on your Matlab path....
9 dagen ago | 0
| accepted
Discrepancy in sparse matrix math, when NaN's present
The response I seem to be getting from Tech Support is that this is expected behavior. NaNs are not guaranteed to propagate the ...
13 dagen ago | 0
| accepted
Numerical Integrators With Problem-Based Optimization
but quickly realized that the class of variables used in the problem-based approach will not work with ode45 (or any root-findin...
15 dagen ago | 1
| accepted
Question
Discrepancy in sparse matrix math, when NaN's present
I expect result1 and result2 below to be identical, but they aren't. The discrepancy must be a bug, right? I'm working in R2024b...
16 dagen ago | 1 answer | 0
1
answerCreate a 2D image based on what a camera would see
You could just do a surface plot of the object, set the camera position parameters of the axes, and then use exportgraphics (whi...
18 dagen ago | 0
Assigning different data types to struct arrays using comma separated list assignment. Are there better options?
I like the performance of the code, however, I find it more difficult to read than for-loops Why not just use for-loops then, i...
18 dagen ago | 0
| accepted
I am getting the following error
There are many ways to generate that error. One of them is that you may be using 'end' as the name of a variable, e.g., end=1
20 dagen ago | 0
How to extract a specific frame from a video based on user input?
This example looks applicable to you: Read Video Frames Starting at Specific Time.
21 dagen ago | 0
Why do Nan values greatly increase the cost of sparse multiplication
I think you should report it as a bug. If you need a workaround, though, the following equivalent operation, which avoids implic...
21 dagen ago | 0
| accepted
How can I execute a function if it exist, otherwise use a custom function?
Have the used append (i.e., not prepend) your knnsearch to the path. If a native knnsearch exists above it in the path, it will ...
25 dagen ago | 0
| accepted
how to create a volume from the revolution of a variable area trapezoid
Here's a little bit more of a polished version of my original answer, which also generates a movie of the trapezoidal cross-sect...
26 dagen ago | 3
how to create a volume from the revolution of a variable area trapezoid
Along the lines of what @Mathieu NOE commented, I think it does make more sense to start with an elliptic cylinder and clip off ...
26 dagen ago | 3
Efficiently assign data into a struct?
You can replace all occurences of '1:end' with ':' and condense your indexing operations. This, for example, T1.var4.y = zer...
27 dagen ago | 0
How to multiply different size arrays and multiply each element by each element?
Download ndgridVecs from the File Exhange, https://www.mathworks.com/matlabcentral/fileexchange/74956-ndgridvecs?s_tid=srchtitl...
27 dagen ago | 0
Error using trainnet (line 46)
It appears that if your XTrain is in cell array form, you need to put your TTrain data in cell form as well: load('attachedData...
28 dagen ago | 1
| accepted
Indexing a 4-D array using a logical matrix
Assuming you are trying to extract the polygon interiors, you could do, [~,~,p,q]=size(map); Map=reshape(map,[],p*q); tes...
ongeveer een maand ago | 0
| accepted
What is the difference between different ways to do least square
The train_100 system is underdetermined, so of course you aren't going to get a unique solution. For the 5k data, the only rea...
ongeveer een maand ago | 1
| accepted
How to change the ratio of sectors for a circle with 8 equal sectors
One possibility: dTheta=360/8; %sector angle t=linspace(0,dTheta)'; sector=polyshape([0,0;cosd(t),sind(t)]); circle=array...
ongeveer een maand ago | 0
| accepted
How to convert trajectory of the current vector to grayscale.
Maybe this is what you wanted? load("data.mat") Ia = data(:,1); Ib = data(:,2); Ic = data(:,3); %% Clarke (3 phase → αβ...
ongeveer een maand ago | 1
| accepted
optimization optimplot capture frame
optimplot does not plot in a figure container of the type that you can get a handle to. Prior to R2025, you could probably have...
ongeveer een maand ago | 0
| accepted











