Resuelto


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

casi 11 años hace

Resuelto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

casi 11 años hace

Resuelto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

casi 11 años hace

Resuelto


become the batman and save gotham!!!
:\\YOU ARE THE BATMAN//: Batman needs your help to save gotham city from its villains! One day while patrolling the streets...

casi 11 años hace

Resuelto


Declaring a character
* Assign middleInitial with the character T.

casi 11 años hace

Resuelto


Is this function available?
Sometimes it is difficult to remember which functions are not allowed on the Cody platform. Given a function as a string, return...

casi 11 años hace

Resuelto


Minimum of each diagonal
The well-known <http://www.mathworks.com/help/matlab/ref/min.html min> function can operate along either the rows or the columns...

casi 11 años hace

Resuelto


Maximum of each diagonal
The well-known <http://www.mathworks.com/help/matlab/ref/max.html max> function can operate along either the rows or the columns...

casi 11 años hace

Resuelto


Indexing an array element
* Assign currentStudent with the second element of array testScores. _Reminder: Array indexing starts with 1._

casi 11 años hace

Resuelto


Column arrays: Transpose a row array
* Construct a row array countValues with elements 1 to endValue, using the colon operator. * Transpose countValues to result in...

casi 11 años hace

Resuelto


Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

casi 11 años hace

Resuelto


Your favourite city!
Type your favourite city.

casi 11 años hace

Resuelto


Indexing the array: Moving values
Assume sampleReadings always contains three elements. * Shift the array contents one position to the left. * The rightmost ...

casi 11 años hace

Resuelto


Variable sized row arrays
* Reverse the contents of row array mileMarkers

casi 11 años hace

Resuelto


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

casi 11 años 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.

casi 11 años hace

Resuelto


UICBioE240 problem 1.2
Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

casi 11 años hace

Resuelto


UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

casi 11 años hace

Resuelto


Change number representation to HEX
Given a number change it's representation to HEX and output it.

casi 11 años hace

Resuelto


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

casi 11 años hace

Resuelto


Create cell array of strings
Convert the input to a cell array, but only if necessary. If the input is a string, return a 1-by-1 cell array containing the...

casi 11 años hace

Resuelto


Create cell array of numeric arrays
Convert the input to a cell array, but only if necessary. If the input is a numeric array, return a 1-by-1 cell array contain...

casi 11 años hace

Resuelto


Writing a recursive math function
Complete the recursive function RaiseToPower(). Ex: If userBase is 2 and userExponent is 4, then raisedValue is assigned wit...

casi 11 años hace

Resuelto


Derivative function
Given a function handle f, generate a function that evaluates the derivative of f Examples: f = @sin; df = De...

casi 11 años hace

Resuelto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands

casi 11 años hace

Resuelto


Output a vector which is table of 9
Output a vector which is table of 9

casi 11 años hace

Resuelto


Prime checker
Complete the recursive function to determine if a number is prime. Skeletal code is provided in the PrimeChecker function.

casi 11 años hace

Resuelto


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

casi 11 años hace

Resuelto


Character variable: Compass direction
* Assign compassDirection with sensorReading's value. Both are character variables.

casi 11 años hace

Resuelto


sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

casi 11 años hace

Cargar más