Ansys Optics Help Center home page
Products
  • Ansys Lumerical
  • Ansys Speos
  • Ansys Zemax
  • License Agreement
  • System Requirements
  • Downloads
Solutions
  • Applications
  • Ecosystem Partners
  • Customer Success
Learn
  • Learning Centre
  • Webinars
  • On-Demand Webinars
  • Videos
  • White Papers
  • Blogs
Submit a request
Sign in Evaluate for Free
  1. Ansys Optics
  2. Scripting Language
  3. Commands

TOP

transpose - Script command

FDTD MODE DGTD CHARGE HEAT FEEM INTERCONNECT

Transposes a 1D or 2D matrix.

Syntax

Description

y = transpose(x);

If x is an N x M matrix, then y will be M x N, where the entries are y(j,i)=x(i,j).

Example

Simple example of how to transpose a 2D matrix.

?A = [1,2,3;4,5,6];
?AT = transpose(A); # transpose of A
result:
1  2  3  
4  5  6  
result: 
1  4  
2  5  
3  6  

See Also

List of commands , ctranspose , reshape , flip , permute , size

Associated files

Login to download

Related articles

  • flip - Script command
  • Lumerical scripting language - By category
  • plot - Script command
  • reshape - Script command
  • matrix - Script command

Products

  • FDTD
  • MODE
  • CHARGE
  • HEAT
  • DGTD
  • FEEM
  • MQW
  • STACK
  • INTERCONNECT
  • CML Compiler
  • 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 2023 Ansys Canada Ltd.


Ansys / Lumerical
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • Legal Notices
  • Sitemap