Community Profile

# jyotsana sampatharao

2021 以来アクティブ

3rd year bachelor's of technology undergraduate student specialized in electronics and communication engineering

Programming Languages:
MATLAB
Spoken Languages:
Telugu
Professional Interests:

バッジを表示

#### Content Feed

Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

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

How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

modulus of a number
find the modulus of a given number

Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

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

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

factorial of a number x
Factorial of a number x

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

pressure to dB?
given x ratio of pressure, find corresponding y dB

step function

Size

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

Square a Number
Given an input x, return y, which is equal to the square of x.

sign function

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

2日 前

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

2日 前

Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

2日 前

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

2日 前

Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

2日 前

Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

2日 前