First time using MATLAB,and I need help.
Mostrar comentarios más antiguos
Hi there.The lecturer told us to do a math assignment using Matlab,but unfortunately I haze zero knowledge about coding/script.
I tried following youtube tutorial but it seems like my coding doesn't seem to work....
Here's my question ( its number 3)

What code do I have to use? Can you give me an example please :)
2 comentarios
Azzi Abdelmalek
el 8 de Ag. de 2016
It seems to be a homework. What have you done so far?
James Rambo
el 9 de Ag. de 2016
Respuestas (3)
Sean de Wolski
el 8 de Ag. de 2016
You can create an anonymous function like this (e.g. f = x.^2):
f = @(x)x.^2
And evaluate it at a specific point (e.g. 3) with:
f(3)
See this for more information. One of the best things about MATLAB is the documentation, I encourage you to look there first.
Star Strider
el 9 de Ag. de 2016
0 votos
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!