...
Wiki Markup |
---|
Create a text file called _input_data.txt_ in your working directory with the elements of _\[A\]_, each row being on a separate line: !input_data.jpg! Keep in mind that we have used whitespace to delimit (i.e. differentiate) the different numbers. We'll read in this data using the _dlmread_ command. Check the documentation on this command: *Help > Index (tab) > dlmread* |
Scroll down to look at the example under Remarks.
Consider the following statement:
A=dlmread('input_data.txt')
Wiki Markup |
---|
This will read in _\[A\]_ from the specified file. Let's test this at the command line before we add it to our program: |
...