What does "@" do ?
Ältere Kommentare anzeigen
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 ?
Akzeptierte Antwort
Weitere Antworten (1)
its function handle
func = @(x) x*2+10
func(5)
3 Kommentare
Walter Roberson
am 6 Okt. 2023
Amir Azadeh Ranjbar
am 7 Okt. 2023
Well, this answer that was given (6 years ago) is more confusing....
Dyuman Joshi
am 7 Okt. 2023
What makes you think it is confusing? (let alone more confusing)
And your answer does not mention important details that the accepted answer provides.
Kategorien
Mehr zu Data Type Identification finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!