Community Profile

photo

Dhairya Vyas


Last seen: ungefär en månad ago Active since 2020

To Pursue a rewarding and challenging career in organization this would be mutually beneficial in terms of learning experience and contribution to organization growth.

Statistics

  • Cody Challenge Master
  • MATLAB Central Treasure Hunt Finisher
  • Solver

View badges

Content Feed

View by

Solved


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

ungefär en månad ago

Solved


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

ungefär en månad ago

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

ungefär en månad ago

Solved


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

ungefär en månad ago

Solved


Positive Infinity
Round the array a towards positive infinity

ungefär ett år ago

Solved


02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

ungefär ett år ago

Solved


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

ungefär ett år ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

ungefär ett år ago

Solved


Array of Ones
Create a 100 X 100 array of ones.

ungefär ett år ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

ungefär ett år ago

Solved


prime test
find largest 2 digit prime number

ungefär ett år ago

Solved


Determine the length of a string of characters
Determine the length of a string of characters

ungefär ett år ago

Solved


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

ungefär ett år ago

Solved


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

ungefär ett år ago

Solved


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

ungefär ett år ago

Solved


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

ungefär ett år ago

Solved


Count decimal digits of a number
* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...

ungefär ett år ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

ungefär ett år ago

Solved


03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

ungefär ett år ago

Solved


MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

ungefär ett år ago

Solved


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

ungefär ett år ago

Solved


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

ungefär ett år ago

Solved


06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

ungefär ett år ago

Solved


square root
Find the square root (y) of an input (x).

ungefär ett år ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

ungefär ett år ago

Solved


Generate pi using logarithm
Generate pi using logarithm

ungefär ett år ago

Solved


02 - Vector Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

ungefär ett år ago

Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

ungefär ett år ago

Solved


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

ungefär ett år ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

ungefär ett år ago

Load more