Identifying a problem with fopen

조회 수: 53 (최근 30일)
Ian
Ian 2011년 4월 4일
So I'm trying to use MATLAB to analyze a .c3d file (I don't know how many of you are familiar with OptiTrack ARENA). I want to open the file using fopen, and open it in it's native format. However, fopen cannot open the file for some reason. Is there a way to find out why, and possibly rectify the situation? I'm still not entirely sure whether the problem is on the MATLAB or ARENA end, but help me out here.

채택된 답변

Walter Roberson
Walter Roberson 2011년 4월 4일
If you use
[fid, msg] = fopen('TheName.c3d', 'r');
then what msg is returned ?
  댓글 수: 2
Ian
Ian 2011년 4월 4일
Ah, there we go. It told me that the file couldn't be found, and I know why. Apparently I was in the wrong directory and didn't notice it, so the file couldn't be opened. I fixed it, and now msg is just an empty string. Thanks. The program still doesn't work, but it's not because of fopen now.
Anoosha papireddy
Anoosha papireddy 2012년 7월 6일
i had the same problem and now my code is working. thanks.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by