how can i see the inner code or inbuilt code in matlab? for the function imnoise
Mostrar comentarios más antiguos
i want 2 see the ineer code of the function I= imnoise(I,'salt & pepper',0.02); how can i see the inbuilt code? help me
Respuesta aceptada
Más respuestas (2)
Sean de Wolski
el 5 de Ag. de 2015
>> edit imnoise
4 comentarios
John D'Errico
el 5 de Ag. de 2015
Admitttedly, I tend to avoid edits, especially by novice users. Too dangerous that they will modify the code by accident. But edit will of course work.
Sean de Wolski
el 5 de Ag. de 2015
UAC usually prevents authoring these unless MATLAB is run in admin mode.
I personally need the color highlighting to discern what's going on.
Adarsh Pandey
el 5 de Ag. de 2015
Sean de Wolski
el 5 de Ag. de 2015
Yes, I can see it by reading the file that opens when I run the above command.
John D'Errico
el 5 de Ag. de 2015
Editada: John D'Errico
el 5 de Ag. de 2015
I don't have the image processing toolbox, so I cannot know which is the case, but the answer is still clear.
If imnoise is not a built-in function, then it will be an m-file. If it is an m-file, just do this at the command line:
type imnoise
If imnoise is compiled code, then there is nothing that you can do to see the code, except perhaps to get a job at the MathWorks.
Categorías
Más información sobre Image Filtering and Enhancement 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!