There is a text document with data seperated by the "," sign.(adsbygoogle = window.adsbygoogle || []).push({});

such as 58.5698, 75.2495, 57.1548.....

I want to createa vector called Y in matlab using these datas. there are 50 values.

i opened the file with the fopen command.

And then tried with the fgetl command. but when I use the "Y(1)" command to get the first value, it produces the number 5 instead of the 58.5698.

Thanks in advance.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to create a verctor in matlab using data recorded in a text document?

Loading...

Similar Threads - create verctor matlab | Date |
---|---|

How to program this in Matlab | Feb 28, 2018 |

Matlab How to create distinct circles in Matlab? | May 11, 2017 |

Create track map using Lateral acceleration & speed in Matlab | Mar 11, 2016 |

How to create a matrix with variables? | Jan 28, 2016 |

**Physics Forums - The Fusion of Science and Community**