Thursday, December 26, 2019

IELTS/TOFEL VOCABULARY SERIES

K-SERIES

Watch the link before you answer :K-SERIES TUTORIAL

1 KEN                                           
A

2 KIN                                 
B

3 KNACK                           
C

4 KNAVERY                                   
D

5 KNUCKLES                         
E

6 KNOCKOUTS                           
F




Watch the link before you answer :K-SERIES TUTORIAL
Answers:1 F   2 D   3 E   4 C   5 A  6 B

Wednesday, December 25, 2019

Problem 6. Select every other element of a vector

Input  x = [1 3 2 4 3 5]
 Output y is [1 2 3]
 Input  x = [5 9 3 2 2 0 -1]
 Output y is [5 3 2 -1]

Solution

function y = everyOther(x)
[m,n]=size(x);
for i=1:1:m
for j=1:2:n
y1(i,j)=x(i,j);
end
end
y= y1(y1~=0);
end

ALL TEST SUITES SATISFIED AS PER CODY CHALLENGE.



Monday, December 16, 2019

IELTS/TOFFEL VOCABULARY LEARNING SERIES



Match the following:

1)Abash                           a


2)Abate                           b
                   

3)Abandoned                   c


4)Abducted                      d 


5)Aberration                     e 






















Ans:1-d  2-a 3-e 4-b 5-c

Tuesday, December 10, 2019

Animate Tuesday

Primary and  Secondary Colors

The Primary Colors, Yellow, Red and Blue, are at the top of any color structure. That's because we call those colors as  Primaries. These are original parents of all colors.


RED-Primary Color.
Yellow-Primary Color
Blue-Primary Color

Next come the three Secondary colors, Orange, Purple and Green. These are Secondary colors considered as the children of the three Primaries.

The Secondary colors are obtained by:

  • Yellow  +  Red  =  ORANGE

Orange-Secondary Color

  • Red  +  Blue  =  PURPLE


Purple-Secondary Color

  • Blue  +  Yellow  =  GREEN

Green-Secondary Color

Monday, December 9, 2019

Matlab Monday

Hi every one welcome to Matlab Monday. In this space I try to solve Matlab cody Problems.To start the solving marathon,my start point is at  My First code.




Code:
Given the variable x as your input, multiply it by two and put the result in y.

Input  x = 2
   Output y is 4
Input  x = 17

   Output y is 34
Solution

function y = times2(x)

             y=x*2


end

Test Suite:



For solving this problem My Matlab Cody status:

To start with this is a simple code,as we progress we will solve more complex and challenging problems.



IELTS/TOFEL VOCABULARY SERIES

K-SERIES Watch the link before you answer : K-SERIES TUTORIAL 1 KEN                                            A 2 KIN             ...