Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

5年以上 前

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

5年以上 前

02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

5年以上 前

What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

5年以上 前

expand intervals vol.3
This is the next problem after <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528> and <http://www.mathworks.co.u...

5年以上 前

expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

5年以上 前

Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

5年以上 前

Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

5年以上 前

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

5年以上 前

Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

5年以上 前

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

5年以上 前

Add two different item as shown in example
Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

5年以上 前

ASCii Code
Using Matlab get the ASCii for '?'

5年以上 前

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

5年以上 前

ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

5年以上 前

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

5年以上 前

Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

5年以上 前

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

5年以上 前

Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

5年以上 前

Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

5年以上 前

Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

5年以上 前

Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

5年以上 前

Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

5年以上 前

Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

5年以上 前

03 - Matrix Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3a.png>> A 9x9 matrix full of 2's (Hint: use *ones* o...

5年以上 前

* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

5年以上 前

Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

5年以上 前

Happy 2013...
Happy 2013, everyone! An interesting tidbit about 2013 is that it is the first year since 1987 to contain four different digits...

5年以上 前

Return the Nth Output from an Input Command
*Description* Given _F_, a cell array whose first element is a function handle and subsequent elements are arguments, return ...

5年以上 前

only input
Return the output without writing any code into the function.

5年以上 前