Concatenate Arrays of different size and data types with blanks

1 回表示 (過去 30 日間)
Amanda Beatty
Amanda Beatty 2021 年 1 月 14 日
コメント済み: Amanda Beatty 2021 年 1 月 19 日
I have a struct with volts, current, temp, and timestamp for each unit. The each measure has it's own timestamp. So my current struct has columns for: "unitID" (single value), "Volts", "voltage timestamp", "current", "Current timestamp", "Temp", "temp timestamp", and "baseline" (single value). I need to concatenate these measurements into an array with the following format:
For reference, the length of each of these will be 50,000+
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 1 月 14 日
If the same timestep appears for multiple measurements, should the data be merged? It does not appear to be in your example -- for example 1:00:00 AM has volts and current and temp but you do not construct a single
a 2 55 12 12:00:00 AM 5
for that.
Anyhow, you will need to convert to your numbers to character vectors to do what you want. Numeric table() cannot display emptiness in entries.
Amanda Beatty
Amanda Beatty 2021 年 1 月 19 日
Thank you! Converting everything to character vectors was the missing link for me to concatenate this the way I wanted.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by