Giter VIP home page Giter VIP logo

Comments (4)

arokem avatar arokem commented on May 16, 2024

Sorry for the delay in reply. The answer is yes.

For example, once you have started an instance of the bridge, the following should work:

mlab.run_code("a=1")
# More code doing something else
mlab.run_code("b=a+1") # This is what you meant, right?

from python-matlab-bridge.

crygiova avatar crygiova commented on May 16, 2024

Thank you! I found it out! But I cannot use it anyway because when I need
to use big matrices in MATLAB I have an error in the open_page method! I
have a badrequest error! I will explain you a bit so you can try to fix it!
I have to make a script that from python query MATLAB and ask to export
some information! If you try to send a request with run_code where inside
you call a MATLAB script that contains for example a plot with a pcolor
(rand(1000,1000)) you will have am error in open_page method! A bad request
even if the MATLAB continue and finish the execution of the script request!
After that the pymatbridge is not working and even if you try to connect
again in the same script it will not work properly! Hope to be useful!
On Jun 29, 2013 1:10 AM, "Ariel Rokem" [email protected] wrote:

Sorry for the delay in reply. The answer is yes.

For example, once you have started an instance of the bridge, the
following should work:

mlab.run_code("a=1")

More code doing something else

mlab.run_code("b=a+1") # This is what you meant, right?


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-20219400
.

from python-matlab-bridge.

arokem avatar arokem commented on May 16, 2024

Hmm - interesting. Would you mind posting a minimal example of all the code
you ran and caused this issue?

Thanks !

On Sat, Jun 29, 2013 at 6:12 PM, crygiova [email protected] wrote:

Thank you! I found it out! But I cannot use it anyway because when I need
to use big matrices in MATLAB I have an error in the open_page method! I
have a badrequest error! I will explain you a bit so you can try to fix
it!
I have to make a script that from python query MATLAB and ask to export
some information! If you try to send a request with run_code where inside
you call a MATLAB script that contains for example a plot with a pcolor
(rand(1000,1000)) you will have am error in open_page method! A bad
request
even if the MATLAB continue and finish the execution of the script
request!
After that the pymatbridge is not working and even if you try to connect
again in the same script it will not work properly! Hope to be useful!
On Jun 29, 2013 1:10 AM, "Ariel Rokem" [email protected] wrote:

Sorry for the delay in reply. The answer is yes.

For example, once you have started an instance of the bridge, the
following should work:

mlab.run_code("a=1")

More code doing something else

mlab.run_code("b=a+1") # This is what you meant, right?


Reply to this email directly or view it on GitHub<
https://github.com/arokem/python-matlab-bridge/issues/23#issuecomment-20219400>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-20225144
.

from python-matlab-bridge.

crygiova avatar crygiova commented on May 16, 2024

Hi

I made up an example that give me exactly the same error of my script.

If you can let me know some informations when you try it, it will be very
useful!

2013/7/1 Ariel Rokem [email protected]

Hmm - interesting. Would you mind posting a minimal example of all the
code
you ran and caused this issue?

Thanks !

On Sat, Jun 29, 2013 at 6:12 PM, crygiova [email protected]
wrote:

Thank you! I found it out! But I cannot use it anyway because when I
need
to use big matrices in MATLAB I have an error in the open_page method! I
have a badrequest error! I will explain you a bit so you can try to fix
it!
I have to make a script that from python query MATLAB and ask to export
some information! If you try to send a request with run_code where
inside
you call a MATLAB script that contains for example a plot with a pcolor
(rand(1000,1000)) you will have am error in open_page method! A bad
request
even if the MATLAB continue and finish the execution of the script
request!
After that the pymatbridge is not working and even if you try to connect
again in the same script it will not work properly! Hope to be useful!
On Jun 29, 2013 1:10 AM, "Ariel Rokem" [email protected]
wrote:

Sorry for the delay in reply. The answer is yes.

For example, once you have started an instance of the bridge, the
following should work:

mlab.run_code("a=1")

More code doing something else

mlab.run_code("b=a+1") # This is what you meant, right?


Reply to this email directly or view it on GitHub<

https://github.com/arokem/python-matlab-bridge/issues/23#issuecomment-20219400>

.


Reply to this email directly or view it on GitHub<
https://github.com/arokem/python-matlab-bridge/issues/23#issuecomment-20225144>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-20259423
.

from python-matlab-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.