還是那個問題,我 eval(t)放最下面只能出來最后一組數(shù)的答案,求大神解答

2022-11-13 03:45

1個回答
抱歉我可能理解錯了意思,是希望theta1取第一個的時候其他的theta也取第一個數(shù),theta1取第二個的時候其他的也取第二個數(shù)(一共5組變量),還是希望theta1取第一個的時候其他的theta取任意位置的數(shù)?
如果是第一種的話,
theta1 =[0,10,20,30,0];
theta2 =[0,0,0,0,10];
theta3 =[0,0,0,0,0];
theta4 =[-90,-90,-90,-90,-90];
theta5 =[0,0,0,0,0];
T=[ sin(theta1).*sin(theta5) + cos(theta2 + theta3 + theta4).*cos(theta1).*cos(theta5), cos(theta5).*sin(theta1) - cos(theta2 + theta3 + theta4).*cos(theta1).*sin(theta5), -sin(theta2 + theta3 + theta4).*cos(theta1), cos(theta1).*(120.*cos(theta2 + theta3) - 60.*sin(theta2 + theta3 + theta4) + (pi.*cos(theta2))./2)]
[ cos(theta2 + theta3 + theta4).*cos(theta5).*sin(theta1) - cos(theta1).*sin(theta5), - cos(theta1).*cos(theta5) - cos(theta2 + theta3 + theta4).*sin(theta1).*sin(theta5), -sin(theta2 + theta3 + theta4).*sin(theta1), sin(theta1).*(120.*cos(theta2 + theta3) - 60.*sin(theta2 + theta3 + theta4) + (pi.*cos(theta2))./2)]
[ -sin(theta2 + theta3 + theta4).*cos(theta5), sin(theta2 + theta3 + theta4).*sin(theta5), -cos(theta2 + theta3 + theta4), 150 - 120.*sin(theta2 + theta3) - (pi.*sin(theta2))./2 - 60.*cos(theta2 + theta3 + theta4)]
[ 0, 0, 0, 1]

輸出結果是1*20的矩陣,其中前5個數(shù)對應著變量改變時的sin(theta1).*sin(theta5) + cos(theta2 + theta3 + theta4).*cos(theta1).*cos(theta5),其他同理
相關問答
T-ara 組合這個美女是誰
1個回答2022-10-13 10:06
夫人 Qri 居麗
圖案會動的T恤
1個回答2024-02-27 06:50
叫閃恤,音樂T恤,一件大概 50左右。可以直接到網上搜索 音樂T恤
圖案T恤,
1個回答2024-03-04 18:09
你好 我們公司是數(shù)碼印花 能在廣告旗幟和T恤上個性印制,圖案可以我司提供 也可以自己提供
T恤方言,體恤叫法,你們當?shù)囟荚趺唇兴?,親們跪求答案
1個回答2024-02-02 02:21
陜西:半襟繡兒 山東: 汗流兒 福州:半段腕
什么牌子的T恤有動畫圖案的
1個回答2024-02-26 18:17
HOT這個牌子的T恤和衛(wèi)衣都還不錯, 你可以參考一下
適合畫在T恤上的圖案
1個回答2024-03-04 18:09
這要看個人喜好了
T^T T^T T^T 好看好看滴小說 我給忘記名字了555~
1個回答2022-09-30 22:56
億萬老婆買一送一
機器貓圖案的T恤
1個回答2024-02-27 21:24
可以從網上找到滿意圖片后用熱轉印紙(淘寶哪的應該會找到)打印然后可以很容易自己制作一件哦(熱轉印紙使用方法算簡便)
給出一組關鍵字t
1個回答2023-01-24 16:30
你去翻下數(shù)學與物理方法的課本,好象有這樣的問題,我也不太記得了
熱門問答