Question


Fit a transform to remove piecewise discontinuities
I have a sequence of data points (see image below) in which a section has undergone an unknown corrupting transformation, result...

5 years ago | 2 answers | 1

2

answers

Answered
Create a matrix that contains a specific total value, made by the maximum values, of another matrix
temp_array=original_array; % copy original array ratio=0.6; ...

5 years ago | 0

| accepted

Answered
How to Split array to sub arrays
Using mat2tiles (Download) subarrays=mat2tiles(XY_P,[2,2])

5 years ago | 0

| accepted

Answered
Size of the unique elements and size of the output of accumarray
They will only be the same size if unique(MAT(:,1)) consists of consecutive integers starting from 1. Otherwise, accumarray must...

5 years ago | 0

| accepted

Answered
3 x 3 mean and meadian replacement
medfilt2 is the correct thing to use. Perhaps the problem is the argument "outout1" which seems to be misspelled.

5 years ago | 1

| accepted

Answered
Set value for elements within a polygon
If you have the Image Processing Toolbox, domain=ones(100); xv=[40;50;60;50;40]; yv=[60;50;60;70;60]; in = roipoly(domain,...

5 years ago | 0

| accepted

Answered
¿What distance does Matlab use in the function "fft2"?
fft2 implements the Discrete Fourier Transform, not the continuous one. Therefore, the choice of distance is irrelevant.

5 years ago | 1

Answered
Curve fitting nonlinear data sets by tuning multiple parameters
You can get an initial guess using log-linear fitting, n=[numel(x1),numel(x2),numel(x3)]; %concatenate data X=[x1(:);x2(:);x3(...

5 years ago | 0

| accepted

Answered
Complex roots of sin(2*x)-2*x=0
This seems to find a non-trivial complex root: opts=optimoptions('fsolve','StepTol',1e-14,'FunctionTol',1e-14,'OptimalityTol',1...

5 years ago | 0

Answered
Converting image to subimages
Using mat2tiles (Download) mat2tiles(rand(256),[25,25])

5 years ago | 0

| accepted

Answered
Fastest way to multiply matrices within an array without for loop?
(possibly with vectorization, using some in-built matlab function, using cell arrays If your matrices start off in cell array f...

5 years ago | 0

Answered
Express rotations in different coordinate frames
I don't know in which order you plan to apply dRx,dRy,dRz, but let's say you just compose them into a single 3x3 rotation matrix...

5 years ago | 0

Answered
How can I fill area between two curves with custom colors?
Maybe as below: N=500; x=linspace(0,pi,N); y1=cos(x)-0.3; y2=cos(x-pi/6); ratio32= normalize( abs( (y2-y1)./(y2(1)-y1(1))...

5 years ago | 1

| accepted

Answered
Multiplying elements of a matrix and its transpose row-wise
result=A.'*A;

5 years ago | 1

Answered
Program to calculate Distance between points and fixed point
Use pdist2 distances=pdist2([A;B;C],P)

5 years ago | 0

| accepted

Answered
Solving quadratic optimization problem in Simulink and code generation - Different behavior in Matlab?
Well, the problem is what the warning message told you - the conditioning of the problem is poor needs and needs to be improved ...

5 years ago | 0

Answered
classes with static (constant) properties
No, an object is not created with method 2. An easy way to verify that is with the following small test class. You can see that ...

5 years ago | 0

| accepted

Answered
calculating view angle out of an image
You have to calibrate the camera and get the 3x4 projection matrix, P, but once you do it should be quite easy: u=dot( normali...

5 years ago | 0

Answered
How to create table from formula
A=(1:5).'; x=A; y=10*A; z=100*A; T=table(x,y,z)

5 years ago | 0

Answered
Create circle that has random "noisy" points along circumference within 10% of circle radius
You can use this circularFit.xysim() from this FEX package https://www.mathworks.com/matlabcentral/fileexchange/87584-object-or...

5 years ago | 0

Answered
Taking average over specified grid box resolution?
Using sepblockfun (Download) sepblockfun(Data,[2,2],'mean')

5 years ago | 0

Answered
Build a vector of file names with formatting and leading zeros
FileNames = compose('myfile_%02d_%03d.txt', ... FileNameIntegersMatrix(:,1), FileNameIntegersMatrix(:,2) )

5 years ago | 0

| accepted

Answered
Replace values ​​in a matrix
A=reshape(A,[],3); B=mean(A,1); map=A>50; A=reshape( A.*(~map)+B.*map , 1,[])

5 years ago | 0

| accepted

Answered
How to applied 2d gaussian function
You could try this alternative gaussian fitting routine, and see if you get different results: https://www.mathworks.com/matlab...

5 years ago | 0

Answered
Memory problem when accessing and copying the 3D array elements by subscripts
The better way would be to avoid using find(): region=(ximg > 0 & ximg <= xdim & yimg > 0 & yimg <= ydim); imtmp=reshape(ima...

5 years ago | 0

| accepted

Answered
How tor reshape an array
B=reshape(A.',3,[]).'

5 years ago | 0

| accepted

Answered
How to set a custom equation to fit 5 points in space by fitsurface?
Another way, which would allow you stay within the framework of the Curve Fitting Toolbox, would be to do a poly22 fit with uppe...

5 years ago | 0

| accepted

Answered
Is it possible remove a data point when the logical index removes a coordinate?
region=x1>0 & x1<925 & y1>0 & y1<925; scatter( x1(region),y1(region) )

5 years ago | 0

| accepted

Answered
Efficiently accesing cell entries
I have enclosed 2 mat files I see no attachments, so you probably forgot to click 'Submit'. In any case, your data organizatio...

5 years ago | 0

| accepted

Answered
Image quality and dimension
Well, I don't know if this is intentional, but every new image in the loop gets filtered by a different kernel because refback n...

5 years ago | 0

| accepted

Load more