Poras K


Aktiv seit 2016

Followers: 0   Following: 0

Statistik

All
  • First Review
  • Thankful Level 1
  • Promoter
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

fast 8 Jahre vor

Gelöst


Leap year or Not
Check if a given year is Leap year or not.

fast 8 Jahre vor

Gelöst


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

fast 8 Jahre vor

Gelöst


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

fast 8 Jahre vor

Gelöst


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

fast 8 Jahre vor

Gelöst


Standard Deviation
Find standard deviation of an array.

fast 8 Jahre vor

Gelöst


Mean of a matrix
Determine numeric mean of a matrix

fast 8 Jahre vor

Gelöst


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

fast 8 Jahre vor

Gelöst


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

fast 8 Jahre vor

Frage


Convert a string of numbers to a number.
Convert a string of numbers to a number without using str2num.

fast 8 Jahre vor | 2 Antworten | 0

2

Antworten

Gelöst


Create a constant offset.
Add a constant offset to an array. For example: a=[1 3 5 9]; offset=2; y=[3 5 7 11];

fast 8 Jahre vor

Gelöst


Number of primes
Count the number of primes less than 'n'.

fast 8 Jahre vor

Gelöst


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

fast 8 Jahre vor

Gelöst


Linear system of equations
Solve the system of equations in three variables.

fast 8 Jahre vor