Réponse apportée
Intersections between two discretised functions
f = @(x) x.^2; x = linspace(-5, 5, 100); v1 = f(x); v2 = ones(size(v1)); X0=x(diff(sign(v1-v2))~=0); X=nan(size(X0)); ...

plus de 2 ans il y a | 1

Réponse apportée
Im trying to implement this equation in matlab
It's normally better to use FFTs for cyclic convolution, but if you insist on doing it on the non-Fourier domain, then you can u...

plus de 2 ans il y a | 0

Réponse apportée
exportgraphicsunusably slow and memory overruns
Try export_fig, https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig

plus de 2 ans il y a | 0

Réponse apportée
Plot image in 2d plain and apply operations like translation/rotation and reflection
Use imrotate, imtranslate, and flip.

plus de 2 ans il y a | 0

Réponse apportée
Manually modifying title position in tiledlayout environment
I was wondering if it is possible to move the title a little closer to the upper limit of the figure environment than it current...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Newtons Method but error message "Singular Matrix"
Landing on a point with ill-conditioned J is a hazard of plain-vanilla Newton's method. That's why people usually don't use it. ...

plus de 2 ans il y a | 0

Réponse apportée
Error : Unable to use a value of type optim.problemdef.OptimizationVariable as an index.
It sounds like the better approach would be to have the 4x4 binary matrix AssignedMatrix be the fundamental unknown optimization...

plus de 2 ans il y a | 0

Réponse apportée
how to incorporate boundary conditions as constraints in fmincon optimization?
Use fcn2optimexpr to implement nonlinear constraints.

plus de 2 ans il y a | 0

Question


Programmatically determine which Deep Learning layer properties contain learnables
In the Deep Learning Toolbox, there are a variety of layer object types. The display methods of these objects indicate which obj...

plus de 2 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
Rotate 3D Shape so Specific Face is Normal to Given Vector
You can use this to compute the alpha and direction arguments needed for rotate. function [alpha,direction]=vecrot(vstart,vend)...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to solve large linear complex equations
Since it is a linear and unconstrained system of equations, just use mldivide, \

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Help with parametrizing a function and creating points
syms x y P [1,2] syms r(t) P1=[x1, y1]; P2=[x2, y2]; r(t)=P1+t*(P2-P1)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How can i extract data from given variables, for suppose i want to extract charge and discharge separately.
I will assume your data is in a table: type=["charge";"discharge";"discharge";"charge"]; data=(1:4)'; T=table(type,data) ...

plus de 2 ans il y a | 0

Réponse apportée
Wanna find specific index(raw) which meet multiple(~3) conditions
use ismembertol to allow for floating point noise, A=rand(5,3); A(4,:)=[39,13.9,17.2]+100*eps Index = find( ismembertol(A...

plus de 2 ans il y a | 0

Réponse apportée
Does anybody know what the exact meaning of the following command?
It defines an anonymous function of x,y. Everything after @(x,y) is the expression that will be evaluated. E.g., D=@(x,y) x+y; ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How can I import this data with a for loop?
Data{i} = importdata(compose("PendulumTestData/TD%d/IK/HR_1.mot", x(i)));

plus de 2 ans il y a | 2

Réponse apportée
How to interpolate 2 dimensions of a 4D array ?
You can use imresizen, to be downloaded from https://www.mathworks.com/matlabcentral/fileexchange/64516-imresizen-resize-an-n-d...

plus de 2 ans il y a | 0

Réponse apportée
How to avoid NaN in the Mini-batch-loss from traning convolutional neural network?
I found that changing the solver (from "sgdm" to "adam") resolved the problem.

plus de 2 ans il y a | 1

Réponse apportée
How to represent gray scale images as affine subspaces?
So how Can I get the direction and origins so I can compute the grassman distance? Here is another variant that gives a Basis/...

plus de 2 ans il y a | 0

Réponse apportée
how to get reference in app designer
It is possible, and what you've shown should have worked, unless your Matlab version is really old. The Code view should show t...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How to convert values of 0 to NaN
NaNs will not appear bright on an image display. You would have to replace them with a large value. Image(Image==0)=brightValue...

plus de 2 ans il y a | 0

Réponse apportée
How to have a class that contains multiple functions that is used in other classes?
A static class method can be imported from a package like in this example, https://www.mathworks.com/help/matlab/ref/import.htm...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Adding zeros to a column vector to match a larger column vector
This gracefully handles the case when length(x)=length(y), and requires no consideration of whether x,y are row or column vector...

plus de 2 ans il y a | 0

Réponse apportée
Is Conv2 based on direct convolution?
It is not FFT-based. To do FFT-based convolution (using the overlap-and-add method) you could use fftfilt.

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How to draw a generic cylinder with arbitrary orientation
See this File Exchange download, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitting-c...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Loading files by replacing some part of the name with a variable
Pre-generate all of the filenames and loop over them. FileNames = compose("GNSS_Validierung_%.2d",(1:41)' )

plus de 2 ans il y a | 0

Réponse apportée
Facing problem in solving simultaneous nonlinear equation with 3 unknowns
What @Dyuman Joshi says is true. However, your equations don't seem to make sense without upper and lower bounds on x. For examp...

plus de 2 ans il y a | 0

Réponse apportée
Assigning row names iteratively
The row names of a table cannot be non-unique, so having the names of the 7 days of the week repeat 52 times would not generate ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Plotting a giant surface exceeding array limitations
First of all, you should consider downsampling from 40000 points to perhaps 400. Having very dense data beyond a certain point w...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Partial Fourier transform of large sparse 3D array
There is at most 1 nonzero pixel in each x-y plane (first 2 dimensions) ... I'm thinking of doing 1D Fourier transform on each d...

plus de 2 ans il y a | 0

Charger plus