Resuelto


Calculate the area of a circle
Given a circle of diameter x calculate its area

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


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

más de 4 años hace

Resuelto


Find the max element of the array
Find the max element of the array

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


to the 2 all elements
to the 2 all elements

más de 4 años hace

Resuelto


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

más de 4 años hace

Resuelto


Repeat elements of a vector
Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

más de 4 años hace

Resuelto


Square
square root of x

más de 4 años hace

Resuelto


factorial
calculate x!

más de 4 años hace

Respondida
Error when taking mean of generated random variables with gamma distribution.
you defined mean = 1. Then you try to use it as a function :)

más de 4 años hace | 0

Respondida
Collect double values of a matrix
hmm well to count occurences you could somehow use a hashmap containers.Map in matlab. that would be efficient.

más de 4 años hace | 0

Respondida
how to plot Integrate of exponent and cosine equation.
you can try something like this syms tau t f = exp(-t/tau).*cos(t+1) func = int(f,t,0,1) x = 0.01:.01:10; y = subs(func, x)...

más de 4 años hace | 0

Respondida
How to remove the integration constants from the integrated random signal ?
hmm.. are you trying to compute an indefinite integral?

más de 4 años hace | 0

| aceptada

Respondida
Variable updates for a brief moment before returning to the original value.
hmm you might want to use '< handle' if you want to make changes to an object within a method. https://www.mathworks.com/help/m...

más de 4 años hace | 0

Resuelto


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

más de 4 años hace

Resuelto


Invert a 3D rigid-body transformation
Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

más de 4 años hace

Resuelto


Create a 3D rotation matrix
Consider an arbitrary coordinate frame {A}. Consider another coordinate frame {B} which has the same origin as {A} but is rotat...

más de 4 años hace

Resuelto


anshil's problem
Only anshil should solve ans = ''

más de 4 años hace

Resuelto


Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

casi 5 años hace

Resuelto


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

casi 5 años hace

Resuelto


Ratio between sum of primes and sum of factors
Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of ...

casi 5 años hace

Resuelto


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

alrededor de 5 años hace

Resuelto


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

alrededor de 5 años hace

Resuelto


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

alrededor de 5 años hace

Resuelto


Narcissistic problem
How many likes has this problem?

alrededor de 5 años hace

Resuelto


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

alrededor de 5 años hace

Resuelto


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

alrededor de 5 años hace

Resuelto


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

alrededor de 5 años hace

Resuelto


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

alrededor de 5 años hace

Cargar más