Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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.

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


Values in Array
How many values are in the array

circa 2 mesi fa

Risolto


area

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


Multiply pi
Multiply pi with x!

circa 2 mesi fa

Risolto


modulus of a number
find the modulus of a given number

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Risolto


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

circa 2 mesi fa

Carica altro