


{"id":352606,"date":"2024-02-20T16:45:07","date_gmt":"2024-02-20T16:45:07","guid":{"rendered":"\/forum\/forums\/topic\/fdtd-error-while-importing-a-source-matlab-array-does-not-contain-a-dire\/"},"modified":"2024-02-20T16:45:07","modified_gmt":"2024-02-20T16:45:07","slug":"fdtd-error-while-importing-a-source-matlab-array-does-not-contain-a-dire","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/fdtd-error-while-importing-a-source-matlab-array-does-not-contain-a-dire\/","title":{"rendered":"FDTD error while importing a source \/ &#8220;Matlab array does not contain a dire&#8230;.&#8221;"},"content":{"rendered":"<p>I have been trying to import a custom source into my FDTD simulation. I started by following the steps from FDTD lesson 7. This lesson gives script to generate a .mat file of which can be simply selected from an &#8220;input source&#8221; edit menu. However as I try to I keep recieving the following error. The .mat file and the FDTD file are both in the same file and both in C: drive, locally on my computer. I have tried moving the two to other folders however I keep recieving the same error. I am confused as I have followed the steps from the video exactly and can&#8217;t see where I am going wrong. I assume the directory issue is to do with the location of the files however I can&#8217;t see why this might be a problem while in my C: drive.<\/p>\n<p>Any help would be great. Happy to expand further as to the location of the files etc.<\/p>\n<p>Error:&nbsp;<\/p>\n<p>&#8220;Could not create a dataset from the file. The error is &#8216;Matlab array does not contain a directory field&#8217;. Please check the documentatoin on the correct file format.&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/20-02-2024-1708447186-mceclip0.png\" width=\"330\" height=\"220\"><\/p>\n","protected":false},"template":"","class_list":["post-352606","topic","type-topic","status-closed","hentry","topic-tag-error","topic-tag-fdtd","topic-tag-import","topic-tag-importsource-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["67599","2592"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["761"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["352606"],"_bbp_forum_id":["27816"],"_bbp_engagement":["2592","67599"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["353207"],"_bbp_last_active_id":["353207"],"_bbp_last_active_time":["2024-02-22 16:50:44"]},"test":"pm238st-andrews-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/352606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/352606\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=352606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}