Times 2 - START HERE - MATLAB Cody - MATLAB Central

Problem 1. Times 2 - START HERE

Difficulty:Rate

Try out this test problem first.

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

Examples:

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

Solution Stats

68.35% Correct | 31.65% Incorrect
Last Solution submitted on May 14, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
3
5
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

High School Challenge Image
High School Challenge
  • 50 Problems
  • 100 Finishers

Problem Recent Solvers106285

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page