How to perform partial differentiation of a 480x640 matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a matrix with 480 rows and 640 columns. The matrix just contains numbers. How do I perform partial differentiation with respect to x and partial differentiation with respect to y on this matrix?
I am using Matlab 2015b.
Any help would be greatly appreciated
0 件のコメント
回答 (1 件)
Star Strider
2016 年 2 月 8 日
I would use the gradient function. It will do what you want. It assumes a constant ‘step’ in each direction, and you can specify that step for each direction.
2 件のコメント
Guillaume
2016 年 2 月 9 日
Type
doc gradient
at matlab command prompt to see the documentation and see that it returns both partial differentials at once.
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!