There is any function displacement
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
This array
I want find differential between the numbers then, i want find displacement
and thank u
0 comentarios
Respuestas (1)
Joseph Cheng
el 17 de Mayo de 2015
Editada: Joseph Cheng
el 17 de Mayo de 2015
you can use the function diff() to perform this differential. so you'll have something like
da = diff(a); %this will get your your [4 5 ...]
then you can perform your da./a(1:end-1)*100.
7 comentarios
Joseph Cheng
el 19 de Mayo de 2015
da = diff(a,[],2)./a read the documentation of the function diff() to see that by performing diff(a,[],2) we perform it in the correct dimension.
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!