use this vector and a mathematical expression to create the following vectors:

조회 수: 4 (최근 30일)
N/A
N/A 2019년 2월 1일
편집: John D'Errico 2019년 2월 5일
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
N/A
N/A 2019년 2월 2일
I'm really not sure how else to go about it
John D'Errico
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
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

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by