shp2spc


Purpose

Write imat_shp to NASTRAN SPC cards

Syntax

SPC = SHP2SPC(S[,FILENAME][,'spcd'])

Description

SHP2SPC writes out NASTRAN SPC cards to FILENAME for a given shape S. "0" entries are ignored.


S is an imat_shp

FILENAME is a string containing the output file name. If FILENAME is not specified or contains wildcards (i.e. '*.blk'), a standard file dialog will appear.

'spcd' will write SPCD instead of SPC cards to FILENAME. The coefficients will be normalized to the maximum value in each shape in S.

SPC contains the text of the output after the header.

Examples

>> shp2spc(s,'spc_shapes.blk')