Answered
Nearest neighbor distribution and spherical contact distribution
Read about knnsearch and rangesearch.

20 days ago | 0

Answered
Use intersect function in model
[same,ia,ib] = intersect(a,b,'rows') ; a(sort(ia),:)

21 days ago | 0

Answered
How to overcome this problem; Error using - Matrix dimensions must agree.
Two options: Reduce dimensions psi = psi(1:101,1:108) ; p = p(1:101,1:108) ; En =sqrt(((psi-p)^2)/psi^2); Do interpolat...

21 days ago | 0

| accepted

Answered
How to solve "Subscripted assignment dimension mismatch"?
What the necessity to save those images into a bigger image? USe montage. Read about it.

24 days ago | 0

Answered
How to plot Date on x axis and string on Y axis. Text annonation on Data points
Load data from excel to matlab using xlsread. Use this to use labels along the axes: https://in.mathworks.com/help/matlab/cre...

24 days ago | 0

Answered
How to calculate post-pre connectivity matrices for multiple subjects
postfiles = dir('*post*.mat') ; m = length(postfiles) ; prefiles = dir('*pre*.mat') ; n = length(prefiles) ; post = zeros(51...

24 days ago | 0

Answered
Draw a circle and measure the white pixels area inside
I = imread('image.png') ; I1 = rgb2gray(I) ; [y,x] = find(I1) ; length(x)

25 days ago | 0

Answered
To crate a 2D lookup table with interpolation for matrix data and to crate a function of (x,y) (inputs) give the output from the matrix
Read about interp2. n = 20 ; Z = peaks(n) ; [X,Y] = meshgrid(1:n,1:n) ; [Xi,Yi] = meshgrid(1:0.1:n,1:0.1:n) ; Zi = i...

25 days ago | 1

Answered
how I can get Px,Py and Pz value ?
%% %Given Theta_1 =45; Theta_2 =10; Theta_3 =0; Theta_4 =90; Theta_5 =0; Theta_6 =45; %known a1 = 0.35; a3 = 0.3; a4 ...

25 days ago | 1

| accepted

Answered
How to convert a table into a structure
Read about table2struct. S = table2struct(T)

25 days ago | 0

Answered
How can I select data in a pcolor plot by using a rectangle?
Read about interp2. Fix your (Xi,Yi) for which you want to extract the data and use interp2. Something like below: xi = lin...

25 days ago | 0

Answered
Extracting data tips from 3-D figure
clear;clc;close all; figure(1); load('long_lati_depth.mat','long','lati','depth') contour(long,lati,depth,[-74 -75 -76 -77 -7...

27 days ago | 0

| accepted

Answered
How to crop circular area and measure the ratio of black and white from the binarized image?
I = imread('image.jpeg') ; I1 = rgb2gray(I) ; I1 = imcrop(I1) ; % crop the square part which exactly covers/ inscribes the...

28 days ago | 0

Answered
Intersection points of generated lines and polygon
The best thing for you today is this function: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?foc...

28 days ago | 1

| accepted

Answered
How to solve a single equation with 2 variables? Both of which are integers.
D=4.4010; rowS=0.8613; Lx=0.286; Lz=0.198; fnm=[134 266 408 481 785 863]; wnm=2*pi.*fnm; m = 1:10 ; n = 1:10 ; [m,n] =...

28 days ago | 0

Answered
I wanna perform RMSE & SSIM but I cannot set same size of 2 image. Need your help :(
A=imread('Hasil Citra Ground Truth_1_1.jpg'); % resize1= imresize(citraReferensi,[256 360], 'bilinear'); B=imread('Hasil Citra...

28 days ago | 0

Answered
How do I transfer the data in matlab to spreadsheet?
Read about xlswrite and/or writetable.

28 days ago | 0

Answered
combine two cell in one string and compare it with pattern
Read about strcat, strjoin

1 month ago | 0

Answered
How can I fill between two curves, but only when one curve is above the other?
load Data.mat ; plot(x,y1,'k',x,y2,'k:'); hold on; xlim([x(1) x(end)]); % jbfill(x',y1',y2',[.8 .8 .8],'none',0,.5); legend...

1 month ago | 0

Answered
How to mark the point, display lines and measure distance in Matlab?
Read about ginput, getpts, plot, imdistline and imline.

1 month ago | 0

| accepted

Answered
How to use linear interpolation to fill gaps to generate a contour (closed surface)
This will be your function: https://in.mathworks.com/help/matlab/ref/fillmissing.html. Also read about fillgaps.

1 month ago | 0

Answered
How to interpolate the following sample in 200 samples?
Let A be your data. n = length(A) ; x = 1:n; xi = linspace(1,n,200) ; Ai = interp1(x,A,xi) ; figure hold on plot(x,...

1 month ago | 0

| accepted

Answered
could anyone help me how to solve the issue in the following code
unused_rows1=1:12; while ~isempty(unused_rows1) rows1_matrix=reshape(unused_rows1,[],2); rows1_matrix(:,end)=rows1_matrix(end...

1 month ago | 0

| accepted

Answered
calculate area in table
Load the data from excel file using xlsread or readtable. Once you have data in workspace......you can get your desired result u...

1 month ago | 0

Answered
How to calculate distance between center of white pixels in an image?
REad about imdistline; this will allow you to calculate the distance between the points interactively. For this you are supposed...

1 month ago | 1

| accepted

Answered
How to import variables to excel sheet?
Read about xlswrite

1 month ago | 1

| accepted

Answered
Exporting data from workspace
REad about xlswrite

1 month ago | 0

Answered
Parabola plot not displayed correctly
You are suing the random numbers for demo.....you have to sort them before you use: X = randi(100,[40, 1]) ; X = sort(X) ; ...

1 month ago | 0

| accepted

Answered
How to name each row of a 4 by 4 matrix, that is calculated. Then plot those rows each in a separate figure?
A = rand(4,4) ; var = {'row1', 'row2','row3','row4'} ; % Table T = table(A, 'RowNames',var) ; % Plot for i = 1:4 ...

1 month ago | 0

| accepted

Load more