kail85

30 Reputation

2 Badges

12 years, 324 days

MaplePrimes Activity


These are questions asked by kail85

In matlab, a function is returned a structure H, say H.a, H.b, ...

In maple, I want to call this matlab function, but what returned to maple is a Record:

 

Hs:= getvar("H");

Hs:= Record(a=..., b=..., ...);

 

So how can I convert this record to a normal maple array? so I can access to each element by Hs[1]. 

 

Thank you

Kyle

> f := a+D(x); 

> convert(f(t), diff);

 

Is there a way to tell Maple that "a" is a constant, so (t) won't attach to a? thanks, kyle

Hi there, I'm trying to pass some calculation to Matlab then retrive the result by getvar(), but seems something is getting wrong.

my matlab function is very simple:

 

function out =maple_fun(a, b)

out = a + b;

return

 

this function is saved as maple_fun.m.

 

in Maple,

restart:
with(Matlab):
openlink():
DirectoryLocation := " cd  '/Users/Kyle/Documents/MATLAB/'  ":

1 2 Page 2 of 2