[問題] Simulink 用 embedded function的問題已回收

看板MATLAB作者 (monkey)時間15年前 (2011/03/10 01:54), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我之前在舊版(多舊我也忘了) 有用過embedded function 當時候可以正常compile 但換成2009a就不行了 有爬過文說是說新板的不內建compile 我又去下載MS的VC++ 2008 執行 mex -setup Select a compiler: [1] Microsoft Visual C++ 2008 Express in C:\Program Files (x86)\Microsoft Visual Studio 9.0 [0] None 有出現下面的字樣 Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/support/solutions/data/1-5C27B9.html?solution=1-5C27B9 Building with the -largeArrayDims option enables the new API. 之後執行有embedded function 的時候會出現error D:\ADC_research\transfer\Test_nonideal\slprj\_sfprj\ebed_func\_self\sfun\src>call "mexopts.bat" 'nmake' 不是內部或外部命令、可執行的程式或批次檔。 ??? Error using ==> test_emb at 4 Error using ==> targetman>throw_make_error at 558 (SLSF Diagnostic). 請強者大大幫我解決一下吧...(跪) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.150.154

03/11 22:15, , 1F
它的意思應該是說你本來的 source 寫法要改吧
03/11 22:15, 1F
文章代碼(AID): #1DTxxO9W (MATLAB)