- iter,eps: iter is number of iterations. eps stand for a small value. So your code runs either for 10 iterations or till the error goes less than given eps.
- x=-2:0.01:2: This will create a array x from -2 to +2 with a difference of 0.01
- plot(x,y1,'-b'): This will plot the values of array x wrt to array y1.
- err : This is error variable.
- at last >fprintf('%2.0f&10.4f%10.4f%10.4%f10.4f/n', result): this is to print the respective values on the screen i.e on command window.
what means this?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
CHAYUNG KIM
el 5 de Oct. de 2020
what means this?
- iter,eps
- x=-2:0.01:2
- plot(x,y1,'-b')
- err
- at last >fprintf('%2.0f&10.4f%10.4f%10.4%f10.4f/n', result);
0 comentarios
Respuesta aceptada
KSSV
el 5 de Oct. de 2020
Editada: KSSV
el 5 de Oct. de 2020
MATLAB is an easy language. You can check all those your self with out asking these simple questions.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!