Resuelto


Possible Rugby Scores
Given a natural number s (> 4), representing a rugby team's score, return an n-by-3 matrix representing all n possible combinati...

21 días hace

Resuelto


Dartboard Average II
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

21 días hace

Resuelto


Dartboard Average I
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

21 días hace

Resuelto


Angle Between Analog Clock Hands
Given a datetime variable t, return the angle (in degrees) between the hour and minute hands of an analog clock at the time repr...

21 días hace

Resuelto


Extract the Acrostic Message
An acrostic cipher is a way of embedding one message within another by taking the first (or last) word of each line. Given a str...

21 días hace

Resuelto


Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

21 días hace

Resuelto


Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

22 días hace

Resuelto


Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. The elements of p should ...

23 días hace

Resuelto


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

27 días hace

Resuelto


Make a Plot with Functions
Make a plot and test

27 días hace

Resuelto


Plot Line Specifications
Create a line plot for function cos(x) where x is a vector of linearly spaced values going from 0 to input N with an increment o...

27 días hace

Resuelto


3D Plots and Colorbars
Use the matrices X, Y, and Z provided in the function template to create a surface plot. Add a colorbar to the surface plot and ...

27 días hace

Resuelto


Sum the entries of each column of a matrix which satisfy a logical condition.
Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

28 días hace

Resuelto


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

29 días hace

Resuelto


The Tortoise and the Hare - 01
Suppose in an infinitely long line, the hare is standing in position 0. From that place, it can jump either in the +ve direct...

29 días hace

Resuelto


Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

alrededor de 1 mes 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 1 mes hace

Resuelto


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

alrededor de 1 mes hace

Resuelto


Temperature Conversion 2

alrededor de 1 mes hace

Resuelto


Temperature Conversion 1

alrededor de 1 mes hace

Resuelto


Create a figure and plot data
Given two data vectors (x,y), open a new figure and plot the data. Return the figure handle.

alrededor de 1 mes hace

Resuelto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

alrededor de 1 mes hace

Resuelto


Draw a '0' in a one matrix!

alrededor de 1 mes hace

Resuelto


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

alrededor de 1 mes hace

Resuelto


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as y = A.ⅇ^(-λt)*cos(2πft) where A, λ, and f are scalars and t is a vector. ...

alrededor de 1 mes hace

Resuelto


Remove Lower Case Letters
Example MEMOry --> MEMO IMPlEMeNtATiON --> IMPEMNATON

alrededor de 1 mes hace

Resuelto


Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

alrededor de 1 mes hace

Resuelto


Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

alrededor de 1 mes hace

Resuelto


String Logic 7
Examples: 'CAT' --> 84 'DOG' --> 79 'ROSY' --> 89 'MATLAB' --> 84 'TRUST' --> 85 'MOSTLY' --> 89

alrededor de 1 mes hace

Resuelto


String Logic 2
Example: ROSY --> HEIO TRUST --> JHKIJ MOSTLY --> CEIJBO

alrededor de 1 mes hace

Cargar más