File Exchange

image thumbnail


version (5.98 KB) by Matthew Kelly
Computes gradient of f(x) = A(x) \ b(x). Used for optimization.

1 Download

Updated 21 Feb 2016

From GitHub

View Version History

View license on GitHub

Suppose that you have a function:
f(x) = A(x)\b(x)
You know the gradients of A and b with respect to x, but how to compute the gradient of f with respect to x?
This collection of files shows one way to solve this problem, while still vectorizing most of the calcualtion. This techinque is particularily useful for fast optimization of complicated systems.
The key file is computeGradientOfBackSlash.m, and the other files show how to use it.

Cite As

Matthew Kelly (2021). Gradient_of_Backslash (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!