Minus table with another table

54 ビュー (過去 30 日間)
vimal kumar chawda
vimal kumar chawda 2019 年 12 月 17 日
回答済み: vimal kumar chawda 2019 年 12 月 18 日
Hello Respected Sir
I have 7381*1 two table, i want to subtract each with other one. when I am doing it says it is not define. Can you please help me where it went wrong?
Thank you
1.PNG

採用された回答

Adam Danz
Adam Danz 2019 年 12 月 17 日
編集済み: Adam Danz 2019 年 12 月 18 日
You have to specify the columns of each table.
% Create two tables, each with 1 column and 5 rows
T1 = table(randi(10,5,1),'VariableName',{'RandData'});
T2 = table(randi(10,5,1),'VariableName',{'RandData'});
% Subtract the two table-columns
y = T1.RandData - T2.RandData

その他の回答 (1 件)

vimal kumar chawda
vimal kumar chawda 2019 年 12 月 18 日
Hey
I am not sure if we can do it with table of not but i change the table into array function.
table2array and after that minus function works.
Above answer may be right but i have not validate it.
The problem is closed.
Thank you

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by