use this vector and a mathematical expression to create the following vectors:
3 ビュー (過去 30 日間)
古いコメントを表示
vector is x= [1, 2, 3, 4 ,5]
a)x1=[1, 256, 729, 256, 25]
is this correct? x1= x.*[1,128,243,64,5]
3 件のコメント
John D'Errico
2019 年 2 月 2 日
編集済み: John D'Errico
2019 年 2 月 5 日
Um, look at those numbers. Perhaps use factor? You need to make an effort. I won't do it for you. But I am willing to at least push you in a reasonable direction.
So think about the prime factors of the numbers [1, 256, 729, 256, 25]. Tell me what you see.
回答 (1 件)
James Tursa
2019 年 2 月 2 日
Yes. It works for me:
>> x= [1, 2, 3, 4 ,5]
x =
1 2 3 4 5
>> x1= x.*[1,128,243,64,5]
x1 =
1 256 729 256 25
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!