When I am trying to import .csv file to Signal builder, I am getting error.

5 ビュー (過去 30 日間)
Aasif Jawed
Aasif Jawed 2018 年 2 月 28 日
回答済み: Sankarshan Durgaprasad 2022 年 11 月 21 日
I get following error:
File '*******_SignalBuilder.xlsx' format does not comply with Signal Builder required format. Worksheet '2' contains non-numeric values
P.S.: I have checked,all the cells of Worksheet '2' are containing numeric values.
What could be the reason?

回答 (2 件)

Bhuvnesh Singh
Bhuvnesh Singh 2018 年 3 月 2 日
Hi Aasif,
The Signal Builder export utility exports the data to the workspace in a format that does not support its import back into Signal Builder.
Create a structure which conforms to the Signal Builder import structure, which is similar to one of the following:
var.time = [0 1 1 5 5 8 8 10];
var.signals.values = [0 0 2 2 2 3 3 3]';
var.signals.dimensions = 1;
var.signals.label = 'var';
save var.mat var
time = {channels(:).xData}';
data = {channels(:).yData}';
sigNames = {channels(:).label};
save test.mat time data sigNames
Here 'channels' is the structure that is saved to the workspace from the Signal Builder. Now test.mat can be used to import the data to a Signal Builder block.

Sankarshan Durgaprasad
Sankarshan Durgaprasad 2022 年 11 月 21 日

カテゴリ

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!

Translated by