Problem to run function in Wedge software

11 vues (au cours des 30 derniers jours)
Diego Barrientos Pereira
Diego Barrientos Pereira le 28 Juil 2020
I have a function in MATLAB and when executing it it works without problem, however, when implementing it in other Wedge software (software that uses data online from an industrial plant) it throws the following errors:
-undefined near line 1929 column5
-evaluate the assignment expression near line 1929, column 4
here is my function:
function out_nn=RCLO2D2L2_columnas(x1,x2,x3,x4,x5,x6)
IN_nn=[x1,x2,x3,x4,x5,x6];
xoffset = [85.02071381,85.59999847,0.360509604,3.405937672,2.477870941,52.17412949];
xG = [1.74097614199374,0.588235029411884,0.202140017432389,0.00733781648994796,0.442269880006284,0.0706914096393521];
b1 = [-1.2679976950869926711 1.4175930114394923454 0.1333223508498541654 1.7153664858860391274 1.2001409063199981464 2.0487515870533328233];
IW1= [0.66901484643027020471 -0.59156178465775044462 0.98482644684680709091 -0.26695238305821000768 0.11012015689544221719 0.45314917122107006842;0.73991874113325117879 0.16379061136768768847 -1.0347040638056015371 1.6439475219401309403 -0.10137082799678827361 1.2930520517065848818;-1.0028314708105143804 -2.9267243317172924044 0.023657408614881553222 -0.73342247684856376466 0.33838661217678733806 -0.066616973659351499948;0.25286327623039428492 -0.56385182136676392783 0.20842609731028108322 -0.45167073768772564302 -0.87616404722697305285 0.76189569704133486283;-1.6926741114491303808 -1.486412175947656289 0.16590492222733438377 -0.85978315052358789128 0.66784878780568879275 -0.16710398584424254742;0.52077598465839824993 -0.23533790384659228345 -1.1438030799686960126 -1.7876866851534241043 -2.0995261204737687422 1.0115099397049045482];
b2 = [-1.9211379283527416639 -1.8311686741440378334 -0.45690865595405383282 0.70288161564470297282 1.1421826428442838353 -2.0327256115541159076];
LW2 = [0.81410930236881129396 0.494353013442764333 -0.13463561369311519145 0.31771696944196664569 1.3489150088576886688 -1.0109774887824500844;-0.83265930760239970088 -1.0458794944695017914 0.2605546251133877278 1.4730945735490270643 0.93143122686947155131 -0.74178018156200153932;-0.38930254835759908749 -0.85942339491277830454 -0.85052695823678092779 -0.33331357490133123322 -1.2787569978477704158 0.12179159243698683968;0.59947271403082968977 -0.76476431431424241048 -0.56893174862821860316 -1.7739202280219421581 -0.31830575816515799259 0.580547144523223424;-1.0996839044065187529 -1.7017284031154671364 2.0059660889305086506 -1.1209185407003479096 1.1793201031698652415 0.16988455221557394181;0.83677680167481283124 0.32512021827973208721 -0.3371741496387927195 0.978260444356418013 -0.17890564415737025827 -0.91732049075870270016];
b3 = [-1.8730247110987228165 0.41466990790870500438 0.22107790092138221438 -0.84164300435486094631 -1.265930858811011861];
LW3 = [0.99326527274821319047 -0.17493126944075354512 0.92294198836553231757 0.029063537998724672806 -1.9240411406617883294;-0.28092434423203010985 1.445431819163831344 0.18606974693130529097 -1.0748983871584310013 -0.022597957798684873559;0.91407248532909068928 -0.54145040937992972019 -1.1898143169169905775 0.747178039957468898 0.40632997356527272848;0.18633182840752787746 -1.8991516505163237305 0.64856059780551411631 0.27610524140996722808 1.5076536888492435562;-0.93701666167395081253 1.3513356502544524584 -1.2041828034137800341 0.042458812268390058731 0.17944125654863407604;0.71306769861703878099 -0.16146780576276492658 -0.13571366091773778839 -1.2508042409633504111 -1.140497451243777105];
b4 = -0.038544102229554344508;
LW4 = [-0.68175707740298419068;-1.8431145921309326496;-1.0891474615726404185;-0.28645332712982995993;-1.8053652839819933629];
p=((IN_nn-xoffset).*xG)-1;
a1=2 ./ (1 + exp(-2*(p*IW1+b1))) - 1;
a2=2 ./ (1 + exp(-2*(a1*LW2+b2))) - 1;
a3=2 ./ (1 + exp(-2*(a2*LW3+b3))) - 1;
a4=2 ./ (1 + exp(-2*(a3*LW4+b4))) - 1;
a5=((a4+1)./16);
out_nn=a5;
What could be wrong?

Réponses (0)

Catégories

En savoir plus sur Control System Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by