result is displayed in the same line

1 visualización (últimos 30 días)
Mustafa Abdelfattah
Mustafa Abdelfattah el 12 de Abr. de 2024
Comentada: Voss el 12 de Abr. de 2024

Respuesta aceptada

Voss
Voss el 12 de Abr. de 2024
Use \n instead of /n.
\n means new line; /n means literally /n.
  2 comentarios
Mustafa Abdelfattah
Mustafa Abdelfattah el 12 de Abr. de 2024
many thanks, my friend
just one question
how to master matlab coding in short time for mechanical engineer?
Voss
Voss el 12 de Abr. de 2024
You're welcome! If this answer worked, please "Accept" it. Thanks!
Mastering anything takes time, but to get more comfortable using MATLAB, I am told the Onramp is a good place to start:
Also, there is a Discussion thread where people talk about how they learned MATLAB; you may find useful ideas there:
My personal advice for getting better at MATLAB coding would be:
  1. Write MATLAB code
  2. Try to run it
  3. If there is an error message, read and understand what the error message is telling you (ask for help interpreting the error message if you need to). Read the documentation of the functions related to the error.
  4. Modify your code based on the error
  5. Repeat steps 2-4 until there are no error messages
  6. Check whether the results you got are what you expected. If not, read the documentation of the functions you are using and make sure your code is doing what you intended (most likely it's not). Again, ask for help if needed.
  7. When the results are as expected, return to step 1 to write more MATLAB code and repeat the process.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by