Test of Quiz
Answer the questions and write in vector. Only one answer is correct.
The founder of fuzzy logic is
1a) D. Golberg
1b)...
5年以上 前
解決済み
07 - Common functions and indexing 5
Create the vector _lin_:
<<http://samle.dk/STTBDP/Assignment1_7e.png>>
(the integers from 1 to 20)
Make every other val...
5年以上 前
解決済み
07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6
Magic squares are defined as square matrices, where the sum of a...
5年以上 前
解決済み
Create a constant offset.
Add a constant offset to an array.
Example
a = [1 3 5 9]
offset = 2
y = [3 5 7 11]
5年以上 前
解決済み
Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].
5年以上 前
解決済み
02 - Vector Variables 4
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2d.png>>
(Logarithmically spaced numbers between 1 and 1...
5年以上 前
解決済み
Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.