Answered
how to remove noise from curves and take their derivates
If you provide a StartPoint in your fit options, the warning will go away and the fit will be the same when you rerun. However...

3 years ago | 0

Answered
Im trying to implement the argmax operator in matlab.
fmincon should have been fine. Since you have no constraints, though, fminunc might be better. fminsearch might also be sufficie...

3 years ago | 1

| accepted

Answered
How to sum up multiple cell arrays (column-wise)?
A=load('dummy').dA_dum; B=reshape( cell2mat(A(:).') ,6,6,26,32); result =reshape( num2cell(sum(B,3),[1,2]) ,1,32);

3 years ago | 1

| accepted

Answered
Prove that Cos(4x) = 8cos^4 x - 8cos^2 x + 1
Use simplify. As a similar example, syms x simplify( 1 - 2*sin(x)^2 )

3 years ago | 0

Answered
Limit length of a string
text1='012345678901234567890123456789'; text2='01234567'; text1(19:end)='' text2(19:end)=''

3 years ago | 0

Answered
Is it possible to detect the orientation of a marked ball in an image by comparing it to an according model from a plot?
You can use the Computer VIsion Toolbox command extrinsics if you have it.

3 years ago | 0

Answered
Why I cannot change the class property in this case?
You called setpos() without returning anything. So, you need to have, myobject1 = myobject1.setpos([100, 0, 0]) Or, inherit th...

3 years ago | 0

| accepted

Answered
Solve a multiobjective optimization problem by problem-based approach in Matlab2021a
You can use prob2matrices from this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/74481-prob2matrices-a-se...

3 years ago | 1

| accepted

Answered
Translate 3D coordinates on a known surface
[~,I]=pdist2( Nodes_XFix, coord_XMov,'euc','Smallest',1) coord_XMov = Nodes_XFix(I,:);

3 years ago | 1

Answered
how do I filter noise and background objects from images?
Perhaps with bwpropfilt(____,'Eccentricity', range)

3 years ago | 1

Answered
How to find max of each iteration in cell array?
The more natural thing would be to have A be a 20x2xN array to keep track of the N iterations. Then you could simply do, max(A,...

3 years ago | 0

Answered
Returning cropped image on to original image after doing some analysis on that cropped portion
i0=floor(Ymin); j0=floor(Xmin); i1=i0+ceil(Height)-1; j1=j0+ceil(Width)-1; Image(i0:i1,j0:j1)=croppedImage %Put cropp...

3 years ago | 1

| accepted

Answered
Saving images inside a loop with changing filename
I=rand(20,20); [~,fo{1,1},~]=fileparts(pwd); for i=1:10 index=i imwrite(I, fo{1,1} + "_Roi_" + index + ".tiff" ) e...

3 years ago | 0

| accepted

Answered
Area of contor from Matrix
Use scatteredInterpolant to resample the data on a grid, S=scatteredInterpolant(x,y,F); xg=linspace(min(x),max(x),500); yg=...

3 years ago | 0

| accepted

Answered
lsqnonlin: CheckGradients fails after multilying Jacobian with diagonal scaling matrix
%J=d(D*r)/darams = D*dr/dparams = D*J, right? No, it doesn't work because D=1/max(f) is not a constant. It depends on the un...

3 years ago | 0

| accepted

Answered
Create a function handle that is a sum of function handles
error=@(R) abs( vecnorm(POINTS-R) - R );

3 years ago | 1

Answered
Disable the gpu.
Matlab will use the CPU by default unless you have in some way told it to use the GPU for a specific computation. An exception...

3 years ago | 0

Answered
Constructor doesn`t work at all (Error using implicit default value of property in class)
Your posted code produces an error, but not the one you claim. You've misspelled the "Access" attribute, but once that is fixed ...

3 years ago | 0

| accepted

Answered
Multiplication of matrix and first dimension of a 3-D array without for loops
C=reshape( A*B(:,:) , size(B));

3 years ago | 1

Answered
Determine which string in an array matched using contains()
Easiest thing would be to just loop over the shorter of the two arrays, probably the pattern array: stringArray=stringArray(:);...

3 years ago | 1

| accepted

Answered
Multiply structure by a constant
s.a=1; s.b=2, S=structfun(@(f)10*f,s,'uni',0) %multiply by 10

3 years ago | 1

Answered
When using transposedConv2dLayer, how do you calculate the size of the output given an input?
I believe it would be newsize = [stride.*[a-1,b-1] + filtersize - 2*crop, numFilters]

3 years ago | 1

| accepted

Answered
how to plot exponential function
x = linspace(10^-12,50,100); y = (x ./ 0.026^2) .* (exp(-x ./ 0.026)); loglog(x, y,'x--')

3 years ago | 0

Answered
How to find the vector b if we know the RMSE?
That's not possible. You have, in this case, 6 unknowns but only 1 equation.

3 years ago | 0

Answered
Logical indexing returns different dimensions
Vectors have different indexing behavior than matrices. There's nothing more to it, except perhaps to point out that it's not ju...

3 years ago | 0

| accepted

Answered
A simultaneous linear equation with coefficients as variables
If the equations are, A*X=B then the roles of A and X are interchangeable and you can solve for A by doing, A=B/X Note, howe...

3 years ago | 0

| accepted

Answered
Find gradient of objective function for fmincon
Perhaps as follows. Note my restructuring of your array into an Nx2x2 form. function [f,gradf] = objfun(X,XQ,YQ,cdf1,cdf2) [...

3 years ago | 0

| accepted

Answered
How to interpolate between values in columns of an array without a for loop
You should use interp1. It's very straightforward. [m,n]=deal(8,5); x=(1:n)'; y=reshape(1:m*n,n,m) yq=interp1(x,y,[1.5;2...

3 years ago | 0

| accepted

Answered
How to find Fourier series for the periodic function?
You can use fourier, e.g. syms x n T f=rectangularPulse(x); series = simplify( fourier(f,2*pi*n/T)/T )

3 years ago | 0

| accepted

Answered
GPU support for besselh
Most of the bessel functions are supported by gpu but besselh is not. Am I wrong? If "supported by GPU" means does it accepts g...

3 years ago | 0

| accepted

Load more