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...

7 years 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] =...

7 years 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...

7 years ago | 0

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

7 years ago | 0

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

7 years 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...

7 years ago | 0

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

7 years 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.

7 years 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,...

7 years 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...

7 years 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...

7 years 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...

7 years ago | 1

| accepted

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

7 years ago | 1

| accepted

Answered
Exporting data from workspace
REad about xlswrite

7 years 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) ; ...

7 years 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 ...

7 years ago | 0

| accepted

Answered
How to label the interior of region as 2 where as boundary is already labelled as 4 for an object using Matlab coding
AS you have coordinates for the boundary (i.e 4), use inpolygon and get the coordinates lying inside it. Label them or fill the ...

7 years ago | 0

Answered
how to add 2 legends for 2 portions of one plot?
th = 0:pi/100:2*pi ; y = sin(th) ; plot(th,y) % set 1 th1 = th(th<=pi) ; y1 = y(th<=pi) ; % set 2 th2 = th(th>pi) ; ...

7 years ago | 0

Answered
how to store data in a matrix?
U10 = ncread(filename,'U10M'); If your variable U10M is 3D, the above line reads complete data. Your U10 should be 3D....

7 years ago | 0

| accepted

Answered
How to modify text file
fid = fopen('data.txt') ; S = textscan(fid,'%s') ; fclose(fid) ; S = S{1} ; % Find the string you want to change idx =...

7 years ago | 0

Answered
How to calculate derivation of 2D spline data
REad about gradient

7 years ago | 0

Answered
Import of a 2D mesh created by Mesh2D or NodeLab into PDE Toolbox
You need to proved the mesh in .stl format. Write the required data into .stl file using: https://in.mathworks.com/matlabcentral...

7 years ago | 0

Answered
Marker points are not fully visible
plot(x,y,'ok','MarkerSize',12,'MarkerFaceColor','k');hold on plot(x1,y1,'LineWidth',2); hold off a = datenum(x1); datetick('...

7 years ago | 0

Answered
Linear Regression - how to incorporate in figure
Read about plotregression x=[1 2 5 9 4 10 11 2 6] ; y=[5 3 6 8 5 12 14 4 8] ; plotregression(x,y);

7 years ago | 0

Answered
number format using solve
REad about double and vpasolve

7 years ago | 0

Answered
Write Data to Excel
x = rand(3,1) ; y = rand(3,1) ; z = rand(3,1) ; T = table(x,y,z) ; writetable(T,'test.xlsx')

7 years ago | 0

Answered
How do I put elements from one matrix into separate matrices using a loop?
You can use functions like ismember. You can also use logical indexing. The best would be ismember. Read about the function.

7 years ago | 0

Answered
how to divide a 3D figure in matlab in to cubes and getting the cubes's addresses
How about using this function? https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube You can draw cubes by provid...

7 years ago | 0

Answered
Intersection between lines and traced shape
The best you can use is: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=funct...

7 years ago | 0

Load more