Info
此问题已关闭。 请重新打开它进行编辑或回答。
Using a variable in a different function in MATLAB
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone;
I coded a function which you put a word inside and encrypts it. Now I am coding an another fucntion which decrpyts it but since these functions are not in the same edior I can not use the same word it does not recognizes it
function encStr = encrypt(s,key)
prompt='Enter message to be encrypted: ';
s=input(prompt,'s');
key=input('Enter the key: ');
a=char(s+key);
This is a part of my first function.
Thanks!
1 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!