sending content of variable via email

I want to send via gmail the variable not as attachment but display its content which is a row of numbers. How can I do that?

1 comentario

bashar halleem
bashar halleem el 20 de Mayo de 2020
Hi Geoff. I has a question about matrices, if you have a time to take a look pls.

Iniciar sesión para comentar.

 Respuesta aceptada

Geoff Hayes
Geoff Hayes el 4 de En. de 2015
AA - try using sendmail. See the gmail example at this link. If you want your message to be a row of numbers, then try something like
A = [1 2 3 4 5];
% convert the row of numbers to a string (message)
msg = num2str(A);
% send the email
sendmail('some_address@gmail.com', 'My Subjsect', msg);
The above assumes that you have set the properties appropriately for sending email using a gmail account. (Again see the link for details.)

Más respuestas (0)

Etiquetas

Preguntada:

AA
el 4 de En. de 2015

Comentada:

el 20 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by