can't run a function which is part of a project itself after rendering to executable file.
Show older comments
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 Comments
Bachtiar Muhammad Lubis
on 5 Jul 2019
KALYAN ACHARJYA
on 5 Jul 2019
Edited: KALYAN ACHARJYA
on 5 Jul 2019
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
on 24 Jul 2019
Bachtiar Muhammad Lubis
on 24 Jul 2019
"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
on 25 Jul 2019
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!