Minus table with another table
60 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vimal kumar chawda
am 17 Dez. 2019
Beantwortet: vimal kumar chawda
am 18 Dez. 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254813/1.png)
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 17 Dez. 2019
Bearbeitet: Adam Danz
am 18 Dez. 2019
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
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!