How can I display the second derive of a vector ,?
1 回表示 (過去 30 日間)
古いコメントを表示
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
2018 年 6 月 27 日
What exactly is the problem? Importing the file, extracting the 2nd column or using gradient twice?
採用された回答
その他の回答 (1 件)
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);
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!