Question

How to find the coordinates of a point perpendicular to a line (knowing the distance)?

I have a line made of two points A(xA,yA) and B(xB,yB) and I know a point C(xC,yC) belonging to this line (somewhere between A a...

1 month ago | 1 answer | 0

Question

How to find the indices that a point lays between?

I have a vector X and a vector Y with 112 points. See picture above, the points are depected with a cross symbol. There is a ...

2 months ago | 2 answers | 0

Question

find coordinate(-s) on a plot

I have the plot you see above (plotted from data of two vectros X and Y). And I would like to find the coordinates x where y =...

2 months ago | 1 answer | 0

Question

How to avoid for loop, when using ecdf for a matrix?

Is there a smarter way to create a matrix fx and a matrix x without using the for loop? for i=1:4 [fx(:,i) x(:,i)]= ecdf(A...

3 months ago | 1 answer | 0

Question

How to use find for a vector without a loop?

I have the following script but doesn't work (properly) V_dates = [datenum(2030,1,1) datenum(2050,1,1) datenum(2075,1,1) datenu...

3 months ago | 1 answer | 0

Question

How do I convert a string to a date?

I have a txt file with dates in the following form: 200309302300 200309302310 200309302320 ......etc How can I convert thes...

3 months ago | 1 answer | 0

Question

How to retrieve data from a website?

I would like to retrieve data from a webasite, and store them in a matrix of two columns (or in two vectors). I tried this: ur...

3 months ago | 1 answer | 0

Question

Marker points are not fully visible

plot(x,y,'ok','MarkerSize',12,'MarkerFaceColor','k');hold on plot(x1,y1,'LineWidth',2); hold off a = datenum(x1); datetick('...

4 months ago | 1 answer | 0

Question

How to find which are the nearest points to the line segment?

I have a vector X size 50x1 and a vector Y size 50x1. If i plot(X, Y, 'r+') then I get the rays you can see at the plot (the...

4 months ago | 1 answer | 0

Question

Use find function, for more than one value avoiding a for loop

Is there a way to use find function but for more than one value? Lets say we have a matrix 1000x100 named A, where 100 is the n...

5 months ago | 0 answers | 0

Question

gprnd, gpfit: question about theta

I have a vector with 100 measurements. --> [x] So i used: [parmhat,parmci] = gpfit(x). (to get the Generalized Pareto parame...

6 months ago | 0 answers | 0

Question

How to sum up numbers into a cell?

Hi, I have a 100x5 cell, and each element of it contains vectors of different sizes. See pic1. The vectors contains different n...

6 months ago | 1 answer | 0

Question

Copulas- how to correlate more than 2 variables?

I have 3 datasets (vectors) : x1,x2 and x3. And I know which pdf describes each dataset better. Moreover, x1 and x2 are descri...

9 months ago | 0 answers | 0