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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

2820Rank

4Badges

185Score

Praveen Suvarna submitted Solution 171731 to Problem 6. Select every other element of a vector

on 3 Dec 2012

Praveen Suvarna submitted Solution 171712 to Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN

on 3 Dec 2012

Praveen Suvarna submitted a Comment to Problem 1048. Detect a number and replace with two NaN's

Is it fine now?

on 26 Nov 2012

Praveen Suvarna submitted a Comment to Problem 1048. Detect a number and replace with two NaN's

Dear all,
You can make use of 'isnan'
Try.
It can be solved...

on 22 Nov 2012

Praveen Suvarna received Creator badge for Problem 1048. Detect a number and replace with two NaN's

on 22 Nov 2012

Praveen Suvarna submitted Problem 1048. Detect a number and replace with two NaN's to Community

on 22 Nov 2012

Praveen Suvarna submitted Solution 166276 to Problem 3. Find the sum of all the numbers of the input vector

on 21 Nov 2012

Praveen Suvarna submitted a Comment to Solution 166158

function y = cleanUp(x)
x=[5 17 -20 99 3.4 2 8 -6]
for i=1:8
if (x(i)<0||x(i)>10)
y(i)=NaN;
else
y(i)=x(i);
end
end
Can anybody tell what is wrong with this code so that it is not clearing test 2.

on 21 Nov 2012

Praveen Suvarna submitted Solution 164179 to Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]

on 19 Nov 2012

1 – 19 of 19 previous next