how to protect my code from copying by other users?
Show older comments
clc,clear
c=5;
for N=1:15;
A=3;B=7;
if N>=c
Ixy(N)=A+B*N*N;
Nc(N)=N;
fprintf('%d\t %d\t\t\n',Ixy(N),Nc(N))
elseif N<5
Ixy(N)=+B;
Nc(N)=N;
fprintf('%d\t%d\t\t\n',Ixy(N),Nc(N))
end
end
N=1:15;
plot(Ixy(N),Nc(N))
1 Comment
John D'Errico
on 9 Aug 2015
Why would somebody care to copy this code?
Learn what a p-file is.
Answers (1)
Image Analyst
on 9 Aug 2015
0 votes
You can compile it into a standalone program: http://matlab.wikia.com/wiki/FAQ#MATLAB_Compiler_Toolbox
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!