Answered
ScatteredInterpolant for Surface Extrapolation
The surface appears to be very well modeled by a Gaussian. An appropriate thing would therefore be to extrapolate using a Gaussi...

4 years ago | 0

| accepted

Answered
ScatteredInterpolant for Surface Extrapolation
[MAP_X,MAP_Y,MAP_Z]=readvars('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1131415/MATLAB.csv'); res=@(q)re...

4 years ago | 0

Answered
Using the output of one run of a function as the input of another iteration of that function
for i = 1:Counter List = ReduceArray(List); end

4 years ago | 1

Answered
How should we evaluate the similarity of two graphs?
I don't know why you think the MSE is "large", but perhaps the percent area difference would be more suitable to you: load elli...

4 years ago | 0

Answered
How to edit the name of a variable which is an object of a class?
This might be what you want. obj={GridSys1,GridSys2,GridSys3}; %list of objects [I,J]=find(A.*(1-eye(size(A)))); K=numel(...

4 years ago | 0

| accepted

Answered
Find max value in polyfit
xcrit=roots(polyder(q1)); %set derivatives to 0 xcrit(imag(xcrit)~=0)=[]; %get rid of non-real solutions zmax=max( polyva...

4 years ago | 1

Answered
How to do 4-D Equivalent of 3-D surface fitting ?
You can lsqcurvefit if you have Optimization Toolbox. If not, then you might be able to use fminsearch, if you have only a smal...

4 years ago | 1

| accepted

Answered
How to use a trained neural network as objective function in fminsearch?
fminsearch.is unlikely to be able to handle 12 unknowns well. You should probably use fminunc if you have the Optimization Toolb...

4 years ago | 0

| accepted

Answered
How does the mod function compensate for floating point round off?
I suspect it is just meant to tell you that it doesn't do a naive computation like in modNaive below. m=1000*pi; n=pi; mod(...

4 years ago | 1

Answered
Plotting a triangle from 3 3x1 matrices
a = [5; 8; 13]; b = [-5; 7; 21]; c = [12; -32; 0]; V=num2cell([a,b,c,a],2); plot3(V{:},'-o', MarkerFace='r'); xlabel x; ...

4 years ago | 0

| accepted

Answered
If I renew my support contract can I download and install in new computer
The support contract is unrelated to the ability to install on additional machines. Most licenses entitle you to activate a Matl...

4 years ago | 0

Answered
Why fsurf show anything for my function?
You should normalize the function, so that the default MeshDensity works well. syms eta__2 zeta__2 Hvs2 =((230584300921369395...

4 years ago | 0

| accepted

Answered
How to find mean in theta-direction?
[theta,rho]=cart2pol(x,y); G=discretize(rho,___); %fill in the blank with desired binning specs zMean=splitapply(@mean,z(:...

4 years ago | 1

| accepted

Answered
Potential Bug? Freezing while making plots iteratively
Does the freeze always happen right before the saveas? If so, it might be worth issuing a drawnow() command right before the sa...

4 years ago | 1

| accepted

Answered
Don´t know how to perform IFFT considering my frequency.
But I don´t understand what is the correlation between parameter "n" and my frequency, how do I know how many points to solve? ...

4 years ago | 0

| accepted

Answered
How to re-scale a part of 2D matrix?
range=VD>1901&VD<1919; Pe_OPT(range,:) = rescale(Pe_OPT(range,:), 2.778e+07, 3.1005e+07);

4 years ago | 0

| accepted

Answered
how to rotate a 3d matrix ?
A=randi(50,5,4,3) rot90(A) %or imrotate(A,90)

4 years ago | 0

Answered
how to rotate a 3d matrix ?
permute(A,[2,1,3]) or pagetranspose(A)

4 years ago | 0

| accepted

Answered
Find min and max value of vector without using built-in function
%maxval = A(1); %minval = 1; maxval = -inf; minval = +inf;

4 years ago | 0

Answered
Extreme points of a polyhedral set
If the polyhedron is bounded, you can use lcon2vert, downloadable from, https://www.mathworks.com/matlabcentral/fileexchange/30...

4 years ago | 1

Answered
Is there a way to get rid of white dots in image?
medfilt2 would be appropriate. A=imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1129070/image.jpg'); ...

4 years ago | 0

| accepted

Answered
detecting circle using hough tranform
I find that imfindcircles is often hard to parameter-tune. Here's an alternative solution using this circle-fitting tool, https...

4 years ago | 0

Answered
how to generate random number between two numbers ?
rand(1,100);

4 years ago | 0

Answered
How to find sx and sy and F intrinsix matrix in camera calibration
You can only find the focal length if you know the pixel sizes at the image plane. There's probably no way you can get it, but I...

4 years ago | 1

| accepted

Answered
How to efficiently find and step through similar values in a vector.
Download this, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vecto...

4 years ago | 0

| accepted

Answered
Class handler to call static methods
h=@(varargin) feval([vehHand '.MakeSound'],varargin{:}); h(arg1, arg2,...,argN)

4 years ago | 0

Answered
how can generate an adjacent rectangle ?
You haven't said how the rectangle is being represented as a Matlab variable. If it is a polyshape object , you can use translat...

4 years ago | 1

| accepted

Answered
Solve implicit equation for isentropic flow
For example Aratio=4, g=1.4, the true result is M=2.94 We can see below that M=2.94 is not a solution, so either you have atypo...

4 years ago | 0

Answered
App Builder uses class definitions that are not backwards compatible to 2018b. Is there a way to force it to use older class definitions?
GUIDE has an option to generate code. Does AppDesigner have something similar? I hadn't thought so, but apparently, it does. ...

4 years ago | 1

| accepted

Load more