Answered
Fsolve Intemidiate equations result
After solving, you can simply use the objective function that you have already written to obtain these values: [a_vih, fval] = ...

5 dagen ago | 0

Answered
How can I merge a 3 column numeric matrix into a single column cell array?
A=[10 20 30; 10 25 35; 10 30 35; 10 35 40; 10 45 50]; num2cell(A,2)

5 dagen ago | 0

| accepted

Answered
Solving nonlinear equation inside for loop
Your equations are really polynomials in p^0.5. Therefore, you can do, a1=1.4*10^25; a2=2.7*10^24; a3=1.311*10^23; k=linspac...

5 dagen ago | 0

| accepted

Answered
imgaussfilt asymmetry as a linear operator
(b) given that it is unsymmetric, how I can obtain its adjoint operator. In the asymmetric case, a brute force solution would b...

5 dagen ago | 0

Answered
imgaussfilt asymmetry as a linear operator
It is because of edge effects. If you add sufficient zero padding you will see symmetric behavior.

5 dagen ago | 0

| accepted

Answered
Expected one output from a curly brace or dot indexing expression
The issue you are seeing has nothing to do with mat files. The expression that you've shown can only work if n is a scalar.

5 dagen ago | 0

Answered
Entering data into cell array
noble_gases{1,1}="Hydrogen"; noble_gases{1,2}="H"; etc...

5 dagen ago | 0

Answered
Sum matrix column orderly
B=conv2(A,ones(15,1),'valid').';

5 dagen ago | 0

Answered
Transformation matrix (projective2d) change of origin at application
You should use imwarp's OutputView option to specify a coordinate system for the output with the origin in the center.

5 dagen ago | 0

Answered
Plotting ellipses around the data points and circle around the cluster points
At the very end of the the Examples tab of https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for...

5 dagen ago | 0

| accepted

Answered
How do I get values of a certain parameter in a multi-dimensional matrix?
b should be an Nx1 vector where N is the number of elements satisfying A<10000.

5 dagen ago | 0

Answered
Wrong ROI Ellipse rotation angle documentation?
In the coordinate conventions of the Image Processing Toolbox, the Y-axis points downward and the Z-axis is pointing into the sc...

5 dagen ago | 1

| accepted

Answered
vectorisation of a loop
[m,n]=size(Sea); D=pdist2(Sea,Sea); D(1:m+1:end)=inf; indices=any(triu(D<0.05),1); Sea(indices,:)=[];

5 dagen ago | 0

Answered
How can I assign a single column of a 0x10 empty table
I cannot use a struct or array. The datatype must remain as a table. You cannot avoid wokring with arrays as an intermediary, ...

6 dagen ago | 0

Answered
Find longest consecutive sequence in 3d matrix
Using, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vectors [M,...

6 dagen ago | 0

| accepted

Answered
Find argmin of function with two input variables
MATLAB keeps returning Empty sym: 0-by-1 and I don't understand why. Any help? The solution to diff(La,x1)==0 is x1 = -0.5, whi...

6 dagen ago | 0

| accepted

Answered
Does the code run on the GPU after transferring data to the GPU using the gpuArray function?
Any operations you do on a gpuArray object will be done on the GPU. Operations you do on other objects (not gpuArrays) will be e...

6 dagen ago | 0

Answered
I cannot figure out how to fix this error "Objective function is returning undefined values at initial point. fsolve cannot continue."
I suspect you meant to have 6 values in x0 rather than 7. x0=[1,1,1,0.02,0.02,0.02];

7 dagen ago | 0

Answered
How to apply an equation to each element in the array?
conv( u , [0 1 0]+alpha*[1 -2 1] )

8 dagen ago | 1

| accepted

Answered
How do I produce all possible permutations of a vector, selecting a chosen number of elements?
a=[4,17,13,5,1,90]; n=3; P=perms(1:n).'; b=nchoosek(a,n).' ; out=reshape( b(P(:),:),n,[]).'

8 dagen ago | 0

| accepted

Answered
How to update constraint in nonlinear optimization
Divide into 3 sub-problems. Solve with the constraints (1) y<=20 and NLcon (2) 20<=x<=40, y<=20, and NLcon (3) y>=20 and NLco...

10 dagen ago | 0

| accepted

Answered
Im trying to run fsolve inside a for loop but it seem that my second iteration inside the for loop is not able to read the initial trial point
Should the division be by Afull(i)? F = @(GG)[slopeACdisp(i)-((GG(2)-Cdispy)/(GG(1)-Cdispx(i))); -tau+(0.5*abs((G...

10 dagen ago | 0

Answered
Accessing (interpolating?) data in 3D array
You could use griddedInterpolant() array=rand(290,480,90); F=griddedInterpolant(array); extract=F({linspace(4,8,10), 400:...

10 dagen ago | 0

| accepted

Answered
Problem with parfor with two variables
Do you need to see the toc output in real time? If not, just save it until later: %% My code Y_1 =nan(N,numel(alpha),numel(bet...

12 dagen ago | 0

Answered
Converting Structure into 3d Matrix
Matrix=cat(3, all_frames.Frame); However, you will need generous RAM. Your all_frames structure already consumes about 5 GB in...

12 dagen ago | 0

| accepted

Answered
Optimization Problem but don't have closed form expression
The problem is that I dont have a closed form expression for B_k in terms of μ_k. if I have a set of values for μ_k to get the c...

12 dagen ago | 1

Answered
how to generate integer sequence number by logistic map?
function [z] =logistic(r,N) %sequence is chaotic where 3.57 < r < 4. %r = 3.8; % r parameter for chaotic regime %size ; % siz...

12 dagen ago | 1

| accepted

Answered
circle inside triangle tangent points
You can find the circle using incircle in this FEX submission https://www.mathworks.com/matlabcentral/fileexchange/34767-a-suit...

12 dagen ago | 0

Answered
fmincon gets very slow after few time
A few more performance optimizations that you should consider: maps = zeros(rows,columns,3,'single'); %<------ post conversio...

12 dagen ago | 1

Answered
fmincon gets very slow after few time
I suspect samsid() is just not as smooth or well-conditioned as mse() for some pixels, and therefore takes more iterations to te...

13 dagen ago | 1

Load more