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:
RickRolling in MATLAB

Subject: RickRolling in MATLAB

From: Stuart

Date: 26 Oct, 2010 11:12:04

Message: 1 of 5

this is real random, but im doing a group assignment on aircraft in matlab and we have to simulate a barrel roll

I was wondering if any1 knows how to direct a function file or an mfile to rick astleys never gonna give you up on youtube, giving a rickroll instead

if the target link is this
http://www.youtube.com/watch?v=EK2tWVj6lXw
dont click it unless u really want to, i just need it to open that

Subject: RickRolling in MATLAB

From: Svetoslav Bajlekov

Date: 26 Oct, 2010 11:41:03

Message: 2 of 5

Haha you just made my day!
I believe the command you're looking for is
web http://www.youtube.com/watch?v=EK2tWVj6lXw
(not positive that it will work inside a function though)

Incidentally, the music won't stop playing even after I closed the window...and Matlab has started throwing up Java heap space exceptions..

Svet

"Stuart " <imanotarat@gmail.com> wrote in message <ia6d24$801$1@fred.mathworks.com>...
> this is real random, but im doing a group assignment on aircraft in matlab and we have to simulate a barrel roll
>
> I was wondering if any1 knows how to direct a function file or an mfile to rick astleys never gonna give you up on youtube, giving a rickroll instead
>
> if the target link is this
> http://www.youtube.com/watch?v=EK2tWVj6lXw
> dont click it unless u really want to, i just need it to open that

Subject: RickRolling in MATLAB

From: Stuart

Date: 26 Oct, 2010 13:09:04

Message: 3 of 5

haha thanks. i just tried it on my mac and it said i need shockwave or something. hopefully it will get the others.



"Svetoslav Bajlekov" <tomatoman@gmail.com> wrote in message <ia6eof$nbe$1@fred.mathworks.com>...
> Haha you just made my day!
> I believe the command you're looking for is
> web http://www.youtube.com/watch?v=EK2tWVj6lXw
> (not positive that it will work inside a function though)
>
> Incidentally, the music won't stop playing even after I closed the window...and Matlab has started throwing up Java heap space exceptions..
>
> Svet
>
> "Stuart " <imanotarat@gmail.com> wrote in message <ia6d24$801$1@fred.mathworks.com>...
> > this is real random, but im doing a group assignment on aircraft in matlab and we have to simulate a barrel roll
> >
> > I was wondering if any1 knows how to direct a function file or an mfile to rick astleys never gonna give you up on youtube, giving a rickroll instead
> >
> > if the target link is this
> > http://www.youtube.com/watch?v=EK2tWVj6lXw
> > dont click it unless u really want to, i just need it to open that

Subject: RickRolling in MATLAB

From: Sean

Date: 26 Oct, 2010 14:50:06

Message: 4 of 5

"Stuart " <imanotarat@gmail.com> wrote in message <ia6jtg$i09$1@fred.mathworks.com>...
> haha thanks. i just tried it on my mac and it said i need shockwave or something. hopefully it will get the others.
>
>
>
> "Svetoslav Bajlekov" <tomatoman@gmail.com> wrote in message <ia6eof$nbe$1@fred.mathworks.com>...
> > Haha you just made my day!
> > I believe the command you're looking for is
> > web http://www.youtube.com/watch?v=EK2tWVj6lXw
> > (not positive that it will work inside a function though)
> >
> > Incidentally, the music won't stop playing even after I closed the window...and Matlab has started throwing up Java heap space exceptions..
> >
> > Svet
> >
> > "Stuart " <imanotarat@gmail.com> wrote in message <ia6d24$801$1@fred.mathworks.com>...
> > > this is real random, but im doing a group assignment on aircraft in matlab and we have to simulate a barrel roll
> > >
> > > I was wondering if any1 knows how to direct a function file or an mfile to rick astleys never gonna give you up on youtube, giving a rickroll instead
> > >
> > > if the target link is this
> > > http://www.youtube.com/watch?v=EK2tWVj6lXw
> > > dont click it unless u really want to, i just need it to open that

I think you want to force it to a browser:
web('http://www.youtube.com/watch?v=EK2tWVj6lXw','-browser')

However, when I did this it said I couldn't view that video from this country (USA).

Subject: RickRolling in MATLAB

From: Matthew Simoneau

Date: 27 Oct, 2010 15:03:04

Message: 5 of 5

Run this code to get your answer:

x1 = [119 101 98 40 39 104 116 116 112 58 47 47 119 119 119];
x2 = [ 46 121 111 117 116 117 98 101 46 99 111 109 47 119 97];
x3 = [116 99 104 63 118 61 100 81 119 52 119 57 87 103 88];
x4 = [ 99 81 39 44 39 45 98 114 111 119 115 101 114 39 41];
eval(char([x1 x2 x3 x4]))

(This one is pretty basic, but you get the idea.)

Tags for 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