# Nikhil Vyas

### The MathWorks Inc

Followers: 0 Following: 0

Programmer | Gamer | Photographer

**Statistics**

RANK**2,036**

of 291,908

REPUTATION**30**

CONTRIBUTIONS

**0** Questions

**21** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**7**

RANK

of 19,841

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

Making accurate graphs of vectors calculated in while loop

Assuming you want to plot the values in Q_stored and T_Stored against the progress of while loop(which is basically the value of...

8 years ago | 0

How can I avoid the dreaded P=NaN when using chi2gof?

This answer might help you: <http://www.mathworks.com/matlabcentral/answers/55082-chi-square-test-with-2-bins-why-do-i-get-p-...

8 years ago | 0

Code Generation with Inlined S-Functions

I don't know about any in-build method to do this. However you can configure the model to execute your custom code before loadin...

8 years ago | 0

Is Matlab support for the Raspberry Pi coming to linux?

Well, we can only wait. But I personally think it is quite possible. :)

8 years ago | 0

plot3 with datetime

It's not possible to use datetime with plot3. However, you can use your axis values with datetick to display the axis ticks as d...

8 years ago | 0

| accepted

Plot separate histograms.

Assuming this is a n x 5 matrix, the following commands will give you separate matrices based on your condition. % x being ...

8 years ago | 0

| accepted

Is there a way to upload files on matlab drive using android device (Moto G Phone)?

Unfortunately, uploading files from the mobile is not supported. Please look at the following screenshot from the MATLAB Mobile ...

8 years ago | 1

Finding Angle between two lines on an image

You may use Hough Transform to detect multiple lines on an image. Once you have the lines, it's pretty straightforward to calcul...

8 years ago | 0

How to detect white patches in the image?

You may use regionprops for this. For information about usage of regionprops, refer the following link. <http://www.mathworks...

8 years ago | 1

how to determine whether a queue is empty in Simevents and do some actions based on this observation?

The Queue blocks(and almost all the other similar blocks of simevents) has a Statistics Tab in the Block Parameters. <</matla...

8 years ago | 1

How to simulate a (warehouse) subscription order process with SimEvents?

For random orders by a customer, you may use the Event-Based Entity Generator block coupled with a Random Event Generator(Random...

8 years ago | 0

Mapping Out and Multiplying Elements in Vectors

In your expected output matrix, where is the row [0.00 48.77 33.00] coming from? Other than that, you can find the average us...

8 years ago | 0

How to deal with multiple time series in MATLAB?

The approach I would use is: merge the MAT files, initialize the N x 16000 timeseries. So basically after merging, your final...

8 years ago | 0

Cannot write new code or change variables when in Debug Mode

You can't make changes to your code while you're in Debug mode. If you try to save your changes, it would prompt you to exit the...

8 years ago | 0

| accepted

Matlab R2016a MLX generated figure no response

It might be possible that the *.fig extension files are not associated with MATLAB. You can change file association in Windows b...

8 years ago | 0

I have this code creating a list of months, however the output is on the last month, Dec. Is it possible to create a matrix of the individual month in order to incorporate into another code?

I'm not sure about what output you require from this code so I'm assume that you just want a cell array with month values. It...

8 years ago | 0

Change Color of Specific Legend Text (not all text)

Instead of doing all that, you can use LaTeX to change the color of the legend text. Let's take a simple example. x = [1 2 ...

8 years ago | 3

| accepted

How do I get my name to show up on Cody Challenges?

In case your name is not showing up the submission list, you may use the following workaround to view your submissions. 1) Su...

8 years ago | 0

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

8 years ago

Bit Extraction - Simulink

You can use the Bit Slice block instead of Extract Bits to achieve the same. Something like this: <</matlabcentral/answers/u...

8 years ago | 1

How to read in an xml file created by c#

If you provide proper starting and ending tags, it works properly with xmlread. I modified your first xml and added the second x...

8 years ago | 0

how can i translate matlab from english to spanish?

Assuming you're using Windows OS, go through the accepted answer at the following link. http://www.mathworks.com/matlabcentra...

8 years ago | 0

Solved

Pizza!

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

8 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

8 years ago

Solved

Determine if input is odd

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

8 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

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

8 years ago