how to make an empty time vector

6 ビュー (過去 30 日間)
Rocky
Rocky 2017 年 9 月 3 日
回答済み: Mikhail Smolovik 2019 年 10 月 4 日
I want to design an vector and download in DSP. But When I set "cycling repetition" on the "from workspace pane".An error is" Cannot specify cyclic repetition in 'SPWM/From Workspace' when the time vector is explicitly specified for the data. The cyclic option is supported only when the data is in the form of a structure with an empty time vector."So I want to read the data repeatedly ,how can I do! Thanks!

回答 (1 件)

Mikhail Smolovik
Mikhail Smolovik 2019 年 10 月 4 日
You should make a structure which has fields 'time' and 'signals'.
'time' field must be empty (see below), 'signals' field must be structure with your data.
values = struct('values', YourData);
A = struct('time', [], 'signals',values);
then use A in "From Workspace" block with setting Sample time

カテゴリ

Help Center および File ExchangeSignal Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!