matlab_wrapper icon indicating copy to clipboard operation
matlab_wrapper copied to clipboard

how to read a detector or .m function from matlab?

Open kimiya66 opened this issue 5 years ago • 3 comments

As I could not find a clear documentation on funcation and method for matlab_wrapper. firstly I want to ask where can I find a tutorial or at leat list of functions for this library. I wonder what I could do with that exactly? secondly is this Eval method for reading a function from matlab or just arrays?what is the exact input argument for matlab.Eval()?? last question is if I want to read a function(.m file) from matlab which is working with a detector(struct array), what method matlab_wrapper offers here?

Thank you in advance,

kimiya66 avatar Jun 14 '19 09:06 kimiya66

As I could not find a clear documentation on funcation and method for matlab_wrapper.

The methods themselves are documented in docstrings.

firstly I want to ask where can I find a tutorial or at leat list of functions for this library. I wonder what I could do with that exactly?

You can start in README: https://github.com/mrkrd/matlab_wrapper#usage

And check out examples: https://github.com/mrkrd/matlab_wrapper/tree/master/examples

secondly is this Eval method for reading a function from matlab or just arrays?what is the exact input argument for matlab.Eval()??

Try help(matlab.eval)

last question is if I want to read a function(.m file) from matlab which is working with a detector(struct array), what method matlab_wrapper offers here?

I don't know what do you mean by "read a function".

mrkrd avatar Jun 14 '19 09:06 mrkrd

Thank you for your fast answer. now I made it and I could access to my matlab function. but the problem is when I write it to my python program after executing my python script I always got this error 'segmentation fault ' and program interrupted. Do you know what is this segfault happen when I try to bridge to matlab?(eg, by matlab.eval,...)

kimiya66 avatar Jun 14 '19 13:06 kimiya66

Thank you for your fast answer. now I made it and I could access to my matlab function. but the problem is when I write it to my python program after executing my python script I always got this error 'segmentation fault ' and program interrupted.

Do you know what is this segfault happen when I try to bridge to matlab?(eg, by matlab.eval,...)

I'm not able to help with the segmentation fault, because there are not enough details.

You might need to debug it by yourself.

You could start and see, if you were able to successfully run the example scripts with your setup?

https://github.com/mrkrd/matlab_wrapper/tree/master/examples

Marek

mrkrd avatar Jun 18 '19 12:06 mrkrd