MATLAB 101: Replace Negatives with Zero
Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Po...
1 month 前
已解决
MATLAB 101: Area of an ellipse
Write a MATLAB function that accepts these two values a (major axis length), b (minor axis length) as inputs and returns the cal...
1 month 前
已解决
MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.
1 month 前
已解决
Problem Set 2
Make a calculator by the four main operators (op):
+
-
*
/
And the two numbers (n1, n2).
Don't forget to check to divisio...
1 month 前
已解决
Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then...
If it's length from 1 to 5, sz = ...
1 month 前
已解决
Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns.
Cases from 1 to 3, b = true.
Otherwise, b = false.
1 month 前
已解决
NOT
If a not equal to zero, b = true, else, b = false.
1 month 前
已解决
OR
If a greater than zero or c less than 10, b = true, else, b = false.
1 month 前
已解决
AND
If a greater than 0 and n less than 10, b = true, else, b = false.
(Checking a should be in one line by AND special sign in MAT...
1 month 前
已解决
Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.
1 month 前
已解决
If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.
1 month 前
已解决
If-Else
If a more than zero, b = true, else, b = false.
Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...
Current through resistor
Three resistors (R2, R3, R4) are connected in parallel as shown in the figure. If this combination is connected in series with ...
1 month 前
已解决
Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...