Answered
Minimization problem with integral constraint
Perhaps you could reparametrize the curve as, which automatically satisfies the constraint for any b and c....

4 years ago | 1

| accepted

Answered
Time consumption of string copied to string array
pos a scalar between 1 and the length of obj.dataList and value a string. That is definitely not the case. In the preceding lin...

4 years ago | 0

| accepted

Answered
Calculate waypoints for a moving plane with a radar
Isn't it just waypoints=[1,40,80,150,400] X_transmitter = 310; for i=1:numel(waypoints) Y_transmitter =...

4 years ago | 0

| accepted

Answered
Does ArrayValued Affect the Efficiency of Integral()
Based on the tests below, it appears that integral() does not develop a separate mesh for each element of f. Otherwise, I would ...

4 years ago | 0

| accepted

Answered
Definite integral of two arrays with 400 values each.
I would imagine you have a vector of 400 lambda values as well. Then you could do, numerator=trapz(lambda, S.*Vprime); denomin...

4 years ago | 1

| accepted

Answered
parfor loop including cell array
The way to work around this is to write the loop as, parfor ii=1:length(StatesMat) [SpaceNeighbInfo{ii,:}]=NeigborSt...

4 years ago | 1

| accepted

Answered
Can I set a unknown size of nonlinear constraints fcn in multi-objective Genetic Algorithm.
This should make the error message go away. Whether it achieves what you intend though may require more discussion. m=numel(C(i...

4 years ago | 0

Answered
How to suppress output from optimproblem solve?
That's controlled in the call to solve(). opts=optimoptions(@fmincon,'Display','off'); solution = solve(problem,x0, 'Options...

4 years ago | 0

| accepted

Answered
Calculate 2D normal vectors to a plane
reg=regionprops(bwconncomp(AoI,4),'Image'); N=numel(reg); normals=nan(2,N); for i=1:N I=reg(i).Image; %ED...

4 years ago | 0

| accepted

Answered
Which function should I use to find summation of specific values in a column array? I checked already histcounts function but I could not handle it.
Let's call your matrix, A. Then, A=rand(16,2); %hypothetical input [N,M]=size(A); N=ceil(N/10)*10; A(end+1:N,:)=0; ...

4 years ago | 0

| accepted

Answered
Updating plot in loop takes increasing amount of time
I understand the x and y arguments of the plot are getting larger. Is that the cause? The arguments aren't getting larger, but ...

4 years ago | 1

Answered
How can I get input of function when the output is constant?
fzero(@(x)y-f(x), xInitial)

4 years ago | 0

| accepted

Answered
How to find minimum and maximum input values that a function is defined on
Well, it doesn't make sense to be using fmincon for such a simple 1D problem here. You should just use fminbnd. Either way, tho...

4 years ago | 0

| accepted

Answered
How to take norm of points?
The same as was suggested in your duplicate thread. pdist2(A,B)

4 years ago | 1

| accepted

Answered
How to formalize an optimization problem in Matlab?
N=null(a2.'); a3=a1.'*N; [~,idx]=max(abs(a3)); x=N(:,idx);

4 years ago | 0

Answered
Experiment Manager extremely slow
But you understand, right, that when you use the Experiment Manager, your network is being retrained multiple times with differe...

4 years ago | 1

| accepted

Answered
Using splitapply to add a column to a table
Tickers = ["AAPL"; "AAPL"; "AAPL"; "MSFT"; "MSFT"; "MSFT"]; MonthlyReturns = [4.3;3.2;5.6;7.3;2.5;-5.6]; Tbl = table(Tickers, ...

4 years ago | 0

Answered
Ga does not find the optimal value
I was thinking in changing it to a inequality constrain Restschuld is smaller than 1 and bigger than -1 I'm surprised you were...

4 years ago | 0

Answered
How can I infer the solutions of a specific polynomial?
By "solutions", do you mean the roots? Just use the roots command. v1 = [1 -2 -5 6] ; roots(v1)

4 years ago | 0

Answered
Split and image 128x138 into 16 subimages of 32x32 and create a new one using those subimages randomly
Using mat2tiles (which you must download). grayImage=imresize(imread('pout.tif'),[128,128]); blocks = mat2tiles( grayImage, ...

4 years ago | 0

| accepted

Answered
Matching component to objective representation and object identification
See this very similar thread, https://www.mathworks.com/matlabcentral/answers/855775-shape-recognition-from-user-input-and-obta...

4 years ago | 0

Question


More detailed documentation on Deep Learning Toolbox normalization layers?
Below are excerpts from the Deep Learning Toolbox documentation describing several neural network layer types that perform diffe...

4 years ago | 1 answer | 0

1

answer

Question


Is there a documented/supported way to place figure data tips programmatically?
I find it useful to be able to programmatically place data tips. I discovered the createDatatip function, which let's you do thi...

4 years ago | 1 answer | 0

1

answer

Answered
Is it possible to display all the data tips in a plot at once instead of right clicking each one?
is it possible to do this without clicking each individual point? Sort of a Ctrl + a (select all) The example below shows a way...

4 years ago | 0

Answered
Polynomial Fit from a high Deviation set of feature experiments
expData = {[10,9,11,8]; [5,7,5,9]; [2,4,3,2]; [-4,-2,-3,-1]}; [Y{1:4}]=ndgrid(expData{:})...

4 years ago | 1

| accepted

Answered
How can I organize app class properties like structs?
The problem is that I have hundreds of variables. Assuming they are scalar, they should be bundled together in a vector, not a...

4 years ago | 0

Answered
Save current figure without axis, axis label and other border areas.
I don't have direct access to the matrix which is being plotted. Yes, you do. The axes children will always contain the data th...

4 years ago | 0

| accepted

Answered
How can I find the position of the center point of a circle tangent to two ellipses?
I would probably solve for the circle parameters v1,v2 plus the two points of tangency x1,y1,x2,y2. That's 6 unknowns, and you a...

4 years ago | 1

| accepted

Answered
Write three linear simultaneous equations, one from each loop
syms i1 i2 i3 eqn1 = -V1 + R2 (i1-i2) + R4 (i1-i3) == 0; eqn2 = Ri2 + R3 (i2-i3) + R2 (i2- i1)== 0; eqn3 = ... solve...

4 years ago | 0

Load more