Rank: 8079 based on 5 downloads (last 30 days) and 1 file submitted
photo

tushar kataria

E-mail
Company/University
Guru gobind singh indraprastha university

Personal Profile:
Professional Interests:
signal processing , communication , image and video processing

 

Watch this Author's files

 

Files Posted by tushar
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria mathematics 5 4
  • 1.0
1.0 | 2 ratings
Comments and Ratings on tushar's Files View all
Updated File Comment by Comments Rating
26 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria Brimijoin, W. Owen

There are other ways of solving this problem. I have here a humble suggestion:

function y = myfun(x)
tic;
pause(2*x)
y = toc;

Note that for large values of x, this may take some time to execute. It also may not return a precise value.

26 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria Eric

Thanks for this wonderful submission. I had no idea Matlab could perform multiplication! For years I've been saving variables to spreadsheets, multiplying them in Excel, and then importing them back to Matlab. I shudder at the countless hours I've wasted when I could have just done this work in Matlab. Thanks again.

26 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria D'Errico, John

Give me a break. And such a creative name for the function, my fun. Useless.

26 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria Simon, Jan

Why do you think, that this function is useful for others? Multiplying a variable by 2 should not be done in a function, but directly in the code.

Contact us