Can anyone help to creat this vector ?
古いコメントを表示
A vector is given by: V = [5; 17; 3; 8; 0; 1; 12; 15; 20; 6; 6; 4; 7; 16]. Write a program in the form of a script file, which doubles the positive elements that are divisible by 3 and / or by 5, and raises to the cube the negative elements greater than -5 ie: WI= 1/ 2*Vi if Vi>0 multiple of 3 and / or 5 2/ (Vi)^3 if Vi<0 greater than -5 3/ Vi otherwise
3 件のコメント
James Tursa
2018 年 1 月 13 日
What have you done so far? What specific problems are you having with your code?
diadalina
2018 年 1 月 13 日
diadalina
2018 年 1 月 13 日
編集済み: James Tursa
2018 年 1 月 13 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!