Community Profile

# SURAJ KUMAR

### IIT Roorkee

Last seen: environ un mois ago Active since 2020

Ph.D. Candidate at IIT Roorkee

Programming Languages:
Python, MATLAB
Spoken Languages:
English, Hindi

All

#### Content Feed

View by

Solved

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

environ 2 mois ago

Solved

Find max
Find the maximum value of a given vector or matrix.

environ 2 mois ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

environ 2 mois ago

Solved

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

environ 2 mois ago

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

environ 2 mois ago

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

environ 2 mois ago

Solved

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

environ 2 mois ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

environ 2 mois ago

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

environ 2 mois ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

environ 2 mois ago

Submitted

Heuristic Optimization Visualization With Matlab Code
I created this code to explain the basic concept behind heuristic optimization with visualization using MatLab plot.

Submitted

Fuzzy Logic Controller on Boost Converter
Matlab Simulation file of Fuzzy Logic Controller implemented on DC-DC boost converter for a head-start in this field.

Submitted

Fuzzy Logic Controller on Buck Converter
Matlab Simulation file of Fuzzy Logic Controller implemented on DC-DC buck converter for a head-start in this field.

Submitted

Fuzzy Logic Controller on Buck-Boost Converter
Matlab Simulation file of Fuzzy Logic Controller implemented on DC-DC buck-boost converter for a head-start in this field.

Submitted

Visualize droop characteristic of Synchronous generators
Visualize droop characteristic of Synchronous generators

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus d'un an ago

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

plus d'un an ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

plus d'un an ago

Solved

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

plus d'un an ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus d'un an ago

Solved

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

plus d'un an ago

Solved

Return area of square
Side of square=input=a Area=output=b

plus d'un an ago

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

plus d'un an ago

Solved

Given a and b, return the sum a+b in c.

plus d'un an ago

Submitted

Perturb and Observe MPPT
Tracks MPP of the PV system using P&O Algorithm

Submitted

Beta MPPT Method
Tracks MPP of the PV system using Beta Algorithm designed by S.Jain

Submitted

Variable Step Size INC MPPT
Modified INC MPPT, Tracks MPP faster than Conventional INC MPPT

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus d'un an ago

Solved

Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

plus d'un an ago

Submitted

Incremental Conductance MPPT
Incremental Conductance MPPT tracks MPP of PV using Incremental Conductance ALgorithm