Risolto


the average value of the elements
Calculate the average value of the elements in the array

12 mesi fa

Risolto


Double all elements in the array
Duplicate all elements in the array

12 mesi fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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?

12 mesi fa

Risolto


Total energy

12 mesi fa

Risolto


Potential energy calculation

12 mesi fa

Risolto


Kinetic energy calculation

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Remove a specific character with another
Remove any (-) dash sign with (_) underscore Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step' y = 'The_Jour...

12 mesi fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

12 mesi fa

Risolto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

12 mesi fa

Risolto


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

12 mesi fa

Risolto


Half-Swap
Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

12 mesi fa

Risolto


Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

12 mesi fa

Risolto


Swap between columns
The idea is to swap between second and second last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

12 mesi fa

Risolto


Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

12 mesi fa

Risolto


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

12 mesi fa

Risolto


Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

12 mesi fa

Risolto


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

circa un anno fa

Risolto


Remove a specific column with min value
Remove the column that contain the min value in the matrix? If you like the problem, please give it a like:)

circa un anno fa

Risolto


Remove a specific column with max value
Remove the column that contain the max value in the matrix? If you like the problem, please give it a like:)

circa un anno fa

Risolto


Remove a specific row with max value
Remove the row that contain the max value in the matrix? If you like the problem, please like it :)

circa un anno fa

Risolto


Remove a specific row with min value
Remove the row that contain the min value in the matrix? If you like the problem, please give it a like:)

circa un anno fa

Risolto


Draw a '6' in a zero matrix!

circa un anno fa

Risolto


Draw a '4' in a zero matrix!

circa un anno fa

Risolto


Draw a '9' in a zero matrix!

circa un anno fa

Risolto


Draw a '7' in a zero matrix!

circa un anno fa

Risolto


Draw a '8' in a zero matrix!

circa un anno fa

Risolto


Draw a '3' in a zero matrix!

circa un anno fa

Carica altro