We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Photonics – Chinese

Photonics – Chinese

Topics related to Lumerical and more, in Chinese language.

FDTD 2023版更新后问题

    • Yunlai Fu
      Subscriber

      之前使用的是2020版,代码中有一行在这之前用matlabload指令读取了一个只有一行的mat文件(pop),利用代码对将其转换成2d的矩阵,运行正常
      更新到2023r2后,运行时报错:Variable referenced with . operator is not a cell。不知道怎么解决

    • Yunlai Fu
      Subscriber

      如图,采用对单个元素赋值的方法对pop2d赋值(不是简单的将1*576变形为24*24)

    • Guilin Sun
      Ansys Employee

      . operator 适用于Dataset 或者struct。

      从图中看应是矩阵数据了,你直接显示看看,比如

      ?pop(1);

      ?pop2d(1,1);

      看看是否有结果显示,如果能显示,应该没有啥问题,你检查一下为什么会出现点操作。

      另外,请更新到2024版。

      你说的这个代码是哪个例子的?

    • Yunlai Fu
      Subscriber

      ?pop(1)不能显示,仍然报错Variable referenced with . operator is not a cell。代码是我自己写的,之前在老版本上运行正常,换到新版本上直接报错了

    • Yunlai Fu
      Subscriber

      目前发现了一个解决办法,matlab中的pop.mat文件在fdtd里读出来以后默认名称为pop,需要将其改成其他的名字popbest,然后可以正常运行。请问是这个版本内置了默认的pop还是其他的指令导致产生了冲突吗?

    • Guilin Sun
      Ansys Employee

      Zemax 有个产品叫POP,有可能是这个问题吧:https://optics.ansys.com/hc/en-us/articles/360042097313-Small-Scale-Metalens-Field-Propagation

      我测试给 pop 赋值,结果软件提示

      'pop' is a built-in script function.

      目前还没有更新网站。

Viewing 5 reply threads
  • The topic ‘FDTD 2023版更新后问题’ is closed to new replies.