Answered
Sorting points of image
I = imread('curves.png'); I1 = rgb2gray(I); [y,x] = find(I1) ; imshow(I) hold on plot(x,y,'r') You see the lines are in...

7 years ago | 0

Answered
How do I apply PCA (Principal Component Analysis) on single Channel ECG data?
REshape your signal into matrix of specific duration and use pca

7 years ago | 0

Answered
How to convert a netcdf data into a tiff/geotiff file?
You need to do the following steps: Read the data from netCDF to workspace. To do this read about ncdisp, ncinfo, ncread. Wri...

7 years ago | 0

Answered
How to draw line between specific points?
data = [A ; B] ; plot(data(:,1),data(:,2))

7 years ago | 0

Answered
Sliding a 3X3 window over an image
A = conv2(A,ones(3),'same');

7 years ago | 0

| accepted

Answered
How to convert the daily into half hourly
t0 = 723181 ; t1= 736329 ; t0 = [datestr(t0) ' 00:00:00'] ; t1 = [datestr(t1) ' 00:00:00'] ; t0 = datetime(t0) ; t1...

7 years ago | 0

Answered
How to create a permutation table on Matlab?
Read about perms. str = 'MATLAB' ; id = 1:length(str) ; % indices ids = perms(id) ; % permuted indices iw...

7 years ago | 0

Answered
Is the .jpg image one-dimensional and two-dimensional?
If you have a RGB image it will be 3D matrix. If you have a gray image it will be 1D matrix. Try converting your image to ...

7 years ago | 0

Answered
y=0 line is added to my plot
data=csvread('deptesttest.csv',1,0); data(data(:,2)==0,:)=[]; dataus=data(:,1).*1e6; % yyaxis left plot(dataus(:,1),data(:,2...

7 years ago | 1

| accepted

Answered
Help with simple pendulum with moving support
May be this is what you are looking for: https://in.mathworks.com/matlabcentral/fileexchange/32913-response-spectra

7 years ago | 0

Answered
delete matrix in cell
cell_A={[1 1 1] [1 2 3;3 2 1] [4 5 6;7 8 9;1 1 1] [2 2 2;3 3 3] [9 9 9]}; cell_B={[1 1 1] [1 2 3;3 2 1] [9 9 9]}; m =...

7 years ago | 0

| accepted

Answered
Eliminating matrix row on condition
A = [1 2 0 ; 3 4 0 ; 5 6 7; 8 9 10] A(any(A==0,2),:)=[]

7 years ago | 1

| accepted

Answered
How to insert the missing number into the cell array?
I=[3 5 6 8 10 11] ; A={[3];[6;8];[];[11]} ; % get empty cell idx = cellfun(@isempty,A) ; A{idx} = setdiff(I,cell2mat(A))...

7 years ago | 0

| accepted

Answered
could anyone help me why the command line execution is getting displayed in the command window while having semicolon at the end of the statement.
Read about echo. YOu can make echo on where ever you want to dipslay the command line. And make echo off to stop it.

7 years ago | 0

Answered
Sorting same rows & columns in two different matrices?
A = [ 16 2 3 13 5 11 0 8 9 7 ...

7 years ago | 0

Answered
How to store values matrix in cell
M = @(t) [t^2 t 1 0 0 0; 0 0 0 t^2 t 1]; t = [1 2 3] ; iwant = zeros(2,6,length(t)) ; for i = 1:length(t) ...

7 years ago | 1

Answered
Count the same element in a large rows of one column
idx = matrix==myvalue ; % this wlill give logical indices T = nnz(idx) ; % this iwll give you total number of values pres...

7 years ago | 0

Answered
Add world map background to contour plot
S = shaperead(filename) ; Now you have your lat, lon coordinates in S..extract them and plot. Mostly the following shall work ...

7 years ago | 0

Answered
Matlab image, get mean values of selected coordinates
Let Z be your data. You caextract the required chunk/ part dep[ending on the indices and get mean. y= 177:400; x= 37:393 ; ...

7 years ago | 0

| accepted

Answered
for loop is not iterating through images
img = dir('*png') ; N = length(img) ; % edited for i = 1:N I = imread(img(i).name) % do what you want end

7 years ago | 1

| accepted

Answered
symbol function and nomal function
syms stands for symbolic function......this is a kind of analytical way of solving the function. Where as other function is to m...

7 years ago | 0

| accepted

Answered
Add world map background to contour plot
[num,txt,raw] = xlsread('lat lon data.xlsx') ; lon = num(1,2:end) ; lat = num(2:end,1) ; data = num(2:end,2:end) ; p...

7 years ago | 0

Answered
2D density plot with colorbar
N = 100 ; x = linspace(0,2*pi,N)' ; y = sin(x) ; xi = linspace(min(x),max(x),N) ; yi = linspace(min(y)-1,max(y)+1,N) ;...

7 years ago | 1

| accepted

Answered
Plotting eigenmodes in 3D
This shoul dhelp: https://in.mathworks.com/matlabcentral/fileexchange/30970-natural-frequencies-buckling-loads-of-columns-using-...

7 years ago | 0

Answered
Delete rows from matrix
b = 1 ; A(b,:) = [] ;

7 years ago | 1

Answered
how to remove some portion of boundary of an object without affecting remaining portion in matlab by programming
load f1.mat ; load f2.mat ; x = f1 ; y = f2 ; figure hold on plot(x,y,'*r') idx = x>35.5 ; x(idx) = [] ; y(idx...

7 years ago | 0

| accepted

Answered
"Matrix dimensions must agree" getting error
Read about ismember idx = ismember(lld_groups,feat_ranking_groups2) ; feat_indic=feat_indic|(idx);

7 years ago | 0

Answered
How to extract data from an excel file to be compared with an output of an OCR-ed image
To read read the data from excel: xlsread, readtable. To compare numbers: ismember, find,==, knnsearch To compare strings: is...

7 years ago | 0

| accepted

Answered
Merge three initial values ​​into one code by runge-kutta
h=0.5; % step size x = 0:h:100; % Calculate...

7 years ago | 0

| accepted

Answered
can i know how to find an intersection between a line and a set of x-y datas
Use this https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function

7 years ago | 0

| accepted

Load more