abs function not working in matlab while reading table and cell array

16 views (last 30 days)
I have been trying to plot ecg data and to normalise it i need to find the absolute data .
But I am getting errors.
Kindly help me.
I tried coverting it to mat file and do it too.
still not working .
It is a signal of length 2222.

Accepted Answer

Askic V
Askic V on 20 Feb 2023
Please have a look at this:
help table2array
TABLE2ARRAY Convert table to a homogeneous array. A = TABLE2ARRAY(T) converts the table T to an array A whose type depends on the data in T. All variables in T must have sizes and types that are compatible for horizontal concatenation. If T is an M-by-N table with variables that each have one column, then each variable becomes one column in A. Variables in T that have more than one column become multiple columns in A, and A has L = SUM(TABLEFUN(@(V)SIZE(V,2),T) columns. Variables in T may have different numbers of columns. Variables in T may be N-D, but all must have the same size in dimensions higher than 2. A is N-D in this case. NOTE: TABLE2ARRAY horizontally concatenates the variables in T to create A. If the variables in T are cell arrays, TABLE2ARRAY does not concatenate their contents -- A is in this case a cell array, equivalent to TABLE2CELL(T). To create an array containing the contents of variables that are all cell arrays, use CELL2MAT(TABLE2CELL(T)). TABLE2ARRAY(T) is equivalent to T{:,:}. See also ARRAY2TABLE, TABLE2CELL, TABLE2STRUCT, TABLE. Documentation for table2array doc table2array Other uses of table2array codistributed/table2array tall/table2array
  2 Comments
Krishnapriya
Krishnapriya on 20 Feb 2023
Thank you,it got sorted out when i called it using d.var2 name instead of directly referring to the column.
Thank You for taking out time to help me.
Regards
Krishnapriya

Sign in to comment.

More Answers (0)

Categories

Find more on Multibody Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!