Write a basic matlab code that allows the user to play

Assignment Help Electrical Engineering
Reference no: EM13273578

write a basic MatLab code that allows the user to play against the computer in a game of battleship. All the script needs to do is make a two 10 by 10 grids, one for the user, one for the computer. Allow the user to choose where to place their ships, and in which direction. Then have the computer randomly place its ships.

Reference no: EM13273578

Questions Cloud

Explain chromatographic analysis : A solution containing 3.45 mM of p-xylene (analyte) and 6.86 mM of nonane (standard) gave peak areas of 13587 and 14769 respectively, in a chromatographic analysis. then 1.5 mL of 6.86mM nonane solution was added to 5 mL of an unknown sample conta..
What is the amplitude of the current : A charged capacitor is connected to an ideal inductor. At time t = 0, the charge on the capacitor is equal to 6.00 µC. What is the amplitude of the current at that same instant
Calculate the option profit to the trader : At the expiration, the stock price becomes $18.99. Calculate the option profit to the trader.
What is the value of an fra : The 12-month, 15-month, 18-month zero rates are 4.5%, 4.6%, 4.7% with continuous compounding. What is the value of an FRA that enables the holder to earn 6.1% (with semiannual compounding) for a 3-month period starting in 1 year on a principal of ..
Write a basic matlab code that allows the user to play : All the script needs to do is make a two 10 by 10 grids, one for the user, one for the computer. Allow the user to choose where to place their ships, and in which direction. Then have the computer randomly place its ships.
Describe compound y contains only carbon and hydrogen : Compound Y contains only carbon, hydrogen, and oxygen. When a 1.000-gram sample of Compound Y is subjected to combustion analysis, 2.432 grams of CO2 and 0.574 grams of H2O are produced. Determine the empirical formula of Compound Y.
What is the net cash flow of the swap contract : Suppose the 6-m LIBOR rates were 5.7% on 6/1/2013 and 6% on 12/1/2013. What is the net cash flow of the swap contract on 12/1/2013?
Explain the importance of the house of refuge : Explain the importance of the House of Refuge, The Lyman School for Boys, and the Cottage Reform School.
Determine all minimum sum of products expressions : find all minimum sum of products expressions. ( if there is more than one solution ,the number of solutions is given in parentheses.) label the solutions f1,f2.... a) f(w,x,y,z)= Σm(1,3,6,8,11,14)+Σd(2,4,5,13,15)

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd