[問題] 在C++中如何使用自己寫的matlab function
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VS2012
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
我現有一個要使用的function 不過他的附檔名是.m檔
我知道C++可以直接使用matlab內建的function不過我
現在是要用自己新增的funtion,我在matlab跳出的介
面上打這個funtion是找不到的,不過我已經有將這個
.m檔放在我source的目錄下,結果還是沒有吃到
餵入的資料(Input):
預期的正確結果(Expected Output):
直接使用自定義的function
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
engEvalString(ep,"[a b] = function(c);")
補充說明(Supplement):
照上面這樣應該是直接在command windows直接輸入上述指令
我也是在同一個目錄下的
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.227.170
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1396259474.A.BBA.html
→
04/01 16:31, , 1F
04/01 16:31, 1F
→
04/01 16:33, , 2F
04/01 16:33, 2F
→
04/01 16:34, , 3F
04/01 16:34, 3F
→
04/05 18:50, , 4F
04/05 18:50, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章