Community Profile

photo

SURAJ KUMAR


IIT Roorkee

Last seen: circa un mese ago Active since 2020

Ph.D. Candidate at IIT Roorkee

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

Statistics

All
  • 5-Star Galaxy Level 4
  • Personal Best Downloads Level 4
  • MATLAB Central Treasure Hunt Finisher
  • First Review
  • Commenter
  • Promoter
  • First Submission
  • Solver

View badges

Content Feed

View by

Solved


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

circa un mese ago

Solved


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

circa un mese ago

Solved


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

circa un mese ago

Solved


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

circa un mese 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....

circa 2 mesi 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,...

circa 2 mesi 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 = ...

circa 2 mesi 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]

circa 2 mesi 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...

circa 2 mesi 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...

circa 2 mesi 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 mesi 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 mesi ago | 11 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 mesi 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 mesi ago | 21 downloads |

Submitted


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

circa un anno ago | 30 downloads |

Thumbnail

Solved


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

oltre un anno 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...

oltre un anno 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...

oltre un anno 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...

oltre un anno 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 + ...

oltre un anno 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...

oltre un anno ago

Solved


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

oltre un anno 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.

oltre un anno ago

Solved


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

oltre un anno ago

Submitted


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

oltre un anno ago | 66 downloads |

Thumbnail

Submitted


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

oltre un anno ago | 17 downloads |

Thumbnail

Submitted


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

oltre un anno ago | 25 downloads |

Thumbnail

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

oltre un anno 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...

oltre un anno ago

Submitted


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

oltre un anno ago | 75 downloads |

Thumbnail

Load more