Risolto

Next Higher Power of B

|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

circa 2 anni fa

Risolto

arrangement of symbols

There are n different symbols in which m symbols are identical (m<n). How many different arrangement can we make with these symb...

circa 2 anni fa

Risolto

UICBioE240 2.7

Given two 3-element vectors x1 and x2, create a 3 x 3 x 3 matrix Y where (:,:,1) has all values of x1 * x2, (:,:,2) has all valu...

circa 2 anni fa

Risolto

Diagonal Pattern

For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

circa 2 anni fa

Risolto

Given a number find two variables

If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

circa 2 anni fa

Risolto

Interpolate scattered data.

Most data was scattered, and there is no gird. There are three data [c] in three different area [x,y]. x=[1 3 4]; y=[1 ...

circa 2 anni fa

Risolto

Solve the system of linear equations

4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

circa 2 anni fa

Risolto

Calculate numerical integration.

x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

circa 2 anni fa

Risolto

Calculate solution of given polynomial

For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

circa 2 anni fa

Risolto

Solve equation numerically

y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

circa 2 anni fa

Risolto

Save variables

a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

circa 2 anni fa

Risolto

More Simple String Concatenation

Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

circa 2 anni fa

Risolto

Pascal's triangle

<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

circa 2 anni fa

Risolto

Automatic String Editing

In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

circa 2 anni fa

Risolto

String Delimination and Outputting

In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

circa 2 anni fa

Risolto

Find the sum of the largest two elements in a vector

With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

circa 2 anni fa

Risolto

No more zeros

Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

circa 2 anni 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 anni fa

Risolto

Find Month & day for given day number of a year

Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

circa 2 anni fa

Risolto

Making change

Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

circa 2 anni fa

Risolto

Calculate days until Christmas

Provided with inputs year, month, day e.g. 2019,11,12, calculate the number of days until the next Christmas day, i.e. the next ...

circa 2 anni fa

Risolto

Find the two most distant points

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

circa 2 anni fa

Risolto

Union of two set decreasing order

Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

circa 2 anni fa

Risolto

Find out output of following expression

Find out output of following expression Q=2log10 x+cos π+√(5yz)+|x^2-y^2 |

circa 2 anni fa

Risolto

Matlab Basics II - Create a vector with a repeated entry

Create a row vector of length n, filled with 4's, for example, if n = 3 output = [4 4 4] make sure to round UP when n is a...

circa 2 anni fa

Risolto

Getting the row and column location from a matrix

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

circa 2 anni fa

Risolto

Matlab Basics - Switching Assignments

Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

circa 2 anni fa

Risolto

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

circa 2 anni fa

Risolto

Replace values under a limit

For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

circa 2 anni fa