# Konark Kelaiya

MATLAB Developer

Professional Interests: Automotive,modelling, Communication

**Statistics**

RANK**1,775**

of 271,444

REPUTATION**28**

CONTRIBUTIONS

**2** Questions

**7** Answers

ANSWER ACCEPTANCE **
50.0%
**

VOTES RECEIVED**6**

RANK**7,906** of 18,303

REPUTATION**98**

AVERAGE RATING**5.00**

CONTRIBUTIONS**4** Files

DOWNLOADS **3**

ALL TIME DOWNLOADS**889**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

N-dimensional arrays are not supported.

Your H1 or H whatever the variable is 3D matrix however when you get the size of H with [I,r,h3] it will return matrix size valu...

6 years ago | 0

how to store output values in a matrix for each output variable?

Initialize another variable say X3 as X3 = [] Then use X3 to store x1 and g(x) values Modify this portion of code as ...

6 years ago | 0

| accepted

How to create a second x-axis on top of 2d plot, where I'm plotting units in nm on the x-axis. I want to calculate the corresponding electron-volt value, and display this value on the x-axis on top of the plot. How can I do this?

Well plotxx or plotyy will do the plot that you want. Rest about equal values for both axis it is possible if both axis have sam...

6 years ago | 0

add function to toolbox path

Well Private functions are meant for the purpose that it won't be seen from any other directory or functions kept other than its...

6 years ago | 0

| accepted

How to open / step-in generic function in debug mode?

MATLAB in-built functions comes with different category 1 - P-code (encoded form of function) - Can't be debugged at all. ...

6 years ago | 1

| accepted

default figure title font weight

Use below code in Command Window or script and title will be in 'normal' form set(0,'DefaultAxesTitleFontWeight','normal'); ...

6 years ago | 5

| accepted

Question

Exclude Digits from String using Regexp in MATLAB

Need to exclude Numbers from String and returns cell arrays of strings in MATLAB e.g str = 'abc76.5_pol0.00_Ev0.3' ...

8 years ago | 1 answer | 0

### 1

answerQuestion

Exception in thread "AWT-EventQueue-0" , java.lang.NullPointerException for MATLAB Command Window Usage

I have used com.mathworks.mde.cmdwin.CmdWin.getInstance() , to get the insatnce of command window in script. After creati...

8 years ago | 0 answers | 0

### 0

answersSubmitted

GetNegativeRoot similar to That of Positive Integers

GetNegativeRoot similar to That of Positive Integers

10 years ago | 0 downloads |

Submitted

Bulk File Rename

GUI Renames multiple files within a folder with same extension

10 years ago | 1 download |

how do i give xxx.txt file as input to Embedded Matlab Function in simulink model

Yes.. Make MATLAB function script file to read the data from xxx.txt file , wherein there are lots of handy function which ca...

10 years ago | 0

Solved

Make a Palindrome Number

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

10 years ago

Solved

Renaming a field in a structure array

MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

10 years ago

Solved

Duplicates

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

10 years ago

Solved

Indexed Probability Table

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

10 years ago

Solved

Extract leading non-zero digit

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

10 years ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

10 years ago

Solved

Remove the vowels

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

10 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

10 years ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

10 years ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

10 years 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 = ...

11 years ago

Solved

Make one big string out of two smaller strings

If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

11 years ago

Solved

Omit columns averages from a matrix

Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

11 years ago

Solved

First N Perfect Squares

*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

11 years ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

11 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

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

11 years ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

11 years ago