Info

This question is locked. 編集または回答するには再度開いてください。

How to solve this question

1 回表示 (過去 30 日間)
N/A
N/A 2024 年 10 月 30 日
Locked: John D'Errico 2024 年 10 月 30 日
  1 件のコメント
John D'Errico
John D'Errico 2024 年 10 月 30 日
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.

回答 (1 件)

Yash
Yash 2024 年 10 月 30 日
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
arr = 1×8
1 3 5 7 9 11 13 15
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
2. Refer to the following function documentations that will help you in obtaining the results:
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 件のコメント
John D'Errico
John D'Errico 2024 年 10 月 30 日
編集済み: John D'Errico 2024 年 10 月 30 日
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.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by