Beantwortet
Orientation of Shell grid
Apply a 3x3 rotation matrix R to the tetrahderon which transforms the (0,0,0) to (1,1,1) edge so that it aligns with the z-axis...

4 Monate vor | 0

Beantwortet
Orientation of Shell grid
Obtain vertices for the complete, non-truncated cylinder Vcyl and the vertices Vtet for the tetrahedron containing it. Then, you...

4 Monate vor | 0

Beantwortet
How to do a polynomial fit to a dataset with an excluded term
Use mldivide, \ to solve the appropriate linear equations for the coefficients, coefficients=x(:).^[0,1,2,4] \ y(:);

4 Monate vor | 1

Beantwortet
Count number of true statements in a sequence until false, then check for the next true and repeat
Download this, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vecto...

4 Monate vor | 0

Beantwortet
Graphics argument validation for function in parfor loop
Second, is there any way to retain automatic argument validation for an axis object that plays nicely with parfor, in cases wher...

4 Monate vor | 1

Beantwortet
Non-linear data fit with multiple constants
Though your post's title says the fitting problem is nonlinear, it is actually linear when b and d are known, and so has a simpl...

4 Monate vor | 1

Beantwortet
Memoize an anonymous function with externally scoped variables
One solution is to rebuild the anonymous function inside the memoized function using a container class: mf=memoize(@subfunc); ...

4 Monate vor | 0

Frage


Memoize an anonymous function with externally scoped variables
I am trying to memoize a function that takes an anonymous handle with an externally-scoped parameter as input. The problem is th...

4 Monate vor | 3 Antworten | 0

3

Antworten

Beantwortet
Is there a way to insert a common ylabel to secondary axes in a tiled layout?
t = tiledlayout(2,2); for i = 1:4 f = figure(1); ax = nexttile; yyaxis left x = (1:10); y = rand(1,10)...

4 Monate vor | 0

Beantwortet
How does Matlab interact with custom Diffusion models?
From what I've read, simple diffusion U-Nets are well within Matlab's reach. For very advanced models like LDF-VFI, Matlab can d...

4 Monate vor | 0

Beantwortet
transfer learn without losing old memoy YoloX
Continual learning is a serious research topic.There are no off-the-shelf tools in Matlab to do it in a sophisticated way. You w...

5 Monate vor | 0

| akzeptiert

Beantwortet
How to flatten an image and find dimensions?
Find the 4 vertices of the outer ellipse (i.e., the end points of the major and minor axes). This can be done manually with draw...

5 Monate vor | 0

Beantwortet
help with XYZ data file
This might be what you're looking for: zq=fspecial('gaussian',200,40); Nlevels=5; zRanges=linspace(min(zq(:)) ,max(zq(:))...

5 Monate vor | 0

Beantwortet
help with XYZ data file
First question, I would like to be able to plot some of the planes of XY with fixed Z values/range. The terminology "planes of...

5 Monate vor | 0

Gesendet


Quadratic minimization with norm constraint
Minimizes convex or non-convex quadratics subject to (in)equality constraint on norm(x)

5 Monate vor | 428 Downloads |

4.5 / 5

Beantwortet
How to find a rotation vector for use in rotate, if the rotation matrix is rank deficient?
Probably easier to use hgtransform, which allows you to perform the rotation by specifying only the rotation matrix.

5 Monate vor | 0

Beantwortet
Find specified number of points on curve with identical chord length (not arc length)
Here's an approach using fminbnd to minimize the attached cost function circleMarch(). t=linspace(0,200,1e4)'; %%% XY=[cosd...

5 Monate vor | 0

| akzeptiert

Beantwortet
How to use custom YOLO models in MATLAB?
If you have the Deep Learning Toolbox, you can use minibatchpredict.

5 Monate vor | 1

Beantwortet
How to remove unwanted double image in plot
It is possible your points are not sorted in ascending order of x.

5 Monate vor | 0

| akzeptiert

Beantwortet
How can you make multi-line axis labels with TeX not left-justified in R2026a?
Here's an attempt using the idea of separate text boxes that you mentioned. It wasn't too bad, although, it doesn't have the abi...

5 Monate vor | 0

Beantwortet
How can you make multi-line axis labels with TeX not left-justified in R2026a?
xlabel({'normal'; '\textbf{bold}'}, ... 'Interpreter','latex')

5 Monate vor | 0

Beantwortet
How to find a function in the path - securely?
Perhaps as follows? safeWhich('num2cell') safeWhich('varargin') safeWhich('R') safeWhich('p') safeWhich('queryName') ...

5 Monate vor | 1

| akzeptiert

Beantwortet
Colorbar with background image
You can use this as a template: % Create sample data [X,Y] = meshgrid(linspace(-3,3,200)); A = exp(-(X.^2 + Y.^2)); ...

5 Monate vor | 0

Beantwortet
Only version 2026a appears available for download as a trial. I want version 2025b
If you Contact Sales, you might be able to arrange a trial version of your choice with them directly.

5 Monate vor | 0

Beantwortet
How to use fft on the continuous time signal
Here is the proper way to set up the time and frequency sampling axes: tau = 1*10^-9; % tau %Set up frequency and time sampl...

5 Monate vor | 0

| akzeptiert

Beantwortet
textscatter example, and behavior, is mysterious
Here's an alternative, whose behavior you might like better: rng("default") n = 11; x = rand(n,1); y = rand(n,1); str = str...

5 Monate vor | 0

Beantwortet
Can you get matlab to add a really small number to a big number and retain precision
Can you get matlab to add a really small number to a big number and retain precision You can, but it is better to just reorgani...

5 Monate vor | 1

Beantwortet
Why is Preallocating arrays important in MATLAB, and how does it improve performance compared to dynamically growing arrays?
When it is acceptable to avoid preallocation Looping backwards is an alternative to pre-allocating. You're not really "avoidin...

5 Monate vor | 0

Beantwortet
Does dicomreadVolume automatically rescale the image?
You should manually apply it.

5 Monate vor | 0

| akzeptiert

Beantwortet
When plotting 3D graphs in MATLAB, can the x and y axis labels be made flush with the x-y plane, as shown in the figure below?
There are some File Exchange compositions that seem to be able to do it, e.g., https://www.mathworks.com/matlabcentral/fileexch...

5 Monate vor | 0

| akzeptiert

Mehr laden