A résolu


Display positive elements of matrix.
Display positive elements of matrix.

plus de 9 ans il y a

A résolu


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

plus de 9 ans il y a

A résolu


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

plus de 9 ans il y a

A résolu


Use a timetable to analyze a train timetable (Part 3)
Oh no, you missed your train to Boston (again?)! How many times can you miss that train today? (In other words, how many Boston ...

plus de 9 ans il y a

A résolu


Use a timetable to analyze a train timetable (Part 2)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Yo...

plus de 9 ans il y a

A résolu


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

plus de 9 ans il y a

A résolu


Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Determine if number is even
Your function should return true if input x is even, else return false

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

plus de 9 ans il y a

A résolu


Return the length of the longest word in the string.
Example: Input s='A fractal is a natural phenomenon or a mathematical set that exhibits a repeating pattern that display...

plus de 9 ans il y a

A résolu


Return ! if array element starts with a certain letter. Otherwise return ?
Input x=['try' 'once' 'more']; s='t' Output ans='!' Input x=['try' 'once' 'more']; s='O' Output ...

plus de 9 ans il y a

A résolu


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

plus de 9 ans il y a

A résolu


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...

plus de 9 ans il y a

A résolu


Remove Missing Values from a Table or an Array
Remove missing entries from an array or table. If A is a vector, then remove any entry that contains missing data. If A is a mat...

plus de 9 ans il y a

A résolu


Degrees to Radian
Convert degrees to radians

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


A uniform quantizer
Find the total number of quantization levels and step size for a 3 bit bipolar quantizer for an input analog signal ranges from ...

plus de 9 ans il y a

A résolu


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

plus de 9 ans il y a

A résolu


String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

plus de 9 ans il y a

A résolu


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

plus de 9 ans il y a

A résolu


find the 'M'
for an input x, return 1 at the location of the letter 'M'

plus de 9 ans il y a

A résolu


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

plus de 9 ans il y a

Charger plus