Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello I am trying to create a game using Matlab, but I have problem using while condition. Why I need to type number 1 two
Hello
I am trying to create a game using Matlab, but I have problem using while condition. Why I need to type number 1 two times in order to do the condition?
MATLAB R2016a academic use PLOTS EDITOR PUBLISH Insert Find Files Run Section New Open Save Compare 5 i Go To Comment Breakpoints Run Run and Advance Run and Indent Find New folder (2) Editor HANew folder (2)Amain game.m* Current Folder main-game m Tries m Untitled4 x 91 main m Name 1 1: 5: 6:10:11:15 2 Level 11:s1 Main game m correct answer- main game asV main game m 4 Wrong answer 0 myscore.m myscore1.ma 6 01 input enter a numbeer myscore2.m 7 100 mytotalscore.m 8 While Q1 r; Tries,m 01 input enter a numbe if 01 10 disp ('good') break 13 end 14 end 15 16 17 main game,m (Script Search Documentation Ln Col T-IV/.F/IV
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started