Answered
how to do convolution of two arrays in 3d?
Consider overwriting the NaNs with zeros A(isnan(A))=0; or more sophisticated missing data inpainting routines offered on the ...

5 years ago | 0

Answered
How to find minimum of every two columns and rows?
1 - How can I get C for any n*n matrix? If you download sepblockfun https://www.mathworks.com/matlabcentral/fileexchange/48089...

5 years ago | 1

Answered
Why is there a difference between the amplitude of fft using two lenght of signal different ?
With the change in N, your frequency sampling changes - you are not sampling the spectrum at the same locations anymore. Since t...

5 years ago | 0

| accepted

Answered
Why linspace function and Colon (:) operator giving me different number of elements in creating a vector ?
The algorithm that linspace uses is, function out=linspace(a,b,n) increment=(b-a)/(n-1); for i=1:n out(i)=a +...

5 years ago | 0

Answered
Assigning array-type names to elements of a GUI or App
app.(CBNames(2)).Value=1

5 years ago | 1

| accepted

Answered
Problem of tensor extraction
Perhaps this is what you want, sub=repmat({':'},1,n); sub(i)={1}; Y=W(sub{:});

5 years ago | 0

| accepted

Answered
interpolation nan matrix value
Perhaps with, https://www.mathworks.com/matlabcentral/fileexchange/4551-inpaint_nans

5 years ago | 0

Answered
please can you help me to the solution of these equations.
Your equations appear to be linear. Instead of solving symbolically, you should instead just write them as a matrix equation, A...

5 years ago | 0

Answered
How to rotate or align point cloud ?
Since your point cloud is is not perfectly coplanar, you will need to fit a plane to it in order to determine the necessary rota...

5 years ago | 0

| accepted

Answered
Selecting control points for inverse perspective mapping (using fitgeotrans)
Given that I only have one image, how do I find out the moving and fixed points? So, notice that you no longer have only 1 imag...

5 years ago | 0

| accepted

Answered
Different eigenvectors calculated from Matlab and Python
Eigenvectors are not unique. Especially in a symmetric matrix with eigenvalues having multiplicity >1, as is the case here, ...

5 years ago | 1

Question


Using webread() to fetch bibliographic data from Google Scholar
I would like to use webread() to obtain bibliographic data from my Google Scholar profile. I am trying to build a struct array w...

5 years ago | 1 answer | 0

1

answer

Answered
How to find Intersection of 2 surfaces ?
One way, load data F1=griddedInterpolant({A1,A2},C,'linear','none'); F2=griddedInterpolant({B1,B2},C,'linear','none'); ...

5 years ago | 2

| accepted

Answered
Find the volume of the region bounded between the planes x + y + 2z = 4 and 2x + 2y + z = 2 in the first octant.
One way would be to download these files, https://www.mathworks.com/matlabcentral/fileexchange/30892-analyze-n-dimensional-conv...

5 years ago | 0

Answered
How to create a function handle to an object's method?
tmp=obj.instance_of_my_class1; for f_name = f_names obj.func_handles(f_name) = @(varargin)tmp.(f_name)(varargin{:}); en...

5 years ago | 1

| accepted

Answered
How to use the least squares method for a 3-dimensional matrix in MATLAB?
C=[B1(:),B2(:)]\D(:); C1=C(1); C2=C(2);

5 years ago | 0

| accepted

Answered
Compare row i with subsequent rows until they are equal
Download these files https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in...

5 years ago | 0

Answered
Compare row i with subsequent rows until they are equal
v=repelem(randi([0,1],3,7), [2;3;4],1) %toy data dv=diff(v,1,1); ID=dv*(2.^(0:6)'); idx=(ID~=0); k=v([idx;true],:...

5 years ago | 0

Answered
GA, How can i modify or aggregate another constraint to GA?
Forgetting about ga() for the moment, we can use linprog and fmincon to test whether your constraints are feasible at all for va...

5 years ago | 1

Answered
scatter3 -- plotting points with different colors attributes
The first option sounds the closest to what I would do, except that I see no reason to use a loop. Just use logical indexing: i...

5 years ago | 0

Answered
Using cellfun to extract specific rows from a cell array?
New_peaks =cellfun(@(a,b) a(b,:), Peaks,num2cell(Indices,1) ,'uni',0);

5 years ago | 0

| accepted

Answered
Is it possible to code a function like movsum to perform as fast as the diff function when using gpu arrays?
Perhaps then I need to understand how diff is written so I can write my own mx file to speed up the averaging process? I'm not ...

5 years ago | 0

Answered
minimum boundingbox of object
load Image BW=bwareafilt( imclose(~Image,ones(25)) ,1); reg=regionprops(BW,'BoundingBox') imshow(Image) drawrectangle...

5 years ago | 0

| accepted

Answered
Tracing one line image
One way would be to use bwconvhull. [x1,y1, x2,y2]=deal(5,6, 13,14); %the two end points BW=false(20); BW(y1,x1)=1; BW(y...

5 years ago | 0

Answered
rectangularity to detect objects
Hard to say without any example images, but pgonCorners might help: https://www.mathworks.com/matlabcentral/fileexchange/74181-...

5 years ago | 0

| accepted

Answered
I want to measure the diameter of this image how can i do it ?
Perhaps as follows, load Image stats=bwferet(Image>75,'all')

5 years ago | 0

Answered
How to make products of submatrices extracted from a larger matrix
If these are matrix products A*B as opposed to element-wise products A.*B then avoiding for-loops is not possible. However, if ...

5 years ago | 0

| accepted

Answered
How to decompose affine matrix to know rotation angle and translation?
This looks applicable: https://math.stackexchange.com/questions/612006/decomposing-an-affine-transformation

5 years ago | 0

| accepted

Answered
How to concatenate four 4D matrices of different dimensions
cat(3,A,B,C,D)

5 years ago | 0

| accepted

Load more