Got couple of questions from college assignments

2 visualizaciones (últimos 30 días)
Seong Nam
Seong Nam el 9 de Abr. de 2017
Editada: Stephen23 el 9 de Abr. de 2017
1.Assume matrix MX contains a single non-zero value. Place the row number containing this non-zero value into NZR and the column value in NZC
2.Assume Matrix Mz has already been defined. Place the row numbers of all elements in Mz that are negative into vector MzRN and the corresponding column numbers into MzCN
Both answers need to be answered in a single statement

Respuesta aceptada

Stephen23
Stephen23 el 9 de Abr. de 2017
  2 comentarios
Seong Nam
Seong Nam el 9 de Abr. de 2017
Can you be bit more specific?
Stephen23
Stephen23 el 9 de Abr. de 2017
Editada: Stephen23 el 9 de Abr. de 2017
  1. Start MATLAB.
  2. Type doc find in the command window.
  3. Press the enter key.
  4. Read the help page that will open up: this is the help of the one function that you will need to use.
  5. Read the help again: notice that it has different options and outputs.
  6. Read the help again: start to think about how it could be used to solve your task.
  7. Now practice. Learning to solve problems also involves practice (and making mistakes, but that is okay!).
  8. If something does not work as you expect do not complain that MATLAB is broken: read the help again.
  9. Check the output by hand: does it really do what you want?
  10. Try it with the task that the assignment gives you.
Is that specific enough?
You will not learn how to solve programming problems if I tell you the answer and show you the code. This task is very simple, and I already told you the exact function that you need to use. Your task is to take the initiative, do some reading, learn something new, and try it out yourself. Then you will learn something. You should also do these introductory tutorials (which are highly recommended for all beginners):
And read this:
Good luck and have fun learning and practicing!
PS: on this forum it is discouraged doing people's homework for them. I personally will do your homework for you on two conditions:
  1. You get explicit permission from the course tutor/professor.
  2. I get the course credits for any work that I do.
PPS: Handing in someone else's work as your own is called plagiarism.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by