首页 > > 详细

辅导EE103L编程、Matlab语言程序辅导 解析R语言编程|辅导留学生Prolog

项目预算:   开发周期:  发布时间:   要求地区:
Introduction to Matlab
Assignment 1
1. Create the vector x = [1,2,...,100]. Assign the even numbers of x to a
new vector y.
2. Use for loop to find the values of for t = 0, 01,
0.2, 0.3, 0.4 s when f =10, 15, and 20 Hz. Use one set of statements to
compute the values for all three frequencies and store the results in a two-dimensional
array. Use two nested for loops and double indexing.
3. Use while loop to find the largest value of positive t for which and
are both less than 10. Make the computation for ω=35, 40, and 45. Find your
answers to the nearest 0.01.
4. Create a 15-element vector with values of
at equally spaced interval . Find the maximum element value, the minimum
element value, the average of the element values, and the indices of the elements for
which the element magnitude is greater than 4.
5. Assume , and , where
and . Plot , and v/s with
on the same graph (you have to use hold on command). Label the axes and create
legends for each graph.
6. Sinc function is a function that arises frequently in our course. It is defined as
Create a Matlab function MySinc () that defines sinc(x) function following
the above definition. Plot the value sinc(x) in the interval [-2π 2π] using
MySinc () function and Matlab inbuilt sinc() function on the same graph.

软件开发、广告设计客服
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 9951568
© 2021 www.rj363.com
软件定制开发网!