Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running java code in Matlab

1 view
Skip to first unread message

Animesh Pandey

unread,
Feb 15, 2011, 8:54:04 AM2/15/11
to
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

Q1. How do I run this 'Hello World' program on Matlab ? Please help !!

Q2. Is it possible to know the actual coding behind the functions in Matlab ?


Thank you !

Steven_Lord

unread,
Feb 15, 2011, 9:08:21 AM2/15/11
to

"Animesh Pandey" <apanim...@gmail.com> wrote in message
news:ije0hs$s5b$1...@fred.mathworks.com...


> class HelloWorld { public static void main(String[] args) {
> System.out.println("Hello World!"); } }
> Q1. How do I run this 'Hello World' program on Matlab ? Please help !!

http://www.mathworks.com/help/techdoc/matlab_external/f44062.html

> Q2. Is it possible to know the actual coding behind the functions in
> Matlab ?

It depends on the function. If the function is implemented as a MATLAB
function file (with the .m extension) or as a MEX-file for which we provide
the source code, yes. If not, no.

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Animesh Pandey

unread,
Feb 15, 2011, 12:31:05 PM2/15/11
to
> "Animesh Pandey" <apanim...@gmail.com> wrote in message
> news:ije0hs$s5b$1...@fred.mathworks.com...
> > class HelloWorld { public static void main(String[] args) {
> > System.out.println("Hello World!"); } }
> > Q1. How do I run this 'Hello World' program on Matlab ? Please help !!
>
> http://www.mathworks.com/help/techdoc/matlab_external/f44062.html
>
Thank you !!

> > Q2. Is it possible to know the actual coding behind the functions in
> > Matlab ?
>
> It depends on the function. If the function is implemented as a MATLAB
> function file (with the .m extension) or as a MEX-file for which we provide
> the source code, yes. If no
>
ohk .... I also mean the predefined functions !!
Like there is a function "wavread" which reads a .wav file.
If I want to the code behind it, is it possible ??

Steven_Lord

unread,
Feb 15, 2011, 2:35:38 PM2/15/11
to

"Animesh Pandey" <apanim...@gmail.com> wrote in message

news:ijed8p$ssg$1...@fred.mathworks.com...


>> "Animesh Pandey" <apanim...@gmail.com> wrote in message
>> news:ije0hs$s5b$1...@fred.mathworks.com...
>> > class HelloWorld { public static void main(String[] args) {
>> > System.out.println("Hello World!"); } }
>> > Q1. How do I run this 'Hello World' program on Matlab ? Please help !!
>>
>> http://www.mathworks.com/help/techdoc/matlab_external/f44062.html
>>
> Thank you !!
>> > Q2. Is it possible to know the actual coding behind the functions in
>> > Matlab ?
>>
>> It depends on the function. If the function is implemented as a MATLAB
>> function file (with the .m extension) or as a MEX-file for which we
>> provide the source code, yes. If no
>>
> ohk .... I also mean the predefined functions !!

As I said above, it depends on the particular function.

> Like there is a function "wavread" which reads a .wav file. If I want to
> the code behind it, is it possible ??

Try using EDIT to open the function. If it does, then it was implemented as
a MATLAB function file and you can read it.

edit wavread.m

0 new messages