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
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

When can a user program execution be interrupted? It won't be desirable to interrupt a program when an instruction is being executed and is in a state such as instruction decod

Q. What is Sun and Nis Law? The Sun and Ni's Law is a simplification of Amdahl's Law and Gustafson's Law. The basic concept underlying Sun and Ni's Law is to find solution to a

Q. Show Basic concepts of permutation? Let us look at the basic concepts of permutation with respect to interconnection network.  Let us say the network has set of n input node

For two stages network the switching elements for M inlets with r blocks and N outlets with s blocks is given by (A) Ms + Nr                                (B)  Mr + Ns (

Parallelism Conditions As discussed earlier, parallel computing needs the segments to be executed in parallel should be independent of each other. So before executing paralleli

Write down the drawback of top down parsing of backtracking. Following are disadvantages of top down parsing of backtracking: (i) Semantic actions can't be performed whereas

Difference between Visual check and Parity check Visual check This is checking for errors by comparing entered data with original document (NOTE: this is not the same as

What logic gets synthesized when I use an integer instead of a reg variable as a storage element? Is use of integer recommended? An  integer  can  take  place  of  a  reg  as

Explain the term Confidentiality - Firewall Design Policy Whilst some corporate data is for public consumption, the vast majority of it should remain private.