hi... how do i generate 2, 6, 5, 3, vectors? in that order

댓글 수: 2

Walter Roberson
Walter Roberson 2020년 10월 21일
Do you mean that you need to run a calculation that gives you that vector as a result? If so then typically those assignments restrict the operations that are permitted?
KSSV
KSSV 2020년 10월 21일
A = [2 6 5 3] ;

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 21일

0 개 추천

A slightly unusual way, but it fulfills the requirement
fun = @(x) round(sin(-0.688014*x + 3.625700) .* exp(-0.367642*x) .* log(2609741*x));
y = fun(1:4)
Result
>> y
y =
2 6 5 3

카테고리

도움말 센터File Exchange에서 Octave에 대해 자세히 알아보기

태그

질문:

2020년 10월 21일

답변:

2020년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by