A matrix of extroverts
Now that the introverts have had their script, the extroverts spoke up (naturally!) and demanded one as well. You will be given...
約9年 前
解決済み
Another colon problem
This is simple problem based on problems 555, 801, 1118, etc.
Create an index vector from two input vectors.
Example:
...
UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions
A = 2+5i
B = 2+5*i
C = both are okay
Write capital letter a...
約9年 前
解決済み
Simple date to serial no. conversion
Convert a date string to a serial date number.
For example if you take
x='19-May-2001'
then the result is 730990
x...
約9年 前
解決済み
Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*
約9年 前
解決済み
Sum of series I
What is the sum of the following sequence:
Σ(2k-1) for k=1...n
for different n?
約9年 前
解決済み
Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.
約9年 前
解決済み
Guess Cipher
Guess the formula to transform strings as follows:
'Hello World!' --> 'Ifmmp Xpsme!'
'Can I help you?' --> 'Dbo J ifmq zpv...
約9年 前
解決済み
Cumulative product of a vector
Cumulative product of a vector
example
x=[1 2 5 10], then answer must be [ 1 2 10 100]
*If you like this prob...
UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides.
So if A = [1 1]
B = sqrt(2)
約9年 前
解決済み
Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable.
For example
x = 1:10
kernel_length = 2
would r...
UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.
約9年 前
解決済み
UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.
約9年 前
解決済み
UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.
...
約9年 前
解決済み
UICBioE240 problem 1.2
Convert a column vector into a row vector.
So if A = [1;
2;
3]
Then B = [ 1 2 3]