how to apply a power function to all elements of matrix?
3 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix R, and I wish to apply a power function to all elements of that matrix. The coefficients of that function a,b,c are in an array [a b c].
I guess I can't use Polyval as its for polynomials. I wish I could use arrayfunc BUT, my a,b,c values change for my every matrix R (I have about 50 diff R matrices). So even if I did arrayfunc(defined_powerfunc,R) I don't get how I'll send the a,b,c values to it.
Please let me know how to solve this problem, thanks!
2 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!