Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Using a variable in a different function in MATLAB

7 visualizaciones (últimos 30 días)
Omer Acil
Omer Acil el 23 de Mayo de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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!

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by