Info
This question is locked. Vuélvala a abrir para editarla o responderla.
How to solve this question
48 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
N/A
el 30 de Oct. de 2024 a las 7:46
Locked: John D'Errico
el 30 de Oct. de 2024 a las 12:29
1 comentario
John D'Errico
el 30 de Oct. de 2024 a las 12:22
Stop posting your homework assignments with no effort made.
Otherwise I'll need to be more proactive now, catching and closing future homeworks more quickly, if you continue to do so.
Homework was given to you, to do yourself. You will learn by doing so, not by trying to get others to do your work for you. Your teacher did not ask you to get someone else to do your work for you.
Respuestas (1)
Yash
el 30 de Oct. de 2024 a las 10:56
Since this is an assignment question, I will provide you a few resources which will help you in solving it.
1. You can define an array of odd numbers upto n as follows:
n=15;
arr = 1:2:n
2. Refer to the following function documentations that will help you in obtaining the results:
- sum: https://www.mathworks.com/help/matlab/ref/double.sum.html
- factorial: https://www.mathworks.com/help/matlab/ref/factorial.html
Please try to use the functions above to achieve the desired results.
If you face any issues, kindly let me know.
I hope this helps!
1 comentario
John D'Errico
el 30 de Oct. de 2024 a las 12:12
Editada: John D'Errico
el 30 de Oct. de 2024 a las 12:12
Thank you! Answers is not a service to do homework for a student who has made no attempt. But you did not do that, something for which we are greatful. Instead, you are trying to push the student to make an effort, nudging them in the right direction. An answer proportionate to the effort made is a good goal. +1 from me.
This question is locked.
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!