Community Profile

Contact

Top 10% contributor

Hi Etienne, I did something like this. I use the MODULE like posted above. SUBROUTINE MEXFUNCTION(NLHS, PLHS, NRHS, PRHS) ...

1970 views

Responded 2 years ago

Quite a long time I was looking for a solution to interrupt a mexFunction while execution by pressing CTRL+C. This is while I wr...

Posted 2 years ago

Did you check the dimensions of sg0?

accepted

0

Answered 2 years ago

Hi, Is it possible to display the arguments of a mexfunction while coding, like it displays the arguments after coding a '('...

0 Answers

Asked 2 years ago

As I wrote in the comment, I got the same error. After a step by step commenting out of code I found the error. I called the...

If I understand this correct, you want to solve an implicit system of differential equations, as for example de/dt is part of yo...

This is, what you coded: y(5)=sign(y(1)-y(2)-y(3))*dy(4) dy(2)=C1*dy(5)-D1*y(2)*dy(4) dy(3)=C2*dy(5)-D2*y(3)*dy(4) d...

next to y = zeros(5,1); you should also initiate dy = zeros(5,1); otherwise Matlab does not know of wich size dy is How d...

a(1,[1 2],:) = a(1,[2 1],:);