Prev: 3D Plot of Probability Density Function (PDF) Over Time
Next: reshape and saving as .mat in C++
From: Edmund on 26 Mar 2010 15:07 Hi, I am trying to point to a location from an array as shown below: % x=1234 x1=sprintf('%d',x) z=x1(1) % z=1 z2=x1(2) %z2=2 z3=x1(3) %z3=3 z4=x1(4) %z4=4 When I do it in Matlab everything works correctly but when I try it in Simulink inside a function block the follow error is displayed: "Subscripting into an mxArray is not supported." why can't I locate the pointer in Simulink whereas in Matlab I can :S?? Is there any other way I can do this by using Simulink?? p.s I am using eml.extrinsic('sprintf') to enable the use of sprintf command in simulink. thanks Edmund
|
Pages: 1 Prev: 3D Plot of Probability Density Function (PDF) Over Time Next: reshape and saving as .mat in C++ |