You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The function "mysym.m" allows an easy definition of a n x m symbolic vectorial function of k variables.
Example: u=mysym('u',[2,1],[x,y])
The function "mygradient.m" allows an easy computation of the gradient.
Example: grad_u=mygradient(u,[x,y])
The function "mydivergence.m" allows an easy computation of the divergence.
Example: div_u=mydivergence(u,[x,y])
(x and y must be defined as symbolic variables)
The Live Script "examples.mlx" presents a series of useful examples.
If you like the functions, please give feedback.
Cite As
Andrea La Spina (2026). Symbolic function, gradient and divergence (https://www.mathworks.com/matlabcentral/fileexchange/74251-symbolic-function-gradient-and-divergence), MATLAB Central File Exchange. Retrieved .
General Information
- Version 2.1 (80 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 2.1 | . |
|
|
| 1.1 | . |
|
|
| 1.0.3 | . |
|
|
| 1.0.2 | . |
|
|
| 1.0.1 | . |
|
|
| 1.0.0 |
|
