How can I display the second derive of a vector ,?

1 Ansicht (letzte 30 Tage)
Mallouli Marwa
Mallouli Marwa am 27 Jun. 2018
Kommentiert: Mallouli Marwa am 28 Jun. 2018
Hello
How can I display the second derive of a vector ?
Mention that I have this table and I want to obtain the second derive of the second column of the table.
Thanks
  2 Kommentare
Jan
Jan am 27 Jun. 2018
What exactly is the problem? Importing the file, extracting the 2nd column or using gradient twice?
Mallouli Marwa
Mallouli Marwa am 27 Jun. 2018
Yes Importing the file, extracting the 2nd column and calculating
gradient twice of this column

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 28 Jun. 2018
gradient(gradient(data(:,2)));

Weitere Antworten (1)

Mark Saad
Mark Saad am 27 Jun. 2018
Bearbeitet: Mark Saad am 27 Jun. 2018
You can first import it into MATLAB as an array using textread.
data = textread('essai_Al_but05_fixe_100Ohm.txt');
Then just access elements using data(i,j) where i is the row and j is the column. So if you want the second element in the third row, you do
data(3,2);
If you want the entire third row, you do
data(3,:);
Or if you want the entire second column,
data(:,2);
  1 Kommentar
Mallouli Marwa
Mallouli Marwa am 28 Jun. 2018
Then how can I calculate the gradient twice of this column ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by