Solved

Find the two-word state names

Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

nästan 2 år ago

Solved

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a standard U.S. QWERTY keyboard and it...

nästan 2 år ago

Solved

Kaprekar Steps

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

nästan 2 år ago

Solved

Find the peak 3n+1 sequence value

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

nästan 2 år ago

Solved

Return the 3n+1 sequence for n

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

nästan 2 år ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

nästan 2 år ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

nästan 2 år ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

nästan 2 år ago

Solved

Find common elements in matrix rows

Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

nästan 2 år ago

Solved

Mandelbrot Numbers

The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

nästan 2 år ago

Question

Logical Indexing with matrix

Helllo, Assuming I have three matrices: A = [1 0 ; 0 1] B = [1 1 ; 1 1] C = [3 4 ; 6 7] I would like to perform the follow...

nästan 2 år ago | 1 answer | 0

Solved

Find state names that start with the letter N

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

nästan 2 år ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

nästan 2 år ago

Solved

Vector creation

Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

nästan 2 år ago

Solved

Doubling elements in a vector

Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

nästan 2 år ago

Solved

Flip the vector from right to left

Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

nästan 2 år ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

nästan 2 år ago

Solved

Get the length of a given vector

Given a vector x, the output y should equal the length of x.

nästan 2 år ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

nästan 2 år ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

nästan 2 år ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

nästan 2 år ago

Question

How to set scientific notation in data tips ?

Hello , I would like to see scientific notation in the data tip on my plot , I attached an image of my plot , instead of that l...

mer än 2 år ago | 1 answer | 0

Question

Readtable from a text file with multiple delimiter

Hello, I have a text file with column delimited by tab , but the string containing the variable name has as a delimiter simple ...

mer än 2 år ago | 1 answer | 0

Question

Find the intersection between two curves

So I would like to write a simple program in for a school project, that can find the intersection between two curves, for examp...

mer än 2 år ago | 1 answer | 0

Question

How to solve a nonliner equation ?

Hello, so I have a nonlinear equation which is actually in the form of an array of values called y, and i would like to finde t...

mer än 2 år ago | 1 answer | 0

Question

How Ode15 does it works ?

Hello, I have some matlab code and i have to translate it in c++. The core of the code is the ode15 solver , can someone explai...

mer än 2 år ago | 2 answers | 0