Ansys Optics Help Center home page
Products
  • DEVICE Suite
  • FDTD
  • MODE
  • CHARGE
  • HEAT
  • DGTD
  • FEEM
  • MQW
  • STACK
  • SYSTEM Suite
  • INTERCONNECT
  • CML Compiler
  • Laser Library
  • System Library
  • Photonic Verilog-A
  • HPC & Cloud
  • FDTD Accelerator
  • MODE Accelerator
  • Interoperability
  • Automation API
  • Tool Integrations
  • Foundry Support
  • License Agreement
  • System Requirements
  • Downloads
Solutions
  • Applications
  • Ecosystem Partners
  • Customer Success
Learn
  • Learning Centre
  • Training
  • Webinars
  • Upcoming Events
  • Videos
  • White Papers
Submit a request
Sign in Evaluate for Free
  1. Ansys Optics
  2. Scripting Language
  3. Commands

TOP

zeros - Script command

FDTD MODE DGTD CHARGE HEAT FEEM INTERCONNECT

Initialize a matrix. All elements are set to zero (same as matrix ).

Syntax

Description

x = zeros(i,j,k,....);

Initializes an i x j x k x .... matrix.

Examples

?x=zeros(2,2,2);
result(i,j,1):
0 0 
0 0 
result(i,j,2):
0 0 
0 0 

See Also

List of commands , linspace , matrix , ones , []

Associated files

Related articles

  • matrix - Script command
  • Lumerical scripting language - By category
  • ones - Script command
  • matlabsave - Script command
  • getdata - Script command

Products

  • FDTD
  • MODE
  • CHARGE
  • HEAT
  • DGTD
  • FEEM
  • MQW
  • STACK
  • INTERCONNECT
  • CML Compiler
  • Automation API
  • Photonic Verilog-A
  • Licensing
  • Downloads

Resources

  • Learn
  • Support
  • Solutions
  • Ecosystem Partners
  • Ansys Innovation Courses
  • Ideas Exchange
  • Ansys Learning Forum
  • Knowledge Base
  • Application Gallery

Corporate

  • About Lumerical
  • Careers
  • News Releases
  • In the Literature
  • Contact Us

Stay in the know

Subscribe to Spotlight Newsletter

Copyright 2022 Ansys Canada Ltd.


  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • Legal Notices
  • Sitemap