MATLAB Basic: rounding II
Do rounding nearest integer.
Example: -8.8, answer -9
+8.1 answer 8
+8.50 answer 9
3年以上 前
解決済み
Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not.
eg. x = 1884
output = 1
eg. x = 3
output = 0
3年以上 前
解決済み
Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...
3年以上 前
解決済み
Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F.
Examples:
Input F = 90
Output C is 32.22
I...
3年以上 前
解決済み
Square a Number
Given an input x, return y, which is equal to the square of x.
3年以上 前
解決済み
square root
Find the square root (y) of an input (x).
3年以上 前
解決済み
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
Sum of series VII
What is the sum of the following sequence:
Σ(km^k)/(k+m)! for k=1...n
for different n and m?
3年以上 前
解決済み
Sum of series VI
What is the sum of the following sequence:
Σk⋅k! for k=1...n
for different n?
3年以上 前
解決済み
Sum of series V
What is the sum of the following sequence:
Σk(k+1) for k=1...n
for different n?
3年以上 前
解決済み
Sum of series IV
What is the sum of the following sequence:
Σ(-1)^(k+1) (2k-1)^2 for k=1...n
for different n?
3年以上 前
解決済み
Sum of series III
What is the sum of the following sequence:
Σ(2k-1)^3 for k=1...n
for different n?
3年以上 前
解決済み
Sum of series II
What is the sum of the following sequence:
Σ(2k-1)^2 for k=1...n
for different n?
3年以上 前
解決済み
Sum of series I
What is the sum of the following sequence:
Σ(2k-1) for k=1...n
for different n?
3年以上 前
解決済み
Sum of series
a(n) = n^2 - (n-1)^2
find the summation of the series upto n i.e.
a(1)+a(2)+...+a(n)
3年以上 前
解決済み
Reverse the Words (not letters) of a String
*Description*
Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...
3年以上 前
解決済み
Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...