필터 지우기
필터 지우기

Error using load? File appears in workspace

조회 수: 3 (최근 30일)
Stefan
Stefan 2014년 9월 27일
답변: Image Analyst 2014년 9월 29일
Hello, I'm currently trying to do a homework assignment for a MATLAB class I have. The professor gave us a matrix to perform Gaussian elimination on. I've downloaded the file, and it appears in the workspace. When I try to load the file, it gives me the error message:
Error using load Unable to read file 'y': no such file or directory.
I'm not sure where to go from here, I can't get anything else to work. Does anyone else have advice/help? I'm only a beginner, so thank you for the patience.
  댓글 수: 1
dpb
dpb 2014년 9월 27일
Need to see what the script/function gecp.m contains. It appears it's trying to use a load statement with but it's not clear how it expects to get the input filename to do so with the variable y containing an file name but it also appears that y is the string 'y' somehow altho as you note there's an existing y numeric array in the workspace.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2014년 9월 29일
You don't load y. y was already in the workspace -- we can see it in the workspace panel in your screenshot! It was probably created by one of those other m-files that you had run previously. Just do "clear all" and look over your history to discover what you did to make the y spring into existence. And once it's there, it's there -- no need to try to load it or a file called y, which does not exist in your current folder as we can see from your screenshot.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by