Answered
Remove outliers from signal
USe this: https://in.mathworks.com/matlabcentral/fileexchange/24885-remove-outliers

7 years ago | 0

Answered
Saving a text file as a time step array
YOu can save the required into a matrix using: iwant = zeros([],3) ; count = 0 ; for nn = 1:TMAX if mod(nn,10)=...

7 years ago | 1

| accepted

Answered
How to add values ​​to a vector
To add/ append A = rand(1,10) ; B = zeros(1,2) ; iwant = [A B] To Remove A = rand(1,12) A(11:12) = []

7 years ago | 0

| accepted

Answered
Point tracker - get koordinates
Some thing like this: P = cell([],1) ; V = P ; count = 0 ; while ~isDone(videoFileReader) frame = step(videoFileR...

7 years ago | 3

| accepted

Answered
tree-ring detection !!!
How about this approach? I = imread('image.png') ; I1 = imcrop(I) ; % cropping the required part % imshow(I1) I2 = ...

7 years ago | 2

| accepted

Answered
how to read lots of file and plot them
files = dir('*.txt') % Give your extension N = length(files) ; % total number of files % loop for each file for i = 1...

7 years ago | 0

Answered
How to convert a closed curve into a binary mask
data = importdata('data.txt') ; x = data(:,1) ; y = data(:,2) ; N = 500 ; xi = linspace(min(x),max(x),N) ; yi = lins...

7 years ago | 0

| accepted

Answered
"Contour not rendered for non-finite ZData" warning, working fine on Mathematica?
[x,y] = meshgrid(-5:0.25:5); z = (x.^2 + y.^4)./sqrt(4.*x.^2 + 4.*y.^2); contour3(x,y,z) YOu forgot to put ./ (element by ele...

7 years ago | 0

| accepted

Answered
How to plot global temperatures interpolated on world map from a mat file
A=load('T_file.mat'); T_file = double(T_file) ; lon=A(:,1); lat=A(:,2); z=A(:,3); lon0 = min(lon) ; lon1 = max(lon) ; l...

7 years ago | 0

Answered
i get an error .whats wrong ? Subscript indices must either be real positive integers or logicals. Error in (line 54) CC(j)=bitxor(mode(R(ii)+CC(j-1),256),K(i));
CC(j)=bitxor(mode(R(ii)+CC(j-1),256),K(i)); The above line got multiple issues. YOu need to rethink your code. Think of the fol...

7 years ago | 0

Answered
How to extract interpolated values from a table
REad about interp1 and interp2.

7 years ago | 0

Answered
Only keep rows with the same names from multiple excel files
Load the files using either xlsread or readtable. YOu can get the common data from both the files using either ismember or int...

7 years ago | 0

Answered
Writing data to a structure array without loop
https://in.mathworks.com/matlabcentral/answers/259291-how-to-add-values-to-structure-array-without-loop

7 years ago | 0

Answered
Make a contour plot of a 3D Solid Object
You can plot contours of triangulated data using this: https://in.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-...

7 years ago | 0

Answered
How to solve the intersections between helix and sphere?
Refer this: https://in.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-between-two-surfaces

7 years ago | 0

Answered
comparing two matrix element simultaneously and adding third column
A = [ 18 18 1 17 20 2 18 18 1 17 25 2 19 17 3 18 18 1 19 17 3] ; [...

7 years ago | 0

| accepted

Answered
simulate k nearest neighbourhood
Play with this: x = rand(500,1) ; y = rand(500,1) ; l = kmeans([x y],4) ; figure hold on scatter(x,y,50,l,'o','fille...

7 years ago | 0

| accepted

Answered
How to rotate a cube using for loop?
Define a rotation matrix as shown here: https://en.wikipedia.org/wiki/Rotation_matrix and multiple the coordinates with the matr...

7 years ago | 0

| accepted

Answered
how can i get the input data set for the water quality prediction for this i m using machine learning
There some dedicated sites which provide required data for problems. You have to search those sites. FEw links which I use are: ...

7 years ago | 0

Answered
Shifting column with data
YOu may proceed some thinkg like this: [X,Y] = meshgrid(1:10,1:10) ; Z = diag(1:9,-1)+diag(1:10)+diag(1:9,1) ; Z = fliplr...

7 years ago | 0

| accepted

Answered
could anyone help me to solve the issue
x=1:10 ; y = zeros(size(x)) ; for i=1:length(x) y(i)=log(x(i)) ; end plot (x,y,'*') No for loop needed x = 1:10 ; ...

7 years ago | 0

| accepted

Answered
how to subtract a dynamic mask from an image
Are you looking for something like this? I = [5 8 3 4 6 7 9 3] ; M = [3 4] ; M = repmat(M,1,length(I)/length(M)) ; iwant ...

7 years ago | 0

Answered
What are some good quick shortcuts for beginners?
A beginning tutorial. https://www.tutorialspoint.com/matlab/ MATLAB is very good in documentation. If you stuck up in a funci...

7 years ago | 1

Answered
How to view the index of a line (or set of connected lines) in a plot?
How about this approach? Click at the point you want to know the label. % first trajectory data track(1).x = [1 1 1 2 4 5];...

7 years ago | 1

| accepted

Answered
How to stack a sequence of pictures into one.
Read about montage

7 years ago | 0

| accepted

Answered
Can I plot testing class label vs. predict class label
Read about gscatter. https://in.mathworks.com/help/stats/gscatter.html. Mostly such representations are shown using conf...

7 years ago | 0

| accepted

Answered
import csv using textscan but skip lines where column value meets user criteria
As the data int he file are numbers..you can import/ load the data and then you can remove the unwanted numbers using inequaliti...

7 years ago | 0

Answered
how to convert 3d precipitation data to 2d in matlab
REad about reshape iwant = reshape(Rf,33*35,122) ;

7 years ago | 0

Answered
Remove similar values from matrix with tolerance value
Read about pdist2. This will give pairwise distance . Now remove the points which you want to rmove by setting a tolerance in di...

7 years ago | 0

Answered
image processing segmentation ?
rescale is a function introduced in 2017b. It seems you are using a lower version than this. Instead of rescale you can use mapm...

7 years ago | 0

Load more