How to use Javascript in matlab

There is a javascript which gives me color name based on rgb value.I need to use it in imageprocessing toolbox of matlab.How can i use this javascript in matlab,wherein i send the rgb values from matlab and recieve back the color name ?Here is the link to the script.

Respuestas (1)

the cyclist
the cyclist el 3 de Feb. de 2012

0 votos

There might be better ways, but you should be able to use the system() command. Here's an example of how I call some java code:
system('java -jar MINE.jar')
Make sure the command is in your path.
(I realize that java and javascript are not the same thing, but I think this method should work regardless.)

1 comentario

Nitin
Nitin el 5 de Feb. de 2012
Thanks for replying!,but i have not much experience in javascript and could not figure it out.I have begun writing my own matlab program using its algorithm

Iniciar sesión para comentar.

Categorías

Preguntada:

el 3 de Feb. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by