eval and inline function
4 次查看(过去 30 天)
显示 更早的评论
clc
clear all
close all
a=0;
b=2;
y=5;
x=1/2;
f3=inline('1/(sqrt(x^2+y^2)');
[f6]=eval(f2)
??? Undefined function or method 'eval' for input arguments of type 'inline'.
1 个评论
回答(1 个)
Fangjun Jiang
2019-11-27
f3=inline('1/(sqrt(x^2+y^2))');
x=1/2;
y=5;
f3(x,y)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!