Differentiate 1*300 vector array

Hello,
I have an column vector array where the structure is 1,300.
This vector array creates X coordinates, which draws curves if I plot it which is differentiable.
I want to differentiate this, but don't know how to do it.
Really appreciate if someone lets me know.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 21 Nov 2019
Modifié(e) : KALYAN ACHARJYA le 21 Nov 2019
diff
data=rand(300,1);
result=diff(data)

6 commentaires

OYH
OYH le 21 Nov 2019
I'm afraid it doesn't work that way. I've tried that way, but didn't work.
KALYAN ACHARJYA
KALYAN ACHARJYA le 21 Nov 2019
Modifié(e) : KALYAN ACHARJYA le 21 Nov 2019
Can you share the column vector or any sample data?
12.png
OYH
OYH le 21 Nov 2019
Screen Shot 2019-11-21 at 10.50.00.pngThis is the column vector
OYH
OYH le 21 Nov 2019
Screen Shot 2019-11-21 at 10.50.20.png
And this is the plot of that
please share the following from command window
>>whos column_vector_name
OYH
OYH le 22 Nov 2019
I finally solved problem, thanks for help

Connectez-vous pour commenter.

Catégories

Question posée :

OYH
le 21 Nov 2019

Commenté :

OYH
le 22 Nov 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by