# Help me with the MATLAB Code

조회 수: 1 (최근 30일)
Mohamad Alrifai 2021년 3월 3일
답변: Rashed Mohammed 2021년 3월 8일
Generate an array of 100 numbers containing randomly generated integers between 10 and 30. For this: (make sure you include your code part of your submission)
• Use the while loop to calculate the sum of the square of the numbers, and save the answer to variable “sum_square”
• Use a for loop to calculate the sum of the square of the even numbers, and save the answer to variable “sum_even”
• Use a for loop to calculate the sum of the square of the odd numbers, and save the answer to variable “sum_odd”
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
KALYAN ACHARJYA 2021년 3월 3일
Homework Question: Here

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Rashed Mohammed 2021년 3월 8일
Since this seems like a homework assignment, if you can provide the code you've written to solve the problem and ask a specific question about where you're facing difficulty, we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, As suggested by Kalyan, you can start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
Hope this helps.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by