A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


area of a sphere

environ 4 ans il y a

A résolu


divide by 5

environ 4 ans il y a

A résolu


Multiply pi
Multiply pi with x!

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


Square
square root of x

environ 4 ans il y a

A résolu


Find square of given number
Find Square of any number

environ 4 ans il y a

A résolu


easy problem
Find the last element of the array

environ 4 ans il y a

A résolu


Summation of integers

environ 4 ans il y a

A résolu


Flow rate in a pipe

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

Question


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

plus de 4 ans il y a | 1 réponse | 1

1

réponse

Question


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

plus de 4 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 4 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 4 ans il y a | 1 réponse | 2

1

réponse

A résolu


sign function

plus de 4 ans il y a

A résolu


step function

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


imaginary

plus de 4 ans il y a

A résolu


Real

plus de 4 ans il y a

A résolu


NaN

plus de 4 ans il y a

A résolu


Tribonacci Sequence
Generate the tribonacci sequence upto n

plus de 4 ans il y a

Charger plus