Resuelto


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...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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.

11 meses hace

Resuelto


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 ...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


Values in Array
How many values are in the array

11 meses hace

Resuelto


area

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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 ...

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


Multiply pi
Multiply pi with x!

11 meses hace

Resuelto


modulus of a number
find the modulus of a given number

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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:...

11 meses hace

Resuelto


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...

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Cargar más