Réponse apportée
How can I record data from a parfor loop into an array?
Why is this not possible From the documentation for sliced variables (which array is supposed to be in this case): Form of Ind...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Alphashape boundary detection not working as desired
Try bwlalphaclose() from this FEX submission, https://www.mathworks.com/matlabcentral/fileexchange/90762-further-tools-for-ana...

environ 3 ans il y a | 0

Réponse apportée
Getting Not Enough Input Arguments error
My guess is that strcmp(AttributeIndex,ESIDString) is returning false and therefore no arguments are being given as input to cel...

environ 3 ans il y a | 0

Réponse apportée
unpack cell array of letters to be plugged into individual-cell rows, in a vector
load infon2 c=infon2(:,end); L=max(cellfun(@numel,c)); for i=1:numel(c) c{i}(end+1:L)=""; end c=num2cell(vertcat...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
surface fitting using a self-defined function
Your model function is not supposed to assume that the xy samples are drawn from a Cartesian grid lattice. ft = fittype(@(a,b,c...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Operator '+' is not supported for operands of type 'function_handle'.
It's a bad idea (i.e. very inefficient) to add two functions together, however, the proper way would be as follows: g=@(x)x+1; ...

environ 3 ans il y a | 0

Réponse apportée
Error while converting polyshape into double
You have pre-allocated ShipImg as a numeric double float vector, ShipImg = ones(1,length(t)); %a double vector of ones Then i...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to find the indices of minimum value in a 4D matrix?
[lowestValue,locmin]=min(A(:)) [i,j,k,l]=ind2sub(size(A), locmin); %indices of min

environ 3 ans il y a | 0

| A accepté

Réponse apportée
I have curve fitting in matlab. My graph were all good when not add scatter in the graph. However, when i add scatter coding, the graph were not remain it origin.
It's hard to compare the two plots, because the x- and y-axes ranges are different in each. I suspect if you made the ranges the...

environ 3 ans il y a | 0

Réponse apportée
can I pass these nonlinear constraints to lsqnonlin?
Most of the f(x,y) that I am working on are indeed of the form f(x,y)=h(x)+g(y). If this is true, then ensuring the convexity o...

environ 3 ans il y a | 0

Réponse apportée
How to check neighbouring elements in a 2D array
load Image BW=bwareaopen(~BW,100); se=ones(7); BW=medfilt2(BW,size(se)); BW=bwareaopen(BW,100); BW=~bwareaopen(~BW,10...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Find four input combinations with the same output value, and find the one that minimizes the cost function.
It would simply be, Bopt=min(B(A==Astar)); [x_sol,y_sol,z_sol,w_sol ] = ind2sub(size(A), find(B==Bopt));

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to guess initialization parameters for non-linear curve fitting to get the best fit?
Re-arrange the equation as follows y = a*b*c*x^2 + (a-y*b*a)*x = C*x^2 + D*x Assume C and D can be treated as constants a...

environ 3 ans il y a | 0

Réponse apportée
Why does polyfit gives two outputs?
It doesn't give 2 outputs unless you call it with 2 output arguments. The one output that it is giving you is a vector with 2 co...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How can i pull a matrix out of matrix with indices?
Do it a completely different way. Example A=rand(5) B=rand(5) condition=A<0.5; B(condition)=0

environ 3 ans il y a | 0

| A accepté

Réponse apportée
bilinear extrapolation based on interp2
Although you've been advised against it, if you truly must extrapolate bilinearly then griddedInterpolant will do it for you, [...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Find the central line (midpoint) of a sinusoidal wave
yline(mean(y))

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Least Squares with constraint on absolute value
You'll need to write the problem in terms of the real-valued components xi and xr of x, x=xr+1i*xi Once you do that, your abso...

environ 3 ans il y a | 0

Réponse apportée
how can I delete zeros after virgule?
floor([0.254 0.435]*10)/10

environ 3 ans il y a | 0

| A accepté

Réponse apportée
can I pass these nonlinear constraints to lsqnonlin?
Can I implement those constraints as nonlinear constraints You can, but you have a few problems: (1) Nonlinear constraints c...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
multivariate newton's method not working
You seem to be under the impression that it is far more extraordinary to thoroughly understand Newton's method, which I learned ...

environ 3 ans il y a | 0

Question


Remove data tips from Live Editor plots
I somehow inserted a data tip in a surface plot that I created in the Live Editor. How can I remove it interactively?

environ 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Error at Matlab start up
I recommend a clean reinstall, and then also remove any path-modifying operations from your startup.m file, if you have one.

environ 3 ans il y a | 0

Réponse apportée
Solve looping for big cell, vector, and summation
Z=repmat({rand(1,1008)}, 1,1000); whos Z %Fake input data Z=reshape(cat(3,Z{:}) ,[],4,numel(Z)); p=sum(Z,1); w=resh...

environ 3 ans il y a | 0

Réponse apportée
Calculate the new position of a point after rotating
You can use this FEX download, which requires no toolboxes, https://www.mathworks.com/matlabcentral/fileexchange/30864-3d-rotat...

environ 3 ans il y a | 0

Réponse apportée
Using App Designer to control inputs to an outside .m file - basic control
From your description, it sounds like the app code ought to be much simpler: classdef checkboxtester < matlab.apps.AppBase ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Using polyfit in two arrays to detrend data.
p=polyfit(x,y,4); data_detrend = y-polyval(p,x)

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Is there a way to constrain singular value decomposition results?
The closest analogue I can think of would be as follows. This could only make sense, though, if yo were trying to do some sort o...

environ 3 ans il y a | 0

Réponse apportée
how change class name
The class name will be the same as the name you've given your .mlapp file.

environ 3 ans il y a | 1

Réponse apportée
Make a new variable based on data in the cell array.
x=[1 2 3 0 0 6] x=x(logical(x))

environ 3 ans il y a | 1

Charger plus