# Hong

Last seen: 3 months ago Active since 2024

Followers: 0   Following: 0

#### Feeds

View by

Question

Error when getting function to test testprime
Hi i was doing the function but i kept getting this i wonder what did I do wrong

3 months ago | 1 answer | 0

### 1

Question

Function to check prime number
Write a Matlab function, called testprime, that takes one input argument and uses a for-loop and rem function to check whether i...

3 months ago | 0 answers | 0

### 0

Question

MATLAB for loop and nested if commands
A vector is given by: v=[6, 3, -9, 10, 5, 0, -8, 11, -5]. Write a MATLAB program that uses a for loop and nested if statements t...

3 months ago | 1 answer | 0

### 1

Question

I can't comput the following commands
if total>=90 && total<=100 A1=sum(total>=90 && total<=100); frpintf('The number of A+ students is : %d\n',A1) elseif ...

3 months ago | 2 answers | 0

### 2

Question

How to compute the following questions
StudentID Test 1 Test 2 Final Total 1201 66 75 70 70.5 1210 69 60 77 69.9 1215 82 85 68 76.6 1220 92 89 95 92.5 1235 ...

3 months ago | 1 answer | 0