Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
Selects fields listed in a cell array from a struct. Optional third
argument suppresses error message if struct does not contain
given field.
Exmples:
struct2=selectfields(struct1,{list of field names})
Moves field names and corresponding field content from struct1 to
struct2.
struct2=selectfields(struct1,{list of field names},true)
Moves field names and corresponding field content from struct1 to
struct2 if field name exists in struct1. Error messages for
missing field nanes are suppressed
See also renamefields
See doc selectfields
Zitieren als
Bill Whiten (2026). selectfields: Select specified field names from a struct (https://de.mathworks.com/matlabcentral/fileexchange/63774-selectfields-select-specified-field-names-from-a-struct), MATLAB Central File Exchange. Abgerufen .
Quellenangaben
Inspiriert von: renamefields: Rename some field names in a struct
Inspiriert: Optional function arguments
Allgemeine Informationen
- Version 2.0.0.0 (4,38 KB)
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 2.0.0.0 | Updated as suggested by Stephen |
||
| 1.2.0.0 | Reloaded, thanks Stephen |
||
| 1.1.0.0 | Updated to include struct arrays, thanks to Jos & Stephen.
|
||
| 1.0.0.0 |
