What does "@" do ?
显示 更早的评论
So this is a simple question. I found some code that uses "@" and I looked it up in the matlab documentation, but I did not find it to be really helpfull. Can somebody explain to me what it does and when/how I want to use it ?
采纳的回答
更多回答(1 个)
its function handle
func = @(x) x*2+10
func(5)
3 个评论
Walter Roberson
2023-10-6
Amir Azadeh Ranjbar
2023-10-7
Well, this answer that was given (6 years ago) is more confusing....
Dyuman Joshi
2023-10-7
What makes you think it is confusing? (let alone more confusing)
And your answer does not mention important details that the accepted answer provides.
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Identification 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!