Respondida
Quiver plot between 2 dots.
You simply need to compute the difference between the two vectors: P1=[ 0.85 4.87] P2=[ 0.88 4.88] D = P2 - P1; qu...

alrededor de 12 años hace | 0

| aceptada

Resuelto


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

alrededor de 12 años hace

Resuelto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

alrededor de 12 años hace

Resuelto


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

alrededor de 12 años hace

Resuelto


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

alrededor de 12 años hace

Resuelto


Check to see if a Sudoku Puzzle is Solved
*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

alrededor de 12 años hace

Resuelto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

alrededor de 12 años hace

Resuelto


Find matching parenthesis
One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

alrededor de 12 años hace

Resuelto


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

alrededor de 12 años hace

Resuelto


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

alrededor de 12 años hace

Resuelto


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

alrededor de 12 años hace

Resuelto


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

alrededor de 12 años hace

Resuelto


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

alrededor de 12 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

alrededor de 12 años hace

Resuelto


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

alrededor de 12 años hace

Resuelto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

alrededor de 12 años hace

Resuelto


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

alrededor de 12 años hace

Resuelto


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

alrededor de 12 años hace

Resuelto


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Respondida
Particle motion in electromagnetic field
The <http://www.mathworks.com/help/techdoc/ref/ode23.html |ode| family of functions> are used to solve differential equations in...

alrededor de 12 años hace | 0

Respondida
Interpolating Faces in Surface plot
I'm not exactly clear what you're looking for. But have you tried calling shading interp after creating the surface? Tha...

alrededor de 12 años hace | 0

Respondida
Setting DisplayName for a bar graph
The help for <http://www.mathworks.com/help/techdoc/ref/set.html |set|> says: |set(H,pn,MxN_pv) sets n property values on each ...

alrededor de 12 años hace | 5

| aceptada

Respondida
How to show partial legend in figure
the cyclist's solution of passing plot handles to the |legend| command is good. But if you're feeling adventurous, you can also ...

alrededor de 12 años hace | 4

Respondida
'legend' problem
This is along the same lines as Junaid's answer. The idea is to use the plot's |DisplayName| property to set the legend text for...

alrededor de 12 años hace | 0

Respondida
Print a Figure with two Y-Axes - displaced coordinate systems
This is just a guess, but you could try doing this at the end of your code: set(AX, 'ActivePositionProperty', 'position'); ...

alrededor de 12 años hace | 1

Cargar más