matlab怎么自己定义一个没有表达式的函数f(x)

2025-04-15 09:26:29
推荐回答(1个)
回答1:

>> f=@(x)x+1;
>> f(2)
ans =
3
>> f(4)
ans =
5
>> f(100)
ans =
101