Resuelto


Box
Give the volume of a box, x is equal to the body diagonal.

más de 4 años hace

Resuelto


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

más de 4 años hace

Resuelto


Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

más de 4 años hace

Resuelto


Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

más de 4 años hace

Resuelto


Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

más de 4 años hace

Resuelto


area of a sphere

más de 4 años hace

Resuelto


divide by 5

más de 4 años hace

Resuelto


Multiply pi
Multiply pi with x!

más de 4 años hace

Resuelto


Sum sum!!!
Sum the numbers from 1 to n

más de 4 años hace

Resuelto


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

más de 4 años hace

Resuelto


Square
square root of x

más de 4 años hace

Resuelto


Find square of given number
Find Square of any number

más de 4 años hace

Resuelto


easy problem
Find the last element of the array

más de 4 años hace

Resuelto


Summation of integers

más de 4 años hace

Resuelto


Flow rate in a pipe

más de 4 años hace

Resuelto


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

más de 4 años hace

Resuelto


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

más de 4 años hace

Resuelto


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

más de 4 años hace

Resuelto


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

más de 4 años hace

Resuelto


Draw "C" in a zero matrix
Given a x-by-x matrix filled with zeros (x> 4). Use 1 to draw a letter C into it! Like this: x = 5, y = 1 1 1 1 1 1 0 0 0 0 ...

más de 4 años hace

Pregunta


Moving sum with variable window
The moving sum can be calculated in MATLAB with movsum. However, that function requires that the window be a scalar. Is there a ...

más de 4 años hace | 1 respuesta | 1

1

respuesta

Pregunta


Convolution using non-constant kernel?
Is there a faster way of performing convolution using a non-constant kernel than with a loop? The kernel contains values complet...

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Quicker way to subtract large vectors using a sliding window?
Below is code with comments for two versions of vector subtraction using a sliding window. I got the math to work (first method ...

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


MATLAB Compare Tool in 2021b
Some changes have been made to the comparison tool in MATLAB 2021b that are steps backwards, in my opinion. Or, there are prefer...

más de 4 años hace | 1 respuesta | 2

1

respuesta

Resuelto


sign function

más de 4 años hace

Resuelto


step function

más de 4 años hace

Resuelto


Draw matrix 'Swiss flag'( Euro 2020)
Draw a x-by-x matrix 'Swiss flag' using '0' and '1'.(x is odd and bigger than 4) Example x=5 ...

más de 4 años hace

Resuelto


3n + 1 Problem (a.k.a The Collatz Conjecture)
The 3n + 1 problem (a.k.a The Collatz Conjecture) Consider the following algorithm to generate a sequence of numbers. Start wit...

más de 4 años hace

Resuelto


imaginary

más de 4 años hace

Cargar más