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 Commenti

Please help me to solve this. I have no idea why this is happened. Please help me masters
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.
KALYAN ACHARJYA : i think i have posted specific enough sir and also detail enough. I am sorry which one do make you confuse about my question ?
"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.
how can my i/o of my function aren't existing jan?
i think projProfille_Horizontal.m run properly on IDE. after converted the project into .exe file it doesn't run. And also i have cleared my commented code but it still doesn't fix my issue.
which part do make you confuse jan ?
By the why how can i fix this and how can there aren't input and/or output there.
thanks in advance

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Release

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by