Home > Net >  C # call Matlab initialization exception
C # call Matlab initialization exception

Time:11-05

CodePudding user response:

Array is a what kind? A double array?
(MWNumericArray) array, a try?

CodePudding user response:

Double [and] array=
{
{58.14723686, 49.89113392, 8.174670407, 27.57452397, 7.764718492, 1.326802526, 84.73446972, 20.93763038, 7.936260253, 0.968399682},
{51.57613082, 52.0295618, 28.92917371, 15.59051816, 8.100560938, 1.38445224, 87.1699418, 28.3147105, 7.688310994, 0.963543184},
{56.55740699, 21.17848539, 26.22823265, 28.15181094, 7.85747031, 2.18506217, 92.63325196, 17.84454039, 7.483216835, 0.254068019},
{57.06046088, 21.05048393, 11.92307462, 3.292798938, 6.694263562, 2.270495177, 91.81208659, 16.3419896, 7.925333073, 0.131001472},
{54.3874436, 32.59142908, 24.1379197, 24.26559723, 6.873745209, 1.836693715, 87.57496541, 22.9262602, 7.564047246, 0.779218014},
{52.76025077, 42.43018834, 21.3774501, 6.553128585, 6.737995363, 1.847873268, 96.31564729, 16.80771453, 7.377901626, 0.301430746},
{57.51267059, 28.41813881, 17.64892629, 21.57414823, 8.281806505, 2.447078853, 89.30266401, 12.77248886, 6.723941008, 0.331757429},
{58.40717256, 28.39131191, 25.35712065, 8.818699124, 8.358527246, 1.654978896, 83.34211926, 15.02167716, 7.424067014, 0.525959964},
{53.51659507, 47.41734472, 19.63160228, 17.39226103, 8.334387328, 1.571590724, 92.87240389, 25.07458189, 7.07066877, 0.611039477},
{50.7585429, 21.78035392, 18.26993883, 23.81668244, 8.368021368, 1.368878071, 89.67000223, 19.38781282, 6.517853104, 0.40341038},
{51.62182308, 46.21138984, 12.78037605, 16.79892779, 6.831297459, 1.982576524, 84.47051184, 23.08158197, 7.533821755, 0.773336434},
{54.50541599, 22.76610547, 10.72442422, 27.57344612, 6.804756038, 2.273562071, 89.1518214, 29.92269433, 6.617263293, 0.498410443}

};

CodePudding user response:

Casting tried?

MWNumericArray data=https://bbs.csdn.net/topics/array; Actually,

CodePudding user response:

As well as confirm the VS and MCR version,

CodePudding user response:

Vs is 2012, Matlab is 2014 a

CodePudding user response:

https://ww2.mathworks.cn/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2014b_SupportedCompilers.pdf, looked at it and should be support net4.0 VS2012, to reconfirm, Complier DLL and VS platform are x64?

CodePudding user response:

Yes, are X64
  •  Tags:  
  • C#
  • Related