Question

where to save the function file to work?

Hello! I downloaded the function file that I need, but it doesn’t work for me Undefined function or variable 'xyz2grid'. I dow...

1 day ago | 1 answer | 0

Question

calculation of coordinates of the sum of values greater than 5

there is a vector of large length, here is a small part of it F1 = [2.5 2.5 3.5 1 1 5.2 11.4 4 4 5.2 2 2 6] I need to get the co...

14 days ago | 1 answer | 0

Question

Search for an element in an array in reverse order

for i=1:length(X) x=find(Matrix(X(i):1,i)<100,1,'first')'; % X100(i)=x; end Unable to perform assignment because the lef...

24 days ago | 1 answer | 0

Question

increase value in vector

X=[102 103 116 145 108] % iwant=[102 205 321 466 574] % what i need to get % 102+103=205 ; 205+116=321 ; for i=1:length(n)-1...

24 days ago | 1 answer | 0

Question

average vector over selected areas

I have two vectors, one working, the second sections that I need to average in vector 1 A = randi([5 10],1,548); B= [102 105...

25 days ago | 1 answer | 0

Question

Vector averaging with mean command

Hello! I don’t quite understand how to use this command, I need to average a 1x533 vector Averaging1=mean(X,10); Averaging2=me...

25 days ago | 2 answers | 0

Question

how to take a certain number of characters:

Hello! I have the number 9928900200, I need to do 992890,0200, how can I get this?

28 days ago | 1 answer | 0

Question

how to write values to a vector and matrix by coordinates?

Hello! With the 'find' command, I found the coordinates of all elements greater than 1, now I need to write them to the matrix a...

28 days ago | 1 answer | 0

Question

draw a label in the scatter graph

Hello! I have a scatter graph scatter( x, y, [] , z, 's', 'filled') % I have x and y coordinates where should the label be, h...

1 month ago | 1 answer | 0

Question

the loop does not display results

Hello! There is a matrix and I need to find the first value less than 90 clear all close all X=[ 80 90 100 110 100 95 90 20 ...

1 month ago | 1 answer | 0

Question

loop to work with the column

Hello! There is a loop, I need to know automatically how many values after the point X=[1 2 3 4 5 6 90 70 60 50 6 5 4 3 2 ...

1 month ago | 1 answer | 0

Question

Using imagesc and scatter together

Hello! I need to impoverish these two teams and there must be 2 colorbar, how do I do this ??? x=[1:150] y=[1:150] z=rand(1,1...

1 month ago | 1 answer | 0

Question

Problems exporting from matlab to exel

AV = {'1 nord', '2 ott','3 teta(double)' , '4 gama ','5 val(single)', '6 teta2( uint16 ) '}; AVt=rand(10000, 6) AVtNord=[AV;A...

3 months ago | 1 answer | 0

Question

signature of values when exporting to excel?

I export a 2x3 matrix to Excel, but I need to sign the values filename = 'L:\DataABC\ABS.xlsx'; A=[2 3] ABC(:,1) = A'; B=[...

3 months ago | 1 answer | 0

Question

all values on the surf chart

I create a graph of surf (X, Y, Z, C), when I click on the graph, I will get X, Y, Z. Is there any way to get C to display ?

3 months ago | 1 answer | 0

Question

draw a line at the coordinates and paint it

I did how to draw a line along the coordinates, but I don’t know how to color it. a=[110 120 70 140 150] b=[20 30 40 50 80] r...

3 months ago | 2 answers | 0

Question

plot3 and graph color

Hello! I have a graph in plot3 but the values there are small and the graph turns out to be the same color, is there any way t...

3 months ago | 0 answers | 0

Question

find the position (number) where the condition was met

[~,Y5] = kmeans(X,5,'Distance','cityblock',... 'Replicates',5,'Options',opts); Hello! I have such a code, it gives me all ...

3 months ago | 0 answers | 0

Question

work with numbers in number

Hello! I have the number 40.201109, I need to work with numbers 109, and then with 110 and at the end of 40. Help me how to sepa...

3 months ago | 1 answer | 0

Question

make a matrix from

I am given numbers 2, 4 and 8, I need to make three matrices from them, format 3x3.1x10 (this will already be a vector) and 2x4 ...

4 months ago | 1 answer | 0

Question

exit from the cycle

Hello! If I create a cycle, I need it, when the cycle was executed, it went to the next column and saved the number of digits un...

4 months ago | 2 answers | 0

Question

find the first change and its position

Hello! I have a 100x10 matrix, I need to find the first change and its position (the number of this position is the right number...

4 months ago | 1 answer | 0

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

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

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

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

6 months 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?

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

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

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

6 months ago | 1 answer | 0