Feeds
提问
Counting the number of occurences in an array
This was my assignment: The script should roll five dice (the command randi(6, [1 5]) should prove handy) and decid...
10 years 前 | 1 个回答 | 0
1
个回答提问
A Differential Equations Problem
This is the problem. I can get the plot but I don't know how to specify 1<t<3. produce a plot of the solution for y' + t^2*y ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Using Logic with functions
This was my assignment: function[N] = script27_firstname_lastname(M) The function should flip a fair coin until M ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Pulling Even numbers from an array
My assignment was to create a function where it had to count the number of even numbers in the array given and display the count...
10 years 前 | 2 个回答 | 0
2
个回答提问
Using a function in ian inputdlg
This was the assignment given to me: The script should request a vector of positive integers entered as a single line in an i...
10 years 前 | 2 个回答 | 0
2
个回答提问
Shifting the outer loop of an array
I was given an assignment to: The script should assume an m-by-n array A (m, n >= 2) is assigned in the Command Window. The v...
10 years 前 | 1 个回答 | 0
1
个回答提问
Only Shifting the outer loop
This is the assignment I was given: he script should assume an m-by-n array A (m, n >= 2) is assigned in the Command Window. Th...
10 years 前 | 1 个回答 | 0
1
个回答提问
Finding the closest number to the average in an array
The script should assume a vector A is assigned in the command window. The script should create a scalar x where x is the number...
10 years 前 | 1 个回答 | 0
1
个回答提问
Using a loop to make a function
This is the assignment that I was given: The script should assume vec_in is specified at the command line. The script shou...
10 years 前 | 1 个回答 | 0
1
个回答提问
Making Matrices with Loops
This is the assignment I was given: Create a script called script19.m. The script should assume scalar value of n is assigned...
10 years 前 | 3 个回答 | 0
3
个回答提问
Creating a matrix with specific sequence
I was given this as a homework assignment but I am not really sure where to even start. Would this be a loop creation? Nested lo...
10 years 前 | 1 个回答 | 0
1
个回答提问
Average without direct commands
My assignment is to create a script where when I put a string of numbers into the command window and run the script it will calc...
10 years 前 | 2 个回答 | 0