Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Plot

Subject: Plot

From: Pradeep Ramalingam

Date: 28 May, 2010 09:08:05

Message: 1 of 2

i need some help in ploting graph for the following scenario, need some help....

for(i=1;i<=10;i++)
{
a=randint(10,10,4); //intialized 10 x 10 array with random values from 0,1,2,3
}

for every iteration for i=1:10 i need to count the number of 0's,1's,2's,3's that are intialized in an array and plot a graph with iterations in x-axis and number of 0,1,2,3 in y axis with different colours in same plot......

Subject: Plot

From: TideMan

Date: 28 May, 2010 09:57:30

Message: 2 of 2

On May 28, 9:08 pm, "Pradeep Ramalingam"
<pradeep.ramalin...@gmail.com> wrote:
> i need some help in ploting graph for the following scenario, need some help....
>
> for(i=1;i<=10;i++)
> {
> a=randint(10,10,4); //intialized 10 x 10 array with random values from 0,1,2,3
>
> }
>
> for every iteration for i=1:10 i need to count the number of 0's,1's,2's,3's that are intialized in an array and plot a graph with iterations in x-axis and number of 0,1,2,3 in y axis with different colours in same plot......

Wrong newsgroup.
This is Matlab, not C++

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us