Using the editor or debugger, Computer Engineering

Write a script that will read from a file x and y data points in the following format:

x   0    y  1
x  1.3  y  2.2
x  2.2  y  6
x  3.4  y  7.4

The format of each line in the file is the letter 'x', a space, the x value, space, the letter 'y', space, and the y value.  First, make the data file with 10 lines in this format.  Do this by using the Editor or Debugger, then File Save As "xypts.dat".   The script will attempt to open the data file and error-check to make sure it was opened.  If so, it uses a for loop and fgetl to read every line as a string.  In the loop, it makes x and y vectors for the data points.  After the loop, it plots these points and attempts to close the file.  The script should print whether or not the file was effectively closed. 

Posted Date: 3/20/2013 2:13:02 AM | Location : United States







Related Discussions:- Using the editor or debugger, Assignment Help, Ask Question on Using the editor or debugger, Get Answer, Expert's Help, Using the editor or debugger Discussions

Write discussion on Using the editor or debugger
Your posts are moderated
Related Questions
Tell me which queue having present queue depth should be greater than zero? Ans) Event queues Open MQ Explorer by selecting Start > Programs > IBM WebSphere MQ > WebSphere

Restating the Requirements To have clarity of analytical model of system you must state requirements specific performance constraints with optimization criteria in one documen

Q. Conversion of BCD number to binary using a procedure? Conversion of BCD number to binary using a procedure. Algorithm for conversion procedure: Take a packed BCD digit


Explain adaptive routing. Adaptive routing defines the ability of a system, by which routes are characterised through their destination, to change the path that the route takes

What is XMS Memory system is divided into 3 main parts. TPA (transient program area), system area and XMS (extended memory system). Type of microprocessor in your computer sign

Define Grammar of a language. A formal language grammar is a set of formation rules which describe that strings formed from the alphabet of a formal language are syntactically


Describe about the Layered computer design Introduction Layered computer design focuses on computer design. It uses top-down, layered approach to design and also to improve

What are the two levels in defining a Match Code? Match Code Object. Match Code Id.