Cannot load .csv file into matlab

12 ビュー (過去 30 日間)
Yu-Kuo Sheu
Yu-Kuo Sheu 2019 年 2 月 3 日
回答済み: Walter Roberson 2019 年 2 月 3 日
Hi i am trying to load a .csv file provided by my teacher for school and when i type in:
c = csvread('CoolingLiquid.csv')
i just get a error message even though the file only has one column of only numbers. If anyone could help that would be much appreciated.
This is the error message:
Error using csvread (line 35)
File not found.
Error in CoolingLiquidDK (line 10)
c = csvread('CoolingLiquid.csv')
  1 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 3 日
It maybe because the file is not in matlab's path , make sure it is and try again.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 2 月 3 日
You do not have a file with that name in your current directory, or anywhere along the MATLAB path. It is probably in a different directory.
You can cd() to the directory the file is in, or you can specify the complete name when you read the file:
c = csvread('C:\Users\yukuos\Documents and Settings\MATLAB\CoolingLiquid.csv');
but use the correct name for where the file is on your system.

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by