Table Multiplication error: Both tables must have the same variables
이전 댓글 표시
I am trying to figure out why these table columns will not multiply together. It is a table of one size of imaginary numbers 94x3
SAI =
94×3 table
Var1 Var2 Var3
_________ _________ _________
0-10059i 0-5021.2i 0-3338.1i
0-8800.5i 0-4390.5i 0-2916.2i
0-7821.1i 0-3899.7i 0-2587.6i
0-7037.5i 0-3506.6i 0-2324.3i
0-6396.2i 0-3184.7i 0-2108.3i
etc...
I am getting an error when doing SAI(:,1) .*SAI(:,2).
It gives the same error when using *
Error using .*
Both tables must have the same variables.
What am I doing wrong here?
Thanks for any help
댓글 수: 2
Dyuman Joshi
2023년 8월 25일
Any particular reason why you are storing numeric data in a table?
Or are you importing the data via readtable? If you are, I would suggest you to import numeric data via readmatrix and perform any operations on the numeric arrays accordingly.
Multiplying the columns of a table seems un-intuitive (atleast to me)
Scott
2023년 8월 27일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!