Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Running java code in Matlab

Subject: Running java code in Matlab

From: Animesh Pandey

Date: 15 Feb, 2011 13:54:04

Message: 1 of 4

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 !

Subject: Running java code in Matlab

From: Steven_Lord

Date: 15 Feb, 2011 14:08:21

Message: 2 of 4



"Animesh Pandey" <apanimesh061@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
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Running java code in Matlab

From: Animesh Pandey

Date: 15 Feb, 2011 17:31:05

Message: 3 of 4

> "Animesh Pandey" <apanimesh061@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 ??

Subject: Running java code in Matlab

From: Steven_Lord

Date: 15 Feb, 2011 19:35:38

Message: 4 of 4



"Animesh Pandey" <apanimesh061@gmail.com> wrote in message
news:ijed8p$ssg$1@fred.mathworks.com...
>> "Animesh Pandey" <apanimesh061@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

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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us