File Exchange

image thumbnail

Convert inline to symbolic

version (1.74 KB) by Héctor Corte
Convert an inline function into symbolic so you can use symbolic operators like diff() or jacobian()


Updated 26 Sep 2011

View License

This program converts an inline expression into a symbolic expression, so you can use it on many Matlab operators that inline expression dosen't

fi=an inline function made with different names for each variable

f0=the same function fi, but converted into a symbolic function

Create an inline object that can't be simbolic differenciated
Now the expresion can be differenciated
syms x;diff(f0,x)

Comments and Ratings (3)

Sorry for the delay in the comment. Just in case anybody reads it. I check it back in may 2012 and everything worked fine. And I checked again now on a completely different Matlab version and it also works. Remember that you can only use inline functions as inputs inline2sym.

You Know? But it doesn't work, Has some error In line 35.

You made it easy,Thank you!

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

Inspired: mmDerivative(t,y)

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor