有大神帮忙看看吗?
网上找的代码,在我的电脑下运行,总是出错,出错位置如下:
>> [py,mse] = svmpredict(Y_test,X_test,model);
Mean squared error = 0.0879962 (regression)
Squared correlation coefficient = 0.645314 (regression)
报错提示如下:
------------------------------------------------------------------------
Access violation detected at Fri Feb 07 13:22:55 2020
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: ATI Technologies Inc. Radeon(TM) RX 460 Graphics Version 4.5.13464 Compatibility Profile Context 21.19.409.256
Default Encoding : GBK
Deployed : false
Graphics card 1 : Advanced Micro Devices, Inc. ( 0x1002 ) Radeon(TM) RX 460 Graphics Version 21.19.409.256
Graphics card 2 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon R5 Graphics Version 21.19.409.256
Host Name : DESKTOP-E6HVKN9
MATLAB Architecture : win64
MATLAB Entitlement ID: Unknown
MATLAB Root : D:\Program Files\MATLAB\R2016b
MATLAB Version : 9.1.0.441655 (R2016b)
OpenGL : hardware
Operating System : Microsoft Windows 10 专业版
Processor ID : x86 Family 111 Model 101 Stepping 1, AuthenticAMD
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000038 RBX = 0000000000000031
RCX = 0000000000000000 RDX = 00000001003c4280
RSP = 00000000043f8ab8 RBP = 0000000000000031
RSI = 0000000107d58cd0 RDI = 0000000000000031
R8 = 0000000000000000 R9 = 0000000000008000
R10 = 0000000000000000 R11 = 00000000043f8a60
R12 = 00000000043fc320 R13 = 0000000000000002
R14 = 000000008cb40b30 R15 = 000000000f72f828
RIP = 000000018008a5c8 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x000000018008a5c8 D:\Program Files\MATLAB\R2016b\bin\win64\libmx.dll+00566728 mxGetPr+00000000
[ 1] 0x00007ff823c51a00 E:\论文_张莉\02_基于无人机多光谱遥感的大豆叶面积指数反演研究\01_test_svm\libsvm-new\svmpredict.mexw64+00006656
[ 2] 0x00007ff823c51cff E:\论文_张莉\02_基于无人机多光谱遥感的大豆叶面积指数反演研究\01_test_svm\libsvm-new\svmpredict.mexw64+00007423 mexFunction+00000543
[ 3] 0x00000000fc5fc5d1 D:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00116177 mexRunMexFile+00000129
[ 4] 0x00000000fc5fb2e2 D:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00111330 mexFeature_mexver+00001794
[ 5] 0x00000000fc5fa506 D:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00107782 mexUnlock+00020182
[ 6] 0x00000000163846de D:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00018142 Mfh_file::dispatch_fh_impl+00000434
[ 7] 0x00000000163844b6 D:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00017590 Mfh_file::dispatch_fh+00000062
[ 8] 0x0000000016385827 D:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00022567 Mfunction_handle::dispatch+00001015
[ 9] 0x0000000016648c29 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00887849 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00798773
[ 10] 0x000000001665728f D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00946831 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00857755
[ 11] 0x0000000016657b75 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00949109 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00860033
[ 12] 0x0000000016659151 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00954705 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00865629
[ 13] 0x0000000016659c95 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00957589 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00868513
[ 14] 0x000000001665932f D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00955183 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00866107
[ 15] 0x000000001665940d D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00955405 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00866329
[ 16] 0x0000000016648041 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00884801 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00795725
[ 17] 0x00000000165c9eab D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00368299 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00279223
[ 18] 0x00000000165c9740 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00366400 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00277324
[ 19] 0x00000000165c3f8f D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00343951 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00254875
[ 20] 0x00000000165c3aa1 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00342689 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00253613
[ 21] 0x00000000165c3991 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00342417 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00253341
[ 22] 0x00000000167503e9 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+01967081 boost::serialization::singleton<boost::archive::detail::oserializer<boost::archive::polymorphic_oarchive,foundation::msg_svc::eventmgr::BaseEvent> >::get_instance+00003353
[ 23] 0x0000000016750372 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+01966962 boost::serialization::singleton<boost::archive::detail::oserializer<boost::archive::polymorphic_oarchive,foundation::msg_svc::eventmgr::BaseEvent> >::get_instance+00003234
[ 24] 0x0000000016612a61 D:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00666209 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00577133
[ 25] 0x000000001846b3bd D:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00504765 inEvalCmdWithLocalReturn+00000065
[