TAGGED: script
-
-
August 23, 2023 at 8:27 am
zihan shen
Subscriber各位老师好,请教一下lemerrical中有没有像matlab中的cat一样的函数,可以用于串联元胞数组中的矩阵,以便将元胞数组中每个矩阵(同维)的每个维的值加起来。
matlab中:
-
August 24, 2023 at 7:27 pm
Guilin Sun
Ansys Employee从这个链接看 Concatenate arrays - MATLAB cat (mathworks.com)
相当于把第二个矩阵加到第一个矩阵后面产生新的矩阵。
遗憾,没有。你需要先定义一个新矩阵,大小是两个矩阵长度的和,然后将这两个矩阵分别赋值给新矩阵,比如
A1 长n1; A2 长n2,则需要
A3=matrix(n1+n2);
A3(1:n1)=A1;
A3(n1+1,n1+n2)=A2;
你试一下。高维的也采用类似方法,当然也可以将高维压缩为一维,然后再Reshape。
https://optics.ansys.com/hc/en-us/articles/360034925873-reshape-Script-command
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- how to export results from SPEOS to Mechanical
- Negative Reflection Problem
- Simple Optical simulation
- Ansys SPEOS- Diffusion Coefficient of a fluorescence
- Ambient source on Ansys SPEOS
- Purcell Factor on Dielctric Mirror
- Light reflection on a XMP map
- HUD simulation Speos
- How I can get a student version of Ansys Speos Software to learn?
- Ansys SPEOS-Fluorescent Material
-
7592
-
4440
-
2953
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.