Comments (4)
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.
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.
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.
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)
- stdout not returned if stderr is populated by matlab
- 32 bit Matlab Messenger File not a valid Win32 application HOT 3
- Floating figures don't work on Windows HOT 2
- Unable to add folder using `addpath` HOT 1
- Python stalls and throws a Java exception whenever plotting functions are called. HOT 12
- Cannot use plot() on MacOS & Matlab R2016b HOT 3
- Cannot specify location of matlab executable HOT 3
- pymatbridge returns unwritable array
- Install fails on Windows Python 3.6
- Silent crash when passing numpy array into mlab.run_func HOT 1
- gmake install
- Errors with Pymatbridge HOT 2
- Pymatbridge starting but exhibiting weird behavior HOT 1
- Error pymatbridge: 'numpy.ndarray' object has no attribute 'todok' HOT 1
- Matlab function not responding after certain times of calls. HOT 6
- using run_func() to run a function in .m file,, my octave code can't access any session variables HOT 1
- OS X Sierra: Can't make the magic commands work HOT 8
- Make implicit non-blocking calls explicitly blocking
- macOS Monterey: Undefined function pops up when a python string is inserted as an argument. HOT 3
- Add dependencies to setup.py HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-matlab-bridge.