解決済み


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

10年弱 前

解決済み


Binary Inversion
Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

10年弱 前

解決済み


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

10年弱 前

解決済み


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

10年弱 前

解決済み


Non trivial identities - reshape
Return x by reshaping it.

10年弱 前

解決済み


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

10年弱 前

解決済み


Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

10年弱 前

解決済み


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

10年弱 前

解決済み


Rankine to Kelvin Converter
Given input R, degrees Rankine, convert into degrees Kelvin.

10年弱 前

解決済み


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

10年弱 前

解決済み


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

10年弱 前

解決済み


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

10年弱 前

解決済み


Degrees to Radian
Convert degrees to radians

10年弱 前

解決済み


Radians to Degrees
Convert radians to degrees.

10年弱 前

解決済み


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

10年弱 前

解決済み


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

10年弱 前

解決済み


Hydrostatic Pressure
Given depth(height), in m, find the pressure under a body of water. Need to know the density of water(kg/m^3), and gravity(m/s^2...

10年弱 前

解決済み


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

10年弱 前

解決済み


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

10年弱 前

解決済み


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10年弱 前

解決済み


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

10年弱 前

解決済み


square root
Write a script that returns the square root of the elements in x. e.g. x = [1 4 9 16] --> y = [1 2 3 4]

10年弱 前

解決済み


length of a vector
Find three times the length of a given vector.

10年弱 前

解決済み


Get chain of consecutive characters
Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...

10年弱 前

解決済み


Convolution of vectors
Find the convolution of the 2 vectors.

10年弱 前

解決済み


Design a function to perform convolution on 2 vector of numbers
The function should accept 2 one dimensional vectors of any length and compute the convolution between these 2 vectors and store...

10年弱 前

解決済み


Quantization
3-bit ADC channel accepts analog input ranging from 0 to 5 volts, determine the number of quantization levels.

10年弱 前

解決済み


Use R2016b Text Manipulations to Fix These Addresses (Part 3)
We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

10年弱 前

解決済み


Use R2016b Text Manipulations to Fix These Addresses (Part 2)
We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

10年弱 前

解決済み


Use R2016b Text Manipulations to Fix These Addresses (Part 1)
We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

10年弱 前

さらに読み込む