Got Questions? Get Answers.
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:
Reading columns

Subject: Reading columns

From: Victoria Emberle

Date: 7 Dec, 2010 18:10:27

Message: 1 of 3

Hello,

I want to read the first column of A and find values less than or equal to 18 and greater than or equal to.

A=[measuredProfilePos,measuredProfileDose];

 measuredposA= measuredProfilePos<=18

This is what I am currently using an it is not working. I get a matrix off all 1's and I know there are values that are greater than 18 that was assigned a 1.

How can I fix this code?

Subject: Reading columns

From: Sean de

Date: 7 Dec, 2010 18:22:07

Message: 2 of 3

"Victoria Emberle" <emberley@uvic.ca> wrote in message <idltaj$cmd$1@fred.mathworks.com>...
> Hello,
>
> I want to read the first column of A and find values less than or equal to 18 and greater than or equal to.
>
> A=[measuredProfilePos,measuredProfileDose];
>
> measuredposA= measuredProfilePos<=18
>
> This is what I am currently using an it is not working. I get a matrix off all 1's and I know there are values that are greater than 18 that was assigned a 1.
>
> How can I fix this code?

measuredposA = A(:,1)<=18'

Subject: Reading columns

From: Victoria Emberle

Date: 7 Dec, 2010 18:22:07

Message: 3 of 3

greater than and equal to 0

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