Answered
How to change the confidence bounds in the curve fitting tool
You can use confint() to get the confidence interval for an arbitrary confidence level, ci = confint(fitresult,level)

4 years ago | 0

| accepted

Answered
Query: If global search found no solution
run the global search with additional diagnostic outputs to see if a valid solution was found, [x,fval,exitflag,output,solution...

4 years ago | 0

| accepted

Answered
plot just a part of a conic surface limited by two straight lines and 2 circles of 2 cross sections of the cone
One option is to use this package, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitting...

4 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
When I is a numeric vector, you can only index into it I(x) with positive intergers x=1,2,3,4. Clearly, though, x contains non-i...

4 years ago | 0

Answered
Broadcast Variable Warning in MATLAB Parallel Computing Toolbox
In this case, the warnings can probably be ignored because a, b, and L are very small. However, I don't really understand the ...

4 years ago | 0

| accepted

Answered
Create least squares fit for linear combinations
I'm assuming x1,x2, and y1 are all equal-sized column vectors. LHS=x1(:)-x2(:); RHS=y1(:)-x2(:); a1=min(max(LHS\RHS,0),1); ...

4 years ago | 0

Answered
Is there an easier way to disable all the buttons in matlab app designer?
h= findobj(app.UIFigure,'Type','uibutton'); set(h,'Enable','off')

4 years ago | 4

Answered
Hello is there a way have an editfield where uyou are able to put numerical and text ?
An editfield can only store its data as text, but if text containing numbers is entered, you can easily convert it to an actual ...

4 years ago | 1

Answered
Least Squares Curve Fit make minimum add to 1
An analytical solution, LHS=first-second; RHS=ydata(:)-second; a1=min(max(LHS\RHS,0),1); a2=1-a1; a=[a1,a2];

4 years ago | 0

Answered
Gradient Calculation with fmincon and UseParallel
I am trying to optimize a 6 variable function with bound constraints....I have been using a parallel pool of 16 workers, Becau...

4 years ago | 0

Answered
How to make a spiral with random inclination
Why not just apply a 3x3 rotation matrix? T=1000; r=linspace(10,1000,T); x=r.*cosd(6*r)+5000*rand(1,1); y=r.*sind(6*r)+500...

4 years ago | 1

Answered
interpolation of 3d matrix in only one dimention
permute the array using permute() or shiftdim() so that the desired dimension becomes the first dimension. C=interp(shiftdim(A,...

4 years ago | 0

Answered
How to indicate the maximum value in the plotted curve in matlab?
For example; x=-2:2; y=-x.^2+2; [~,i]=max(y); plot(x,y,x(i),y(i),'o'); legend('Plot','Maximum Point'); axis padded

4 years ago | 0

Answered
Minimize a function under several constraints
Use intlinprog() or, https://www.mathworks.com/help/optim/ug/problem-based-workflow.html

4 years ago | 0

Answered
How to select same numbers with tolerance?
X = [ 2.5,3.65,0,0.25,0.35,0.035,0.00025,1,4.65,5.85]; Y=X(abs(X)<1)

4 years ago | 0

| accepted

Answered
Minimize a function using Newton's Method
Perhaps you should be using the method that you accepted yesterday, https://www.mathworks.com/matlabcentral/answers/1694790-gra...

4 years ago | 0

Answered
How can I detect circles that on square edges?
load Image imshow(BW) BWC=imclose(BW,strel('disk',60)); reg=regionprops(BWC,'SubarrayIdx'); N=numel(reg); for i=1...

4 years ago | 2

| accepted

Answered
How to change confidence intervals using fit and Curve Fitting App?
The confidence intervals are a function of the input x,y data and the model function, and nothing else. The confidence interval ...

4 years ago | 1

| accepted

Answered
a tiledlayout issue via a subfunction
PlotTiled(3,2) function PlotTiled(m,n) tempTiledFig = tiledlayout(m,n,'TileSpacing','compact','Padding','compact'); f...

4 years ago | 1

| accepted

Answered
How can I pass to parfeval a handle of the class method that accepts name-value arguments?
Given an object of the class, obj, fun=@(varargin) obj.method(varargin{:}); parFeval(fun,____)

4 years ago | 0

| accepted

Answered
Is there a way to vectorize trapezoidal numerical integration?
ab=conv2(Y,[1,1]/2,'valid'); h=diff(X,1,2); out=sum(ab.*h,2);

4 years ago | 2

| accepted

Answered
Least Squares Curve Fit make minimum add to 1
xdata=[first,second]; fun=@(x) norm(xdata*[1-x; x]-ydata); a(2)=fminbnd(fun,0,1); a(1)=1-a(2);

4 years ago | 0

Answered
Gradient Descent for function with multiple variables
Mainly, your step size is too big and you are plotting over too large a range. X = -3:0.01:3; [X,Y] = meshgrid(X); Z =(3-X).^...

4 years ago | 0

| accepted

Answered
Fourier Transform of Gaussian Kernel in Matlab
One could also do as below. This gives only an approximately Gaussian spectrum, however, g_k = (1/256)*[1 4 6 4 1;... ...

4 years ago | 1

Answered
Fourier Transform of Gaussian Kernel in Matlab
If you download gaussfitn from https://www.mathworks.com/matlabcentral/fileexchange/69116-gaussfitn then you can do, g0=[1 4...

4 years ago | 0

| accepted

Answered
Interpolation with interp1 and matrix
%example data x=sort(rand(25000,1600),1); %grids per pixel v=rand(size(x)); %signals xq=sort(rand(20000,1)); %common grid; ...

4 years ago | 0

Answered
How can I use linear interpolation to have two array with the same length?
x=rand(1,30); xx=interp1(x,linspace(1,30,3e4)); whos x xx

4 years ago | 0

| accepted

Answered
Conv function gives unexpected error
Clear the variable called conv from your workspace clear conv

4 years ago | 0

| accepted

Answered
How to fit a Gaussian curve by code?
If we throw away the data values with y=0, then the remaining data fits a Gaussian quite well. I recommend downloading gaussfitn...

4 years ago | 0

Answered
Plot 3D of coinstraned optimization
Use this, https://www.mathworks.com/matlabcentral/fileexchange/74010-getcontourlinecoordinates?s_tid=srchtitle [X,Y]=ndgrid(li...

4 years ago | 1

| accepted

Load more