Feeds
已回答
How can I fit data to a piecewise function, where the breakpoint of the function is also a parameter to be optimised?
Why ? Both parabola can intersect below their respective maxima, and nonetheless the point of intersection can be the maximum y-...
How can I fit data to a piecewise function, where the breakpoint of the function is also a parameter to be optimised?
Why ? Both parabola can intersect below their respective maxima, and nonetheless the point of intersection can be the maximum y-...
1 hour 前 | 0
已回答
How can I fit data to a piecewise function, where the breakpoint of the function is also a parameter to be optimised?
Once you've chosen the coefficients of the first parabola [a1,b1,c1], the breakpoint is determined from, d=-b1/(2*a1) Only the...
How can I fit data to a piecewise function, where the breakpoint of the function is also a parameter to be optimised?
Once you've chosen the coefficients of the first parabola [a1,b1,c1], the breakpoint is determined from, d=-b1/(2*a1) Only the...
19 hours 前 | 0
| 已接受
已回答
suprisingly complicated optimization problem
This is another suggested strategy: to find the minimum possible qmax, given L. This seems at the very least like an important f...
suprisingly complicated optimization problem
This is another suggested strategy: to find the minimum possible qmax, given L. This seems at the very least like an important f...
23 hours 前 | 1
已回答
suprisingly complicated optimization problem
The motivation of this problem is the creation of the so called, "homogenized" 1-D grid, where consecutive distances between ele...
suprisingly complicated optimization problem
The motivation of this problem is the creation of the so called, "homogenized" 1-D grid, where consecutive distances between ele...
5 days 前 | 0
已回答
suprisingly complicated optimization problem
Here's another formulation, closer to your original one. It uses fmincon and is really fast (when the problem is feasible), but ...
suprisingly complicated optimization problem
Here's another formulation, closer to your original one. It uses fmincon and is really fast (when the problem is feasible), but ...
5 days 前 | 1
已回答
suprisingly complicated optimization problem
My thought is that you, (1) Do not include L in your list of unknowns. Solve a series of optimization problems for fixed L=1,2,...
suprisingly complicated optimization problem
My thought is that you, (1) Do not include L in your list of unknowns. Solve a series of optimization problems for fixed L=1,2,...
6 days 前 | 2
已回答
How to check whether a name is a locally accessible function?
One way, function tf = top_level_function(name) s=functions(str2func(name)); tf=strcmp( s.type , "scopedfunction") ...
How to check whether a name is a locally accessible function?
One way, function tf = top_level_function(name) s=functions(str2func(name)); tf=strcmp( s.type , "scopedfunction") ...
7 days 前 | 0
| 已接受
已回答
Error `Index exceeds the number of array elements` while loading .mat file
You have created a variable named 'load' in this line, load = 0; % 轴承的载荷(单位:马力)(可能是0、1、2、3马力) and later also in,...
Error `Index exceeds the number of array elements` while loading .mat file
You have created a variable named 'load' in this line, load = 0; % 轴承的载荷(单位:马力)(可能是0、1、2、3马力) and later also in,...
8 days 前 | 1
已回答
AppDesigner: Is it possible to interactively stretch/schrink plots ("Axes") in x or y direction separately (NOT zoom in/out both)?
This example looks applicable to you: Restrict Zooming to X-Dimension.
AppDesigner: Is it possible to interactively stretch/schrink plots ("Axes") in x or y direction separately (NOT zoom in/out both)?
This example looks applicable to you: Restrict Zooming to X-Dimension.
8 days 前 | 0
已回答
how to create the number of equations from a correlation matrix by excluding the most correlated variables?
That sounds like a bad idea. Normally, in MATLAB, you wouldn't write your equations in scalar form. You would write a matrix equ...
how to create the number of equations from a correlation matrix by excluding the most correlated variables?
That sounds like a bad idea. Normally, in MATLAB, you wouldn't write your equations in scalar form. You would write a matrix equ...
10 days 前 | 0
| 已接受
已回答
Unable to use structName.?ClassName for VideoWriter class
The .?Classname syntax only works on the class properties with public SetAccess. Unfortunately, the VideoWriter class does not h...
Unable to use structName.?ClassName for VideoWriter class
The .?Classname syntax only works on the class properties with public SetAccess. Unfortunately, the VideoWriter class does not h...
11 days 前 | 2
| 已接受
已回答
Closed contour with least square differences to dataset
A closed curve, e.g. a circle, would usually satisfy an implicit equation F(x,y)=0 The way to approach that is with implicit e...
Closed contour with least square differences to dataset
A closed curve, e.g. a circle, would usually satisfy an implicit equation F(x,y)=0 The way to approach that is with implicit e...
12 days 前 | 0
已回答
Polyfit isn't adjusting to decreasing sinoidal data
Polynomial fitting above 10 degrees or so is a famously ill-conditioned numerical task, see also, https://en.wikipedia.org/wiki...
Polyfit isn't adjusting to decreasing sinoidal data
Polynomial fitting above 10 degrees or so is a famously ill-conditioned numerical task, see also, https://en.wikipedia.org/wiki...
14 days 前 | 0
已回答
The keyboard shortcut to change focus to the editor doesn't work.
Try first dragging the editor window into focus manually with the mouse. Then, check if Ctrl+0 and Ctrl+Shift+0 toggles the edit...
The keyboard shortcut to change focus to the editor doesn't work.
Try first dragging the editor window into focus manually with the mouse. Then, check if Ctrl+0 and Ctrl+Shift+0 toggles the edit...
17 days 前 | 0
已回答
how to filter columns
m=576; n=1000; k2=randi([0,1],m,n).*rand(m,n); tic; r=max( (k2==0)'*k2 ,[],2); toc;
how to filter columns
m=576; n=1000; k2=randi([0,1],m,n).*rand(m,n); tic; r=max( (k2==0)'*k2 ,[],2); toc;
17 days 前 | 0
已回答
Get extrinsic camera parameters from pose estimation
From the documentation for estimateMonoCameraParameters, it appears that the camera is assumed to lie at a translation of C=[0,0...
Get extrinsic camera parameters from pose estimation
From the documentation for estimateMonoCameraParameters, it appears that the camera is assumed to lie at a translation of C=[0,0...
18 days 前 | 0
| 已接受
已回答
Mean of 3D matrix based on range of first dimension
This might seem a little counter-intuitive, but the key is that it avoids extracting a submatrix (an expensive op) from the inpu...
Mean of 3D matrix based on range of first dimension
This might seem a little counter-intuitive, but the key is that it avoids extracting a submatrix (an expensive op) from the inpu...
19 days 前 | 0
已回答
Measuring Line Profiles in IMages
I=im2double(im2gray(imread('image.png'))); BW=imbinarize(I); D=bwareaopen(abs(gradient(I))>0.06,20); D=imclose(D,strel('d...
Measuring Line Profiles in IMages
I=im2double(im2gray(imread('image.png'))); BW=imbinarize(I); D=bwareaopen(abs(gradient(I))>0.06,20); D=imclose(D,strel('d...
19 days 前 | 0
| 已接受
已回答
do we have any pre provided function for reitveld refeinement in matlab
No, there is no dedicated crystallography toolbox in Matlab. You could build your own with Optimization Toolbox functions like l...
do we have any pre provided function for reitveld refeinement in matlab
No, there is no dedicated crystallography toolbox in Matlab. You could build your own with Optimization Toolbox functions like l...
20 days 前 | 0
已回答
Issues creating error bar for bar figure
Here's an MWE: x = ["A"; "B" ] ; y = [3,4] ; err = [0.5,0.75] ; bar(x, y); hold on errorbar(categorical(x),y,err,'r',...
Issues creating error bar for bar figure
Here's an MWE: x = ["A"; "B" ] ; y = [3,4] ; err = [0.5,0.75] ; bar(x, y); hold on errorbar(categorical(x),y,err,'r',...
20 days 前 | 1
| 已接受
已回答
How to set a protected superclass property from subclass method?
You cannot use the ?.MVA syntax on non-public properties. Since you already have validation in the base class, I don't think you...
How to set a protected superclass property from subclass method?
You cannot use the ?.MVA syntax on non-public properties. Since you already have validation in the base class, I don't think you...
20 days 前 | 0
已回答
rref matrix with an unkown variable
I am expecting to get (did this by hand): Your expected result doesn't look right. For both row-echelon and reduced row-echelon...
rref matrix with an unkown variable
I am expecting to get (did this by hand): Your expected result doesn't look right. For both row-echelon and reduced row-echelon...
20 days 前 | 0
| 已接受
已回答
Strange behaviour using double
You could replace the commas with some other NaN-triggering character, e.g., c={'1.23', '1,234'} double(replace(string(c),',...
Strange behaviour using double
You could replace the commas with some other NaN-triggering character, e.g., c={'1.23', '1,234'} double(replace(string(c),',...
20 days 前 | 0
已回答
Compare two row and select appropriate data
Basically column b is the "cap." If so, one could also do, a=[1;2;3;4]; b=[1;1;3;3]; c=clip(a,-inf,b)
Compare two row and select appropriate data
Basically column b is the "cap." If so, one could also do, a=[1;2;3;4]; b=[1;1;3;3]; c=clip(a,-inf,b)
20 days 前 | 0
已回答
Reduce x-axis line length in a bar plot that is in a tiledlayout
For finer control, download subaxis. Use that instead of tiledlayout. clear, %close all % Define the data 1 Names1 = {'A...
Reduce x-axis line length in a bar plot that is in a tiledlayout
For finer control, download subaxis. Use that instead of tiledlayout. clear, %close all % Define the data 1 Names1 = {'A...
20 days 前 | 1
| 已接受
已回答
Error while running my objective function by fmincon with nonlinear constraint for calculate optimization coordination overcurrent relay
You have a parameter b defined here b = 0.14; but then you overwrite it here: A = []; b = []; Aeq = []; beq = []; Also, r...
Error while running my objective function by fmincon with nonlinear constraint for calculate optimization coordination overcurrent relay
You have a parameter b defined here b = 0.14; but then you overwrite it here: A = []; b = []; Aeq = []; beq = []; Also, r...
22 days 前 | 1
已回答
Suppressing Live Script plotting figure inline
I don't think it's possible. However, you could shrink down the side bar area of the livescript where the figures are displayed,...
Suppressing Live Script plotting figure inline
I don't think it's possible. However, you could shrink down the side bar area of the livescript where the figures are displayed,...
25 days 前 | 0
已回答
A more efficient way to do this calculation
function [HD_cols] = members(Ic); HD = [ ... 160000/100^4, 180000/100^4, 204000/100^4, 226000/100^4, 250000/100^...
A more efficient way to do this calculation
function [HD_cols] = members(Ic); HD = [ ... 160000/100^4, 180000/100^4, 204000/100^4, 226000/100^4, 250000/100^...
26 days 前 | 1