How to use addpath in GUI compiled matlab code

3 ビュー (過去 30 日間)
YoungSeok Jin
YoungSeok Jin 2019 年 12 月 17 日
コメント済み: Mohammad Sami 2019 年 12 月 30 日
I have created a GUI that uses the PICO SDK. I compiled to run as standalone but it doesn't work. It seems to be a problem with the command addpath. I ask for your help.
=======================================================
=== MY code
if (~isdeployed)
addpath('C:\Program Files\PICO_SDK\nstrument_driver_1114d2c')
addpath('C:\Program Files\PICO_SDK\support_toolbox_cebd652')
end
============================================================
  2 件のコメント
Nicolas B.
Nicolas B. 2019 年 12 月 17 日
so your code is especially not using addpath if the application is standalone? Is it a desired behavior?
Mohammad Sami
Mohammad Sami 2019 年 12 月 30 日
Does the SDK comprises only of Matlab code ?
If so, just addpath in the matlab console, before compiling. The compiler will find and link all the necessary code for you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall MATLAB from C についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by