Passing an array into a function
Mostrar comentarios más antiguos
Let x=[0.7840 0.0005 0.0817 0.5732] .When this array is given in a function as p1= Im_opt(p, x(1), x(2), x(3), x(4)), I get the result as -0.0023 but when I pass the array directly into the function as p1=Im_opt(p, 0.7840, 0.0005, 0.5732), I am getting the result as 0.0033. Why I am getting different value for the same array? Please anyone help me with this.
3 comentarios
Stephan
el 27 de En. de 2019
Editada: madhan ravi
el 27 de En. de 2019
Im_opt appears to be not a built in function. Can you provide it or a link to its documentation?
Rajashree Annapillai
el 27 de En. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Arithmetic 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!