Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Using a variable in a different function in MATLAB

조회 수: 7 (최근 30일)
Omer Acil
Omer Acil 2020년 5월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
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!

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by