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.



No comments:

Post a Comment

IELTS/TOFEL VOCABULARY SERIES

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