07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6
Magic squares are defined as square matrices, where the sum of a...
9年以上 前
解決済み
Rounding
Round 10.67 and make 'y' equal to that number.
Currency conversion
A currency exchange booth offers an exchange rate of 119.771 Japanese yen for 1 US dollar. The currency exchange booth rounds do...
9年以上 前
解決済み
Area of a circle
Find the value for area of the circle if diameter is given
9年以上 前
解決済み
Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x
example: x = [1 2 3; 4 5 6];
output [1;4];
While loop: Summation
Write a while loop that assigns summedValue with the sum of all values from 1 to userNum. Assume userNum is always greater than ...
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
9年以上 前
解決済み
Assignment statements based on input value
Write an if-else statement that assigns finalValue with userValue + 5 if userValue is greater than 100. Otherwise assign finalVa...
9年以上 前
解決済み
Counting down
Create a vector that counts from 450 to 200 in increments of 10.
9年以上 前
解決済み
Food safety
Assign safeTemperature with 1 if foodTemperature is less than 40 or greater than 165.