문제를 풀었습니다


Back to basics 16 - byte order
Covering some basic topics I haven't seen elsewhere on Cody. Switch the byte order of the input (i.e. if little-endian -> big...

대략 2개월 전

문제를 풀었습니다


Stress-Strain Properties - 5
Similar to the previous problem, materials may be characterized by their stiffness-to-weight ratio, which is the elastic modulus...

대략 2개월 전

문제를 풀었습니다


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

대략 2개월 전

문제를 풀었습니다


Saving MATLAB session to a file
How to save MATLAB session to a file?

대략 2개월 전

문제를 풀었습니다


Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...

대략 2개월 전

문제를 풀었습니다


UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

대략 2개월 전

문제를 풀었습니다


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

대략 2개월 전

문제를 풀었습니다


Cos Function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

대략 2개월 전

문제를 풀었습니다


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

대략 2개월 전

문제를 풀었습니다


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

대략 2개월 전

문제를 풀었습니다


Values in Array
How many values are in the array

대략 2개월 전

문제를 풀었습니다


area

대략 2개월 전

문제를 풀었습니다


Stress-Strain Properties - 4
A common measure of the ability of a material to carry load per unit mass is termed strength-to-weight ratio and is calculated b...

대략 2개월 전

문제를 풀었습니다


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

대략 2개월 전

문제를 풀었습니다


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

대략 2개월 전

문제를 풀었습니다


Find the sum of n squares
What is the sum of the squares of the first n integers?

대략 2개월 전

문제를 풀었습니다


Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)

대략 2개월 전

문제를 풀었습니다


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

대략 2개월 전

문제를 풀었습니다


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

대략 2개월 전

문제를 풀었습니다


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

대략 2개월 전

문제를 풀었습니다


Concatenate strings
concatenate a variable number of input strings to produce one outputstring

대략 2개월 전

문제를 풀었습니다


Multiply pi
Multiply pi with x!

대략 2개월 전

문제를 풀었습니다


modulus of a number
find the modulus of a given number

대략 2개월 전

문제를 풀었습니다


UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

대략 2개월 전

문제를 풀었습니다


Determine if input is a Narcissistic number
<http://en.wikipedia.org/wiki/Narcissistic_number Narcissistic number> is a number that is the sum of its own digits each raised...

대략 2개월 전

문제를 풀었습니다


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

대략 2개월 전

문제를 풀었습니다


Tax Calculator
Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

대략 2개월 전

문제를 풀었습니다


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

대략 2개월 전

문제를 풀었습니다


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

대략 2개월 전

문제를 풀었습니다


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

대략 2개월 전

더 보기