For one of my classes, our project is to write a script that simulates the game of craps. I have no problem with the actual game, but one of the criteria is that after the player wins or loses, we are supposed to prompt them to quit or play again (this is where I'm stuck).
Is there a command...
My first thought would be that you'd need to have f = 2x^2 + 0x + 1 because with what you have f as right now, MATLAB doesn't know that the x coefficient is 0 if it's not explicitly typed.
Then again I'm no expert so there's a good chance I'm wrong, just a thought.