can't run a function which is part of a project itself after rendering to executable file.
古いコメントを表示
i rendered an executable file yesterday but unfortunately there was a function don't run, while it run in matlab editor perfectly.

Those are my files that i store into compiler menu. and the function that i am talking about is the one that i give a mark (blue mark).
What the view will be supposed :


but the view right now before the require function don't run is:

it just show blank axes.
please someone help me to fix my problem. i need to convert my project to executable type without any problem for my graduation requirement,
hopefully someone would help me soon.
thank in advance.
7 件のコメント
Bachtiar Muhammad Lubis
2019 年 7 月 5 日
KALYAN ACHARJYA
2019 年 7 月 5 日
編集済み: KALYAN ACHARJYA
2019 年 7 月 5 日
Be specific and small issue normally get the instant response.
The code of the failing function contains some lines, which are not meaningful in a compiled application:
clc; % Clear the command window.
%close all; % Close all figures (except those of imtool.)
% clear; % Erase all existing variables. Or clearvars if you want.
workspace; % Make sure the workspace panel is showing.
format long g;
format compact;
The help section on top of this function is misleading, because it describes input and/or output arguments, which are not existing.
There is a lot of out-commented code. This is confusing only, because nobody (even not the author after some month) can guess, why the code was commented, but not deleted.
Bachtiar Muhammad Lubis
2019 年 7 月 24 日
Bachtiar Muhammad Lubis
2019 年 7 月 24 日
"what help section do you mean Jan ?"
Of course of the failing function, which you have mentioned in your question: projProfile_Horizontal.m
The posted code is such confusing, that I would not use it for productive work at all. I do not think, that anybody besides the author is able to debug the code - it will be even hard for the author also.
Bachtiar Muhammad Lubis
2019 年 7 月 25 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!