Answered
Writing Minimization Function to Find Multiple Vectors
lsqlin is appropriate for this problem, https://www.mathworks.com/help/optim/ug/lsqlin.html

5 years ago | 0

| accepted

Answered
MATLAB script to convert the camera calibration outputs into a format directly suitable for learnable triangulation
The intrinsic and extrinsic parameters are contained in the params object output by the calibration, https://www.mathworks.com/...

5 years ago | 0

Answered
Frequencies space to time space with Fourier Trasform (FT and IFT)
Simply going to frequencies space and coming back to time space, the audio changes. Why? But what you are doing is not simply g...

5 years ago | 0

Answered
Why does fmincon not provide hessian option for sqp algorithm?
The SQP algorithm does not compute the Hessian via finite differences. It does, however, require a positive definite approximati...

5 years ago | 0

| accepted

Answered
Matlab FFT differs from theory and oscilloscope
Is the oscilloscope computing the FFT, or is it trying to compute a continuous Fourier transform approximation? If the latter, i...

5 years ago | 0

| accepted

Answered
Fminunc gives Hessian with NaN
It is likely due to the objective function having an infinite value at the point being evaluated. I notice the posted objective...

5 years ago | 0

Answered
Simple limit returning NaN: f(x) = exp(-1/x)
The function you have shown does not have a well-defined limit as x-->0, but this does: syms x; limit(exp(-1/abs(x)),x,0)

5 years ago | 1

Answered
Select rows by minimum values of a column considering unique values of another column
A=Results{:,1}; B=str2double(Results{:,6}); C=(1:numel(B)).'; G=findgroups(A); sel=splitapply(@(b,c) c(find(b==min(b),1)...

5 years ago | 0

| accepted

Answered
How to know which loop is being calculated?
You could also generate wait bars. https://www.mathworks.com/help/matlab/ref/waitbar.html

5 years ago | 1

Answered
How to know which loop is being calculated?
One way is to click pause, then hover the mouse overk and j in the Matlab Editor.

5 years ago | 1

Answered
I'm having problems copying a 4-D array
for t = 1:frames

5 years ago | 0

| accepted

Answered
FFT of a Block processed image.
Using mat2tiles ( Download ) Image = imread("Kobe.jpg"); ImageTiles=mat2tiles(Image,[50,50]); ImageTilesFFT = cellfun(@ff...

5 years ago | 0

Answered
How to reject unwanted values of dependent variable for a nonlinear equation ?
ylim([293.15,933.45])

5 years ago | 1

| accepted

Answered
How can I plot a circle with a given radius and perimeter with the use of GUI,
drawcircle sounds appropriate. https://www.mathworks.com/help/images/ref/drawcircle.html

5 years ago | 0

Answered
Eigenvalue output in different order to inputs
Omega2=sort(eig(K,M)); ... [Vec,Val,Vec2]=eig(A); [~,ind]=sort(diag(Val)) Vec=Vec(:,ind); Val=Val(:,ind); Vec2=Vec2(...

5 years ago | 0

| accepted

Answered
how to plot ellipsoid?
You can also use, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitting-conics-and-quadr...

5 years ago | 0

Answered
removing specific column based on some condition
s=sum(A,1); A(:, s<1000 | s>100000)=[];

5 years ago | 0

| accepted

Answered
Explanation for formula calculating step size for finite difference used in fmincon
v is the value assigned to the optimoptions parameter FiniteDifferenceStepSize. TypicalX is another optimoptions parameter who...

5 years ago | 0

| accepted

Answered
How to solve problem with function lscuvfit, whena i have ther integral without xmax? Thank you.
The right solution of par (1) and y must be a 0.965. Why do you speak of y as if it is an unknown? The unknown parameters are ...

5 years ago | 0

Answered
Boolean operation of A not B
c=setdiff(b,a)

5 years ago | 1

| accepted

Answered
Find values that put equation to zero
gamma=nan(T,1); j=1; %increment level. The loop will work for j>1 as well. for i=1:j:T; ci=C(i); si=S(i); mi=M(i); ...

5 years ago | 0

| accepted

Answered
Fzero question : Error using fzero (line 308) Initial function value must be finite and real.
Well you have divisions by x in your function, so naturally choosing x0=0 will not give you a finite initial value. Also, you a...

5 years ago | 0

| accepted

Answered
find the object closest to the center
I found it highly challenging to close the blobs surgically enough so that the two lungs and the bed are always guaranteed to fo...

5 years ago | 1

| accepted

Answered
How to implement triple summation?
Well, for each fixed p and q, the inner sum over m is just a discrete convolution. So, perhaps the best solution is to do a doub...

5 years ago | 1

Answered
how to use binary morphological operations for corner detection
I don't think you can, but if the shape is convex, you can use this FEX tool instead, https://www.mathworks.com/matlabcentral/f...

5 years ago | 1

Answered
How to calculate the camera intrinsics K , rotation matrix R and translation vector T through the camera projection matrix?
For various randomized input matrices, it gives the same output (within numerical precision) as my own decomposition routine (at...

5 years ago | 1

| accepted

Answered
How to decompose the "camera projection matrix" into camera internal and external parameters?
If you have the 3x4 camera projection matrix already, then it can be directly decomposed into intrinsics and extrinsics. The att...

5 years ago | 3

| accepted

Answered
How do I find the line representing the intersection of two planes?
HINT: You can get the normals to the planes using cross() % Plane 1 A = [1 1 1]; B = [2 -3 5]; C = [-7 2 1]; % Plane 2 D =...

5 years ago | 0

| accepted

Answered
Using matfile to partially extra data still loads entire file into memory
We can run a test right here. The one below suggests there is some benefit, though perhaps not as much benefit as I would have e...

5 years ago | 0

Answered
How can I find the eigenvalues of an n-by-n matrix using For Loops?
What I do have available to me is a previous code I wrote that would solve any n x n matrix using Gauss-Jordan elimination but t...

5 years ago | 0

Load more