Community Profile

photo

Payam Morsali


Last seen: alrededor de 1 año hace Con actividad desde 2019

Estadísticas

All
  • Quiz Master
  • Cody Problems in Japanese Master
  • Thankful Level 1
  • Speed Demon
  • Creator
  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Promoter
  • Commenter
  • Solver

Ver insignias

Content Feed

Ver por

Pregunta


Pulse generation with variable frequency
Hi everyone I am trying to implement a pulse generator that generates pulses with variable frequency; let's say teh frequency i...

más de 1 año hace | 1 respuesta | 0

1

respuesta

Resuelto


Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

casi 4 años hace

Resuelto


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

casi 4 años hace

Resuelto


Element-wise vector product
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

casi 4 años hace

Resuelto


Vector raised to a power (element-wise)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

casi 4 años hace

Resuelto


Create a vector of the first n odd numbers
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

casi 4 años hace

Resuelto


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

casi 4 años hace

Resuelto


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

casi 4 años hace

Resuelto


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

casi 4 años hace

Resuelto


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

casi 4 años hace

Resuelto


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

casi 4 años hace

Resuelto


Frugal number
check whether n is a frugal number * a frugal number is a natural number in a given number base that has more digits than the...

casi 4 años hace

Resuelto


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

casi 4 años hace

Resuelto


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

casi 4 años hace

Resuelto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

casi 4 años hace

Resuelto


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

casi 4 años hace

Resuelto


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

casi 4 años hace

Resuelto


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

casi 4 años hace

Resuelto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

casi 4 años hace

Resuelto


Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...

casi 4 años hace

Resuelto


Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

casi 4 años hace

Resuelto


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

casi 4 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

casi 4 años hace

Resuelto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

casi 4 años hace

Resuelto


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

casi 4 años hace

Resuelto


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

casi 4 años hace

Resuelto


Times 3 problem
When you enter the number, it should return the number multiplied by 3

casi 4 años hace

Resuelto


Min of a Matrix
Return the minimum value in the given matrix.

casi 4 años hace

Cargar más