Réponse apportée
Partial Fourier transform of large sparse 3D array
You can do the partial Fourier transforms by computing a set of partial DFT matrices: dftPartial=@(N,k)sparse(exp(-(2j*pi/N)*(0...

plus de 2 ans il y a | 0

Réponse apportée
Adding more values to an array every loop
One possibility, y=nan(1,100); s=0; for k=1:numel(y) y(k)=2*k-1; s=s+y(k).^2; if s>40, y...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
My ellipse wont close after running the code .
Can't you just use the native spline() command? theta = linspace(0, 2 * pi, 8); t_x = 2*cos(theta); t_y = sin(theta); dt_x...

plus de 2 ans il y a | 0

Réponse apportée
Newton Raphson to solve a system of non-linear equations
From the surface plot, the equations don't appear to have any solution, or at least no where near the vicinity you are searching...

plus de 2 ans il y a | 0

Réponse apportée
Why is my gamultobj algorithm not working?
My guess would be that it is struggling to find feasible solutions to the nonlinear constraints (perhaps because they don't have...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Solve large number of independent systems with fsolve, where some systems do not have a solution
I see no reason why fsolve would "give up" if you've set MaxIterations and MaxFunctionEvaluations to Inf, regardless of whether ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Display long strings that include newlines in a table
I don't think there's a way. But you could write to an Excel file (e.g., with writetable) where multiline cells are possible. >...

plus de 2 ans il y a | 0

Réponse apportée
Dot indexing is not supported for variables of this type.
Have you actually looked at the contents of device? Is it possible that MAI.GetDeviceByIndex(0) returns empty [] because someth...

plus de 2 ans il y a | 0

Réponse apportée
understand in which function the field is filled
If ReportAggreg is created literally with an assignment statement of the form someStruct.ReportAggreg = something it should be...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Can I define the relationship between input and output using the raw experimental data in MATLAB. somthing like this .
Yes, you have a choice of lsqcurvefit, fit, and various others.

plus de 2 ans il y a | 0

Réponse apportée
How can I get X value by transforming the griddedInterpolant function?
Why not just, F=scatteredInterpolant(Y(:),Z(:),X(:));

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Is there any layer defined in matlab for sine activation function? Or else can we define the layer using functionLayer?
If it will not have any learnable parameters, you can use a functionLayer.

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How can I use the returned sort index from the sort() function on a multidimensional array?
The easier way would be to use the attached modification of sort() which will simply return the output indices as lienar indices...

plus de 2 ans il y a | 1

Réponse apportée
Loop around a toolbox
This runs: for N = 40:42 %<---shortened Daten=rand(N);%<-----added v = [1]; m = zeros(1,N); for n ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
app class properties check
I imagine that you could define your own property validation function, https://www.mathworks.com/help/matlab/matlab_oop/propert...

plus de 2 ans il y a | 1

Réponse apportée
Using Linear indicies to create new image
stats=regionprops(BW,'PixelIdxList'); Z0=false(size(BW)); for i=1:numel(stats) Z=Z0; Z(stats(i).PixelIdxLi...

plus de 2 ans il y a | 0

Réponse apportée
How to extract all values along the third axis of a 3d-array using a logical 2d-array?
a = rand(10,10); a(5,5) = 10; b = a+rand(1,1,1000); br=reshape(b,[],size(b,3)); c = br(a == 10,:)

plus de 2 ans il y a | 2

Réponse apportée
How can I graph these two equations in matlab?
One way, f =@(y) (y-4).*(2*y-y.^2); fplot(f); xlabel y; ylabel f(y) and similarly with the other function.

plus de 2 ans il y a | 1

Réponse apportée
Singular value decomposition, Cant get the final results
Since you are now on a more powerful computer with more RAM, perhaps you should also try doing the SVD without tall arrays. Re...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Common legend for each row of tiled layout
I could do nested tiled layouts, but that seems very cumbersome, especially when I have many more rows. Why? %% Make Layout Sk...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
is there a way to perform this task w/o using loops?
There are ways to do it without loops, but doing it without loops will be of no benefit to you. It will take more lines of code,...

plus de 2 ans il y a | 1

Réponse apportée
Draw angled ellipses around clusters on PCA plot
Using polyshapes: ellipse=rotate( scale(nsidedpoly(1000),[2,1]) ,30); plot(ellipse)

plus de 2 ans il y a | 0

Réponse apportée
Draw angled ellipses around clusters on PCA plot
See also elliipticalFit from the FEX downloadable, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-t...

plus de 2 ans il y a | 0

Réponse apportée
How can I stabilize the matrix left division (i.e. "\")?
You cannot. You must regularize the problem somehow and make the matrix non-singular.

plus de 2 ans il y a | 0

Réponse apportée
Solving a quadratic optimization problem subjected to linear constraints
You can use lsqnonneg, xi=[0, 0.25, 0.5, 1, 1.2, 1.8, 2]'; fi= [2, 0.8, 0.5, 0.1, 1, 0.5, 1]'; phi=@(r) max(0, 1 - r).^4....

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Simple Indexing problem when creating a matrix
n=5; A=[0 60 120 180 240 300 360]; A=A+360*(0:n-1)'

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how to project a contour along a surface plane?
This looks applicable: https://www.mathworks.com/matlabcentral/fileexchange/8589-contourz?s_tid=srchtitle

plus de 2 ans il y a | 0

Réponse apportée
Find function misbehaves when Indexing into array
Perhaps this is what you meant, LogicArray = x < Tolerance; LogicArray(1:4)=false; FindIndex = find(LogicArray,1,'first')...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
fmincon optimization: is the first order optimality very sensititve to changes in the step tolerance?
So given the results I show, can we qualititatively say that the objective is likely to be very flat at the solution? Or somethi...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
optimize vector by fminimax
if with my first input i have this vector (output) (1 2 5 6 9 5) and with next input i have this one (1 2 9 6 9 1) as you can ...

plus de 2 ans il y a | 0

| A accepté

Charger plus