How do I evaluate matrix function in symbolic format as follows?

1 view (last 30 days)
h_matrix = @(x)(x*pascal(3));
sym_matrix = sym(h_matrix)
When I use
sym_matrix(2)
I got an error. My question is how can I evaluate symbolic function as a regular function handle (h_matrix(2))?

Answers (0)

Community Treasure Hunt

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

Start Hunting!