why is this happening? It's just an example from the textbook.

1 view (last 30 days)
f=@(x) x-3;
r=solve(f)
Check for incorrect argument data type or missing argument in call to function 'solve'.

Answers (1)

Chunru
Chunru on 24 Sep 2021
syms x
f=@(x) x-3;
r=solve(f, x)
r = 
3

Tags

Community Treasure Hunt

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

Start Hunting!