How to run this file

조회 수: 4 (최근 30일)
joo tan
joo tan 2012년 12월 29일
.I want to compute geostrophic current using a m.file create by forum member..I try to follow the steps.i make simple command (name Derivecurrent.m) to run the function.but when i run, appear error
Undefined function or method 'getfilename' for input arguments of type 'char'.
This is link for the file ..hope somebody can help me..really need to use this m.file to process my data..
  댓글 수: 4
Jan
Jan 2012년 12월 29일
@Image Analyst: WinZIP handles RAR files, 7zip also, tugzip does and ALZip, PowerZip, Zipeg, Stuffit, Eazel and PicoZip, izarc,
Under Ubuntu:
sudo apt-get install rar unrar
And Ark and XArchiver handle RARs also.
Image Analyst
Image Analyst 2012년 12월 29일
Well Windows 7 can't open rar extensions - it says "Windows can't open this file." On my work computer when I needed to open a rar file once I had to search around and finally stumbled upon 7zip. I installed that and it opened fine. I don't have 7zip on my home computer, though maybe I should. I'm just saying that uploading standard zip files would make it easier for people so they don't have to install another software package. I didn't even bother to download his file except just now (after your message) to verify (again) that Windows in fact can't open a rar file. Apparently even though Windows uses a .zip extension when it compresses files, it does not use Winzip.

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

채택된 답변

Image Analyst
Image Analyst 2012년 12월 29일
I don't have the MATLAB file and copying and pasting produced errors which I'm sure are different than yours. I don't have the data file, though I guess I could create it from the data you supplied. And I don't have the error - you forgot to tell us. So all of that leads me to suggest you solve it yourself with the debugger. It will actually be the fastest way to solve it rather than debugging via messages to the Answers forum.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 12월 29일
You need to download some of the files from http://www.phys.ocean.dal.ca/~mirshak/?link=matlab
  댓글 수: 2
joo tan
joo tan 2013년 1월 4일
yes ..i already download..but Matlab not recognized the "getfilename"..
joo tan
joo tan 2013년 1월 4일
i already success to run..but i dont know how to get the result...do you think i need add something to my source code?? see below
load ('SSH.DAT'); [LONG,LAT,SSH,GEO] = currents('SSH.DAT',0.25);

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by