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

1 次查看(过去 30 天)
f=@(x) x-3;
r=solve(f)
Check for incorrect argument data type or missing argument in call to function 'solve'.

回答(1 个)

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by