trouble creating a matrix from table data
显示 更早的评论
Hi, Im' new to matlab, and trying to work through a problem.
I have a table, called 'HD', it's 1 column by 499 rows.
I want to create 'Ry' for each of the rows through a 3x3 matrix
Ry = row 1: [cos(HD) -sin(HD) 0]
row 2: [sin(HD) cos(HD) 0]
row 3: [0 0 1]
I've written: Ry = [cos(HD) -sin(HD) 0; sin(HD) cos(HD) 0; 0 0 1]; but it didn't work then I tired creating tables' for each: cos(HD) -sin(HD)... and substituted the new table names in the command, but it didn't like that either. Any assistance is greatly appreciated. Dana
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!