필터 지우기
필터 지우기

Function definitions are not permitted in this context.

조회 수: 1 (최근 30일)
Arun Kumar Singh
Arun Kumar Singh 2020년 5월 4일
댓글: Walter Roberson 2020년 5월 5일
cd E:\MATLAB\Data
function out = iri2016(time, latitude, longitude, height, utc, coord, ...
curldir, Rz12, IG12, f10_7_daily, f10_7_81day, tec_hmax, ne_top, ...
fpeak, f2storm, fpeak_height, bottom, f1_prob, auroral_boundary, ...
foE_storm, Ne_Dreg, Te_top, ioncomp, NmF2_foF2, hmF2_M3000F2, ...
NmE_foE, hmE, B0)
% IRI2016 International Reference Ionosphere 2016 output parameters.
%
[edit Rik: rest of file moved to attachment]
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 5월 5일
iri2016 code is copyrighted. it cannot be posted without permission of the author.

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

답변 (1개)

Rik
Rik 2020년 5월 4일
You put a line of code before the first function. You can only do that if you intend your file to work as a script, and if you close all functions with the end keyword. You seem to be doing neither.
You should remove the cd line from your file.
  댓글 수: 10
Rik
Rik 2020년 5월 4일
What does this line return?
system('"E:\MATLAB\Data\curl" -h')
  • If it returns an error, then your system can't actually find curl. That is something you need to fix.
  • If it doesn't return an error there is something wrong with the function. Contact the author of the function.
Rik
Rik 2020년 5월 5일
If this helped you, please consider marking my answer as accepted.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by