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

조회 수: 1 (최근 30일)
Mallouli Marwa
Mallouli Marwa 2018년 6월 27일
댓글: Mallouli Marwa 2018년 6월 28일
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
Jan
Jan 2018년 6월 27일
What exactly is the problem? Importing the file, extracting the 2nd column or using gradient twice?
Mallouli Marwa
Mallouli Marwa 2018년 6월 27일
Yes Importing the file, extracting the 2nd column and calculating
gradient twice of this column

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2018년 6월 28일
gradient(gradient(data(:,2)));

추가 답변 (1개)

Mark Saad
Mark Saad 2018년 6월 27일
편집: Mark Saad 2018년 6월 27일
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
Mallouli Marwa
Mallouli Marwa 2018년 6월 28일
Then how can I calculate the gradient twice of this column ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by