已解决


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

9 years 前

已解决


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

9 years 前

已解决


Nth root
Nth root of a number x

9 years 前

已解决


Rutgers Homework 3 Problem 1
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

9 years 前

已解决


Rutgers Homework 3 Problem 2
Please create a function that answers homework problem 3.2. You can find the full problem statement here: https://drive.go...

9 years 前

已解决


Rutgers Homework 3 Problem 3
Please solve homework 3 problem 3. You can find the full problem statement here: https://drive.google.com/file/d/0B9G6VyQG...

9 years 前

已解决


Rutgers Homework 3 Problem 4
Please solve homework 3 problem 4. You can find the full problem statement here: https://drive.google.com/file/d/0B9G6VyQG...

9 years 前

已解决


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

9 years 前

已解决


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

9 years 前

已解决


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

9 years 前

已解决


Max of a Vector
Write a function to return the max of a vector

9 years 前

已解决


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

9 years 前

已解决


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

9 years 前

已解决


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

9 years 前

已解决


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

9 years 前

已解决


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

9 years 前

已解决


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

9 years 前

已解决


Concatenating strings
* Write a statement that assigns fullName with firstName, a space, then lastName. Ex: If firstName is Alan and lastName is Tu...

9 years 前

已解决


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

9 years 前

已解决


High school cafeteria
Given an input vector of positive integers, return a row vector with the primes first (in increasing order) and the composites n...

9 years 前

已解决


Comparing floating point values
* Assign matchFound with true if firstSample and secondSample are less than thresholdValue.

9 years 前

已解决


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

9 years 前

已解决


Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

9 years 前

已解决


generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

9 years 前

已解决


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

9 years 前

已解决


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

9 years 前

已解决


While loop with multiple conditions
Write a while loop that multiplies userValue by 2 while userValue is not 10 and while userValue is less than 25.

9 years 前

已解决


While loop with branching
Write a while loop that adjusts userValue while userValue is less than 0 or greater than 80. If userValue is greater than 80, th...

9 years 前

已解决


Counting pulses in a signal
Count the number of pulses that are the result of summing each pulse generator block. Pulse Generator blocks produce a recurr...

9 years 前

已解决


Compute the step response of a DC motor
Compute the step response of a DC motor shown below <<http://blogs.mathworks.com/images/seth/cody/dc-motor.png>> The param...

9 years 前

加载更多