Question

in a loop like go back

Hello! Now I use this loop for i=1:length(data) if a(i)<=1 a(i)=a(i-1) end end but I was faced with th...

2 days ago | 1 answer | 0

Question

Help in finding the matrix

Hello! I have a vector of values, and I need to find their location in the matrix % 1000x100 matrix % 1x100 data

9 days ago | 1 answer | 0

Question

Prompt functions for spatial clustering

Hello! Tell me how I better cluster the data, I have the x and y coordinates and the data set (all sizes are the same) I tried s...

10 days ago | 0 answers | 0

Question

A cycle for creating and working with zones

Hello! I have a long vector line 1x10026, I need to divide it into zones (100 values in each), look at them and do operations ...

18 days ago | 1 answer | 0

Question

subtracting two vectors to get one value

Hello! I have two column vectors and I need to subtract them to get one value, is this possible?

19 days ago | 1 answer | 0

Question

Tell me how isoutlier function works

There is such a wonderful function isoutlier, but i can't understand data=[27 27 17 64 27 27] % gives me the correct values T...

19 days ago | 1 answer | 0

Question

function to fill in zeros

Hello! I have an array of data where there are zeros and I need to replace them. How can I do this? data=[100 95 0 90 0 85 0 0 ...

19 days ago | 1 answer | 0

Question

Help with unification cycle

Hello! I have been given 2 matrices in one value, zeros in another, and units I need to combine them x=[0 1 1 0 0 0 0 1 1 0 0 0...

19 days ago | 1 answer | 0

Question

Help with building plot

x=[1:2:50] % this x coordinate where I need to plot X=[24 23 23 25 26] % values where to be y [~,psk]=min(Data) % matrix 200...

22 days ago | 0 answers | 0

Question

Problems building a plot

Data 100x10 Data(1,1)=[10 20 10 10 10 30 20 .... ] % my meanings x1 1x10 % value coordinates x2 1x10 z % coefficient for rec...

25 days ago | 1 answer | 0

Question

How to make a loop

Hello! I have a loop and I cannot configure it correctly x=(0:1:100); n=length(x); for i=1:10 y=data(:,i)...

25 days ago | 1 answer | 0

Question

Problems creating a chart

Hello! I'm trying to create a graph and I have a problem plot(Data','.-b') ylabel('temp') xlabel('time') f = getframe; hold...

26 days ago | 0 answers | 0

Question

How to find the longest and shortest section?

Hello! Here is my code Data1=[12 121 122 12 12 12 12 12 12 12 63 65 70 70 70 70 71 12 12 12 12 12 12]; Data2=[20 21 20 21 21 9...

29 days ago | 0 answers | 0

Question

help highlight adjacent values

Data=[20 21 20 21 21 90 92 93 90 93 90 59 30 102 30 21 22 23 21]'; x = 1:19'; DataTemp=Data; [TF,L,U,C] = isoutlier(DataTemp...

1 month ago | 0 answers | 0

Question

How to lock an area

Hello! I need to remove the area I can use% to make it green and remove, but is it possible to do this for a large area, and not...

1 month ago | 1 answer | 0

Question

Help with finding highs

Hello! My signal goes smoothly then at some stage it rises sharply and for a long time keeps this tendency I am trying to use t...

1 month ago | 1 answer | 0

Question

Error Index exceeds matrix dimensions

Data 1000x100 for i = 2:length(x)-1 [x ,y] = min(Data(i)); if x(i) < x(i-1)+10 && x(i) < x(i+1)+10 x(i)=x(i...

1 month ago | 1 answer | 0

Question

How to enter your data in cluster analysis?

load fisheriris [cidx2,cmeans2] = kmeans(meas,2,'dist','sqeuclidean'); [silh2,h] = silhouette(meas,cidx2,'sqeuclidean'); Hell...

1 month ago | 0 answers | 0

Question

Help with creating clustering

Hello! I have a signal X1 and X2 I need to cluster it by depth and distance, I tried k average but, they told me that you can’t ...

1 month ago | 1 answer | 0

Question

Error clustering to k mean

A= [X1;X2]; [IDX,C,sumd,D] = kmeans(A,2,'display','iter'); %%% Error using kmeans (line 269) %X must have more rows than the ...

1 month ago | 0 answers | 0

Question

Add Rows to Matrix

Hello! I'm trying to create a matrix with zero values [x,y]=min(Data); % Data 200x1000 x=1x1000 (double) a=[10 10 10...] ...

2 months ago | 1 answer | 0

Question

Matrix non-exceeding condition

Hello! I have a 1x15 matrix, the code is presented [xdata,x]=min(Data); % Data 45x350 x=[ 16 16 16 31 16 0 16....] a=[15 15 ...

2 months ago | 0 answers | 0

Question

Workspace calculation accuracy 7 characters

Hello! Faced a problem, I need to copy the numbers 7 and more characters for later work in text formats format long g digitsOl...

2 months ago | 1 answer | 0

Question

Help deal with the loop

Trying to create a loop for counting. for i=1:length(y) % y = 1xn n=100000 a = 20.224124124124 b = 7664555.5789; x1(i)=y(i)...

2 months ago | 1 answer | 0

Question

Error when taking an exponent from a large data set

Hello! I have a 1x3000 data array, I am trying to take an exponent and it gives me an error xanimal=[300 3004 1002 4000 5000 20...

2 months ago | 1 answer | 0

Question

From the number to make a fraction?

Hello! I have the number 3408289, I need to make 34,08289 out of it, how can I do this in the matlab? And then the task is to t...

2 months ago | 1 answer | 0

Question

Сombining values on a single graph

Hello! There is an array of data a b c, two 3x3 matrices belong to them, where 3 values of the first matrix 0 2 4 and the seco...

2 months ago | 0 answers | 0

Question

Display of values in the workspace

Hello! I have more intermediate values which are displayed in the work space, now I call the data I need A A1 A2. Is it possib...

2 months ago | 1 answer | 0

Question

From cell array to matrix

Hello! I have cell arrays, help me deal with the loop. for i = 1:length(Animal)-1 Y=[X{i}]; end data looks like this % X{1...

2 months ago | 2 answers | 0

Question

how to remove the last column in the matrix?

Hello! There are matrices, I need to delete the last column, how would I do this? A=[2 4 2 4 2 6 8]; [x,y]=size(A); A(:, y) =...

2 months ago | 1 answer | 0