Risposto

`parfor` doesn't seem to work with Python lists

If you are using a |parpool|, then |parfor| needs to save and load the Python list. Saving (serializing) Python objects into a M...

`parfor` doesn't seem to work with Python lists

If you are using a |parpool|, then |parfor| needs to save and load the Python list. Saving (serializing) Python objects into a M...

quasi 7 anni fa | 1

| accettato

Risposto

A simple python script testmodel.py which is written response=raw_input(), but It can not be called successfully in Matlab

There are two parts to my answer: 1) When you see the error "Undefined variable 'py' or class 'py.testmodel.response'", call ...

A simple python script testmodel.py which is written response=raw_input(), but It can not be called successfully in Matlab

There are two parts to my answer: 1) When you see the error "Undefined variable 'py' or class 'py.testmodel.response'", call ...

quasi 7 anni fa | 1

Risposto

Matlab 2016a crashed by calling python function

Is there a file "pyvenv.cfg" in either of the following locations? * c:\users\<username>\appdata\local\enthought\canopy\user\...

Matlab 2016a crashed by calling python function

Is there a file "pyvenv.cfg" in either of the following locations? * c:\users\<username>\appdata\local\enthought\canopy\user\...

quasi 7 anni fa | 0

Risposto

when I run a python module which imports ssl.py , error occurs . but it's ok to run the straight python.

Your issue looks like a library conflict with MATLAB's version of libssl, based on the part of the error message that says, "Exp...

when I run a python module which imports ssl.py , error occurs . but it's ok to run the straight python.

Your issue looks like a library conflict with MATLAB's version of libssl, based on the part of the error message that says, "Exp...

circa 7 anni fa | 0

| accettato

Risposto

Python is not loaded for an engine mode MATLAB session

Does this help? import sys eng.pyversion(sys.executable, nargout=0)

Python is not loaded for an engine mode MATLAB session

Does this help? import sys eng.pyversion(sys.executable, nargout=0)

oltre 7 anni fa | 1

| accettato

Risposto

.Net Object not displaying properties or methods

Based on the result of |color.Classes|, the class name is |EvolutionMaps.ColorMap|. The correct way to call properties is, ...

.Net Object not displaying properties or methods

Based on the result of |color.Classes|, the class name is |EvolutionMaps.ColorMap|. The correct way to call properties is, ...

oltre 7 anni fa | 0

Risposto

How to pass the variables from matlab workspace to python function, and run this python function in matlab

>> mod = py.importlib.import_module('f'); >> py.setattr(mod, 'x', 1); >> py.setattr(mod, 'y', 2); >> py.f.f an...

How to pass the variables from matlab workspace to python function, and run this python function in matlab

>> mod = py.importlib.import_module('f'); >> py.setattr(mod, 'x', 1); >> py.setattr(mod, 'y', 2); >> py.f.f an...

oltre 7 anni fa | 0

| accettato

Risposto

Python language in Matlab "No appropriate method, property, or field"

What type of attribute is 'GetFromStudyCase'? Is it an instance method, static method, etc? One way to check is to look at the d...

Python language in Matlab "No appropriate method, property, or field"

What type of attribute is 'GetFromStudyCase'? Is it an instance method, static method, etc? One way to check is to look at the d...

oltre 7 anni fa | 1

| accettato

Risposto

Matlab's python engine crashes minidom

matlab.engine uses libexpat.so shipped with MATLAB. It seems that the version shipped with MATLAB is an older version of the li...

Matlab's python engine crashes minidom

matlab.engine uses libexpat.so shipped with MATLAB. It seems that the version shipped with MATLAB is an older version of the li...

oltre 7 anni fa | 1

Risposto

Importing custom python module fails

Based on the stack trace, your issue looks like a library conflict with libhdf5.so. It seems like the libhdf5 that is in the sta...

Importing custom python module fails

Based on the stack trace, your issue looks like a library conflict with libhdf5.so. It seems like the libhdf5 that is in the sta...

oltre 7 anni fa | 2

| accettato

Risposto

How to save numerical data into excel from Google maps API run in MATLAB.

Use webread instead of urlread. It will parse the JSON response for you. Then, you can gather the distance and duration data t...

How to save numerical data into excel from Google maps API run in MATLAB.

Use webread instead of urlread. It will parse the JSON response for you. Then, you can gather the distance and duration data t...

oltre 7 anni fa | 2

| accettato

Risposto

error output from python matlab engine

You could get the last uncaught exception [1] and then call getReport [2] to get the error message for that exception. Exampl...

error output from python matlab engine

You could get the last uncaught exception [1] and then call getReport [2] to get the error message for that exception. Exampl...

oltre 7 anni fa | 0

Risposto

why do I receive an empty document [#document: null] when I read a xml file with xmlread?

I'm not sure why you think that you received an empty document. The display that you are seeing, [#document: null], consists ...

why do I receive an empty document [#document: null] when I read a xml file with xmlread?

I'm not sure why you think that you received an empty document. The display that you are seeing, [#document: null], consists ...

quasi 8 anni fa | 13

| accettato

Risposto

How i can add a List to the JSON POST request with webwrite (required for RESTful interface of Neo4j)

To create a JSON Array, you should use a cell array. However, you should be careful when passing a |cell array| as a value input...

How i can add a List to the JSON POST request with webwrite (required for RESTful interface of Neo4j)

To create a JSON Array, you should use a cell array. However, you should be careful when passing a |cell array| as a value input...

quasi 8 anni fa | 0

| accettato

Risposto

Webwrite not encoding JSON the way I want

>> options = weboptions('MediaType','application/json','RequestMethod','post'); >> data.type='Polygon'; >> data.coordina...

Webwrite not encoding JSON the way I want

>> options = weboptions('MediaType','application/json','RequestMethod','post'); >> data.type='Polygon'; >> data.coordina...

quasi 8 anni fa | 0

| accettato

Risposto

I want to be able to retreive data from an actxserver API

It looks like |APIGetExtract| is not the correct name of the method. You should see the documentation about getting method infor...

I want to be able to retreive data from an actxserver API

It looks like |APIGetExtract| is not the correct name of the method. You should see the documentation about getting method infor...

quasi 8 anni fa | 0

| accettato

Risposto

Python in Matlab: accessing list of lists

"Python Objects: Indexing Support" is listed in the R2015a release notes [1]. Which version of MATLAB are you using? In the a...

Python in Matlab: accessing list of lists

"Python Objects: Indexing Support" is listed in the R2015a release notes [1]. Which version of MATLAB are you using? In the a...

quasi 8 anni fa | 0

| accettato

Risposto

How can I read a text file into a list?

You can read into a cell array: >> data = fileread('file_name'); >> x = strsplit(data); >> x{1} ans = A...

How can I read a text file into a list?

You can read into a cell array: >> data = fileread('file_name'); >> x = strsplit(data); >> x{1} ans = A...

quasi 8 anni fa | 3

| accettato

Risposto

Downloading Data off a URL and specifying what portion of the URL to save.

As Tim Jackman correctly pointed out, webread is designed for RESTful web services. Consuming an API provided by a web service w...

Downloading Data off a URL and specifying what portion of the URL to save.

As Tim Jackman correctly pointed out, webread is designed for RESTful web services. Consuming an API provided by a web service w...

quasi 8 anni fa | 0

Risposto

Using MATLAB python engine and returning multiple matrices

Use the |nargout| keyword argument [1]. R, P = eng.corrcoef(rndArray, nargout=2) [1] <http://www.mathworks.com/help/matl...

Using MATLAB python engine and returning multiple matrices

Use the |nargout| keyword argument [1]. R, P = eng.corrcoef(rndArray, nargout=2) [1] <http://www.mathworks.com/help/matl...

quasi 8 anni fa | 2

| accettato

Risposto

python list extension with scalars

You could pass a cell array. a_py = py.list(num2cell(a))

python list extension with scalars

You could pass a cell array. a_py = py.list(num2cell(a))

quasi 8 anni fa | 1

| accettato

Risposto

Matlab won't run python

If pyversion returns |''|, then MATLAB doesn't know where to find your Python installation. You should call pyversion with the p...

Matlab won't run python

If pyversion returns |''|, then MATLAB doesn't know where to find your Python installation. You should call pyversion with the p...

circa 8 anni fa | 2

Risolto

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 8 anni fa

Risposto

JSON vs. XML using webread()

The JSON text received from the web service contains the UTF-8 byte order mark (BOM), ï»¿, at the beginning [1]. The BOM is caus...

JSON vs. XML using webread()

The JSON text received from the web service contains the UTF-8 byte order mark (BOM), ï»¿, at the beginning [1]. The BOM is caus...

circa 8 anni fa | 3

| accettato

Risposto

How to make a script return an output argument in python?

Scripts do not return output arguments, but they do store results in variables in the base workspace [1]. You can access the MAT...

How to make a script return an output argument in python?

Scripts do not return output arguments, but they do store results in variables in the base workspace [1]. You can access the MAT...

circa 8 anni fa | 4

| accettato

Risposto

error while executing py.textwrap.wrap(T)

Are you using 64-bit MATLAB? If so, did you check if both MATLAB and Python are 64-bit?

error while executing py.textwrap.wrap(T)

Are you using 64-bit MATLAB? If so, did you check if both MATLAB and Python are 64-bit?

circa 8 anni fa | 0

Risposto

Error when calling python module from MATLAB

Did you do anything to change MATLAB's search path? To solve this problem you need to make sure the MATLAB package |python.in...

Error when calling python module from MATLAB

Did you do anything to change MATLAB's search path? To solve this problem you need to make sure the MATLAB package |python.in...

circa 8 anni fa | 0

| accettato

Risposto

Python and MATLAB in the socket

Example Connect to Python echo server from MATLAB. The echo server code is given as an example in the Python socket documenta...

Python and MATLAB in the socket

Example Connect to Python echo server from MATLAB. The echo server code is given as an example in the Python socket documenta...

oltre 8 anni fa | 1

Risposto

Calling third-party Python modules installed with homebrew from Matlab?

Use the import_module function from importlib when you want more information about an import failure. If import fails, then you ...

Calling third-party Python modules installed with homebrew from Matlab?

Use the import_module function from importlib when you want more information about an import failure. If import fails, then you ...

oltre 8 anni fa | 0

| accettato

Risposto

engSetVisible when starting Matlab Engine from Python

According to the documentation, you can start matlab with the "-desktop" startup option. See the "Start Engine with Startup Opti...

engSetVisible when starting Matlab Engine from Python

According to the documentation, you can start matlab with the "-desktop" startup option. See the "Start Engine with Startup Opti...

oltre 8 anni fa | 0

| accettato