# Using plotly in MATLAB - ERROR: Could not POST to URL

**URL:** <https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362>\
**Category:** 📊 Plotly Python\
**Created:** [October 11, 2016, 1:08am UTC](https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362 "2016-10-11T01:08:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aybikeu](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@aybikeu](https://community.plotly.com/u/aybikeu)\
**Post date:** [October 11, 2016, 1:08am UTC](https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362/1 "2016-10-11T01:08:30Z")

</div>

Hello - I just started using plotly, initialized it in MATLAB however I get the following error when I try to convert the figures into plotly - fig2plotly( ). Thanks for all your help in advance!!

Error using urlreadwrite (line 59)  
Could not POST to URL.

Error in urlread (line 36)  
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});

Error in makecall (line 27)  
resp = urlread(url, ‘Post’, payload);

Error in plotly (line 28)  
response = makecall(args, origin, structargs);

Error in plotlyfig/plotly (line 432)  
response = plotly(obj.data, args);

Error in fig2plotly (line 49)  
p.plotly;

Error in ParetoGraph (line 95)  
fig2plotly()

---

<div class="post-metadata">

**Author:** ![anasri](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@anasri](https://community.plotly.com/u/anasri)\
**Post date:** [November 4, 2016, 4:11pm UTC](https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362/2 "2016-11-04T16:11:55Z")

</div>

I have the same problem! Have you fixed it?

---

<div class="post-metadata">

**Author:** ![aybikeu](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@aybikeu](https://community.plotly.com/u/aybikeu)\
**Post date:** [November 4, 2016, 11:26pm UTC](https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362/3 "2016-11-04T23:26:03Z")

</div>

I simply shrank my data set and I managed to get rid of this error. I don’t know if this is the only way though. I was trying to create a 3d-surface plot, and generating huge matrices when trying to map X-Y vectors into matrices. Basically, I started generating smaller matrices, and contine like that.

---

<div class="post-metadata">

**Author:** ![Beckah](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@Beckah](https://community.plotly.com/u/Beckah)\
**Post date:** [November 18, 2016, 8:39pm UTC](https://community.plotly.com/t/using-plotly-in-matlab-error-could-not-post-to-url/2362/4 "2016-11-18T20:39:55Z")

</div>

I have the same problem and it doesn’t matter how small my data set is. Can anyone help please??
