How do I write x(t/2) using handle operator @
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hazel grace
il 30 Mag 2021
Risposto: Star Strider
il 30 Mag 2021
I have tried to create a function x(t/2) using handle like this:
x = @(t/2);
however, this gives an error. I can also not write it in terms of another variable like this
y = t/2; x = @(y);
since this also gives an error and says that t was not declared. I can not use syms to declare t since it is not allowed in the question. Can someone please help me with this?
2 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!