Answered
Compiler app fails to identify some dependencies even though they are on the MATLAB path
A simple solution would be to just rename the sub-folder from helpers/ to private/ and remove it from your Matlab path. As for ...

5 years ago | 1

| accepted

Answered
How can I plot a straight line from a curve?
Maybe this is what you want? x =3:1:18; y = [.06 .09 .115 .1288 .146 .17 .19 .224 .267 .3058 .336 .378 .491 .495 .518 .509]; ...

5 years ago | 0

Answered
Create a square loglog subplot
Use axis square

5 years ago | 0

Answered
Errors in executable file which is created from AppDesigner .
Remove this line from your code addpath(direct) It's not doing anything anyway.

5 years ago | 0

Answered
Global minimisation of multivariable constrained function with mixed integers
Since there are only 100 combinations, I would just run fmincon 100 times.

5 years ago | 0

Answered
how to make cfit line appear on top
Given an Axes handle to the plot, hAx, hAx.Children=flip(hAx.Children);

5 years ago | 0

Answered
how to resize images
The question is poorly phrased. It doesn't mention whether you're supposed to keep the aspect ratio the same. Assuming you are, ...

5 years ago | 0

Answered
matrix shift elements with specific way
One way: N=4; %number of shifted blocks A=repelem(eye(N+2),2,1); A=diff(A,1,2); A([1,2,end-1,end],:)=[]; A(2:2:end,:)=-A(...

5 years ago | 1

Answered
Isolate the outline of a shape.
Perhaps as follows? load Image BW=bwareafilt(Image,1); BW=imerode(bwconvhull(BW),strel('disk',20))& ~BW; BW=imopen(BW,ones...

5 years ago | 0

| accepted

Answered
How to form a sphere with 1's in a 3D matrix
Using ndgridVecs from the file exchange https://www.mathworks.com/matlabcentral/fileexchange/74956-ndgridvecs [dX,dY,dZ]=ndgri...

5 years ago | 2

Answered
How to select specific entries of a matrix?
A(1:3:end,1:3:end)

5 years ago | 1

| accepted

Answered
Error using length, Too many input arguments.
The first line shouldn't have any commas.

5 years ago | 1

| accepted

Answered
Run script using a group of values?
You can generate a matrix with all combinations using ndgrid, e.g., [p1,p2,p3]=ndgrid(1:3,10:10:30,100:100:300 ); Combinatio...

5 years ago | 0

| accepted

Answered
Why won't my <= work?
while X <= X_end %this is the problem line% Y_next= Y_pre + (stepsize*(X+Y_pre+2)); X=X+stepsize; end

5 years ago | 0

| accepted

Answered
Error "Jacobian not correct size" while trying to supply system's Jacobian within fsolve
When you set SpecfiyObjectiveFunction=true it means you are planning to do your own manual calculation of the Jacobian within yo...

5 years ago | 0

| accepted

Answered
Select columns from a matrix by treshold value
find( any(M > min(M)*1.1 ,1) )

5 years ago | 0

Answered
How to find the area of a common face of voronoi cells
The general procedure would be Given the output [v,c]=voronoin(P) select two cells i and j Find the vertices in comon between...

5 years ago | 0

| accepted

Answered
Moving mean/std based on number of NaN
A=[4, 8,6,3,NaN,NaN,-1,9,4,5]'; M=movstd(A,4,'omitnan','Endpoints','discard'); idx=movsum(isnan(A),4,'omitnan','Endpoints','...

5 years ago | 0

| accepted

Answered
How to center data on the max value
Without the Image Processing toolbox? With the toolbox, you can simply use imtranslate().

5 years ago | 1

| accepted

Answered
using the output of methods of a class in another class.
It sounds like ProcessIndices shouldn't be a class at all. It should be a method of the first class.

5 years ago | 0

Answered
How to call child static method from parent static method
One way: function Greet(classname) personName=feval(classname+".MyNameIs"); ... end and then call as AbstractPersonCla...

5 years ago | 0

| accepted

Answered
Plotting planes from set of linear equations
fimplicit3(@(x,y,z) x-2*y-3*z,'EdgeColor','none','FaceColor','b') hold on; fimplicit3(@(x,y,z) 2*y+z,'EdgeColor','none','Fac...

5 years ago | 0

| accepted

Answered
How does reshape function work? and also how to use sum(A,dim) in the code?
Simplest way to understand reshape is through examples A=1:12 reshape(A,3,4) As for sum(A,dim), the sum will be along colum...

5 years ago | 0

| accepted

Answered
How to solve the min-max problem with mixed integer linear programming(MILP)?
Eliminate the inner max problem by rewriting it as,

5 years ago | 0

Answered
Creating new matrix from a preexisting matrix
A = [308 404 555 1071 1246].' B=[[1;A(1:end-1)+1] A]

5 years ago | 0

| accepted

Answered
split mXn double into equal parts
See, for rexample, sepblockfun https://www.mathworks.com/matlabcentral/fileexchange/48089-separable-block-wise-operations

5 years ago | 0

Answered
Z must be a matrix, not a scalar or vector
R=10; f=0.5; s=50; N=36; a=f/(s*N); Ax=0.002; Ay=0.002; lx=2.5; ly=2.5; n=((R*s*N)/f)+1; for i=1:n r(i)=(R-((i-1)*a))...

5 years ago | 0

| accepted

Answered
Solution hit upper bound in lsqnonlin
It means the solver thinks it can improve the fit if you remove the upper bound. If that shouldn't happen it could be due to bad...

5 years ago | 0

Answered
What is an efficient way to use a sum of objective functions for fmincon?
However, I am aware (rather, I strongly suspect) that it's costly to often call upon a function in another file. No, not reall...

5 years ago | 0

| accepted

Answered
creating new vectors within a loop
It would make more sense to store the velocities and accelerations in a single n-column matrix. This would also avoid the issues...

5 years ago | 0

| accepted

Load more