# Getting Started Guide. PART II: Installation

**URL:** <https://community.plotly.com/t/getting-started-guide-part-ii-installation/56619>\
**Category:** Plotly for MATLAB®\
**Created:** [September 14, 2021, 5:23pm UTC](https://community.plotly.com/t/getting-started-guide-part-ii-installation/56619 "2021-09-14T17:23:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilbertogalvis](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/gilbertogalvis/32/16377_2.png) [@gilbertogalvis](https://community.plotly.com/u/gilbertogalvis)\
**Post date:** [September 14, 2021, 5:23pm UTC](https://community.plotly.com/t/getting-started-guide-part-ii-installation/56619/1 "2021-09-14T17:23:50Z")

</div>

## Installing Plotly Graphing Library for MATLAB® …

Once the library is downloaded, we proceed to open our MATLAB. Then, in the MATLAB command window please go to the library folder resulting from the download. In my case it would be something like this

 ![matlab_folder](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/2/5/2589c6dfbe2ec94c1c39451b9b08a575fe131974.png)

So, to install you only need to run one of the following files (which are indicated in the previous image): 1) `plotlysetup_offline.m` (preferably) or 2) `plotlysetup_online.m`. To do this, you just need to run the following line in the MATLAB command window

`plotlysetup_offline('https://cdn.plot.ly/plotly-latest.min.js')`

After executing the previous line, the following should appear

 ![Screen Shot 2021-09-14 at 1.09.19 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/4/c/4c9c994af0855890e9b5c58c743a977cf596dfbd.png)

With all this we are ready to start using the power of the Plotly Graphing Library for MATLAB® 😃

To do a quick first test, please run the following MATLAB code:

```auto
r = @(s,t) 2 + sin(7.*s + 5.*t);
x = @(s,t) r(s,t).*cos(s).*sin(t);
y = @(s,t) r(s,t).*sin(s).*sin(t);
z = @(s,t) r(s,t).*cos(t);
fmesh(x,y,z,[0 2*pi 0 pi]);

f = fig2plotly(gcf, 'offline', 1);

```

With which the following charts will be created

 ![Screen Shot 2021-09-14 at 1.14.28 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/4/0/401f52133618e71a796cd36dcd15acf0a68df9b3.jpeg)

On the right you can see the chart generated by MATLAB. On the left you can see the rich chart created by Plotly 🕶. Beautiful, right! 😆

In future topics I will teach you how to use this powerful library in more detail. See you in the next topic ✌ 🙌

---

<div class="post-metadata">

**Author:** ![QuiteWine](https://avatars.discourse-cdn.com/v4/letter/q/7ba0ec/32.png) [@QuiteWine](https://community.plotly.com/u/QuiteWine)\
**Post date:** [September 13, 2023, 3:32pm UTC](https://community.plotly.com/t/getting-started-guide-part-ii-installation/56619/2 "2023-09-13T15:32:59Z")

</div>

Hello, thank you for this nice guide to install the toolbox in Matlab.  
I am currently stuck because i cannot install it properly. If I run plotlysetup\_offline, if fails to download the offline bundle…

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/9/f9e677245f264b50daa3664eb0dd3151215d20eb.png)

Any idea what can it be? Since I am not admin of my machine, that may explain the block.  
Is there a way to install the packages manually?  
Thank you
