Specified directory not found in NIMROD_wintest1

조회 수: 1 (최근 30일)
muhammad choudhry
muhammad choudhry 2022년 11월 21일
댓글: muhammad choudhry 2023년 9월 9일
Hi,
can anyone help please? I am not sure what am I doing wrong here, calling a function but getting the error shown below. attaching the function file with the post
Error:
Error using NIMROD_wintest1
Specified directory not found in NIMROD_wintest1
Error in rainfall_nimrod (line 5)
status = NIMROD_wintest1( 'C:\User\Document\202209200920_nimrod_ng_radar_rainrate_composite_1km_UK_cutout_Ireland_329x432');
Code:
close all; clear all; clc;
dirname = 'C:\User\Document\202209200920_nimrod_ng_radar_rainrate_composite_1km_UK_cutout_Ireland_329x432';
[ status ] = NIMROD_wintest1( dirname)
>>

답변 (1개)

Akash
Akash 2023년 9월 7일
Hi,
I understand that you are encountering an error when calling a function.
I want to inform you that I was able to execute the code correctly in my system. Therefore, it is likely that the issue lies with the directory path you provided or the existence of the directory itself.
I recommend double-checking the path you provided and ensuring that the directory exists. It is possible that there might be a mistake in the path or a typo in the directory name. Additionally, please verify the case sensitivity of the path, as it could affect the directory recognition.
You can also refer to the MATLAB documentation for "isdir" to obtain more information on its usage and syntax. The link is provided below.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by