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

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

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

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

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

8 months 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)...

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

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

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

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

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

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

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

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

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

8 months 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...] ...

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

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

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

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

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

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

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

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

9 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) =...

9 months ago | 1 answer | 0

Question

draw a graph from cell arrays

Hello! Revenge has an array of cells and for them I need to make a graph, -10 first values from my position and +10 meanings ...

9 months ago | 1 answer | 0

Question

How to find the name of a function for a known value?

Hello! My code in the matlab is very large, and now I have the task to find where it was considered, the very value of 0.98, but...

9 months ago | 1 answer | 0

Question

the logical answer is 1

ans = logical 1 I have a pretty big code with a lot of cycles and calculations, is it possible to find out where it ...

9 months ago | 1 answer | 0

Question

R2 approximation error as in Excel

Hello! In Excel, when building a trend line, it is possible to show an error of R2 approximation, and can this be done in a matl...

9 months ago | 1 answer | 0

Question

The percentage of the error of several signals

Hello! I have 6 signals. Example 1-200 201 193 2-44 45 41 3-16 17 14 4-1 1 0 5-55 58 45 6-900 920 894; I need to compare all the...

9 months ago | 0 answers | 0