# SURAJ KUMAR

### IIT Roorkee

Ph.D. Candidate at IIT Roorkee

**Programming Languages:**

Python, MATLAB

**Spoken Languages:**

English, Hindi

**Statistics**

RANK**N/A**

of 250,397

REPUTATION**N/A**

CONTRIBUTIONS

**0** Questions

**0** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**0**

RANK**2,343** of 17,398

REPUTATION**671**

AVERAGE RATING**3.80**

CONTRIBUTIONS**11** Files

DOWNLOADS **259**

ALL TIME DOWNLOADS**5779**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Whether the input is vector?

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

2 months ago

Solved

Get the length of a given vector

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

2 months 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....

2 months 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,...

2 months 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 = ...

2 months 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]

2 months 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...

2 months 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...

2 months 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.

10 months ago | 2 downloads |

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.

12 months ago | 12 downloads |

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.

12 months ago | 11 downloads |

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.

12 months ago | 20 downloads |

Submitted

Visualize droop characteristic of Synchronous generators

Visualize droop characteristic of Synchronous generators

1 year ago | 31 downloads |

Solved

Pizza!

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

1 year 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...

1 year 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...

1 year 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...

1 year 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 + ...

1 year 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...

1 year 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.

1 year ago

Submitted

Perturb and Observe MPPT

Tracks MPP of the PV system using P&O Algorithm

1 year ago | 63 downloads |

Submitted

Beta MPPT Method

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

1 year ago | 18 downloads |

Submitted

Variable Step Size INC MPPT

Modified INC MPPT, Tracks MPP faster than Conventional INC MPPT

1 year ago | 25 downloads |

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 ...

1 year 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...

1 year ago

Submitted

Incremental Conductance MPPT

Incremental Conductance MPPT tracks MPP of PV using Incremental Conductance ALgorithm

1 year ago | 74 downloads |