Variable_一个单独的元素(整数.pptVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Variable_一个单独的元素(整数

Ming-Hong Shih Digital Signal Processing with Example in MATLAB Digital Signal Processing with Examples in MATLAB? Chap 1 Introduction Ming-Hong Shih, Aug 25, 2003 Introduction to MATLAB Why is MATLAB in use by a large fraction of the DSP community? (1)The user do most DSP operations with very simple lines of code. (2)MATLAB’s graphics support. (3)Don’t to be an expert in MATLAB. Variables, Vectors, Matrices, and Arrays Variable:一個單獨的元素(整數、實數、複數)。 向量(Vector):一維的矩陣,可分為Column Vectors及Row Vectors。 矩陣(Matrices):二維的陣列,一維向量為其特例。 陣列(Arrays): Using array as an inclusive term to designate a vector or a matrix. Variables, Vectors, Matrices, and Arrays Indexing a matrix A=[1 2; 3 4]; A(1,1)=1; % the index starts from 1 A(1,2)=2; A(2,1)=3; A(2,2)=4; Array Operation - Sum(+) and Difference(-) Array Operation - Sum(+) and Difference(-) (cont.) Array Operation - Product(*) Array Operation - Product(*) (cont.) Array Operation - Exponentiation(^) Array Operation - Product(.*) and Exponentiation(.^) Array Operation - Transpose( ′ and . ′) Array Operation - Transpose( ′ and . ′) (cont.) Example – M-file Example – M-file(cont.) Matlab functions Matlab has lot of toolboxes, which contain many functions help function-name On-line help for a function lookfor keyword Search for functions that are related to this keyword Loop Example: for i=1:1:10 a(i) = i; end; Laboratory exercise #1 Read and show an image: I=double(imread(‘swim.bmp’)); imshow(I, []); Perform the following operation to matrix I: * * ──→ Variable ──→ Vector ──→ Matrix The sum or difference of two array is obtained simply by adding or subtracting the individual element. Dimensions must be the same unless one variable is a scalar. 矩陣與純量可以直接進行加減, MATLAB 會直接將加減應用到 每一個元素。 純量對矩陣的乘或除, 可比照一般寫法。 矩陣與純量可以直接進行乘法, MATLAB 會直接將乘法應用到 每一個元素。 進行矩陣相乘,必需確認第一個矩陣的 直行數目(Column Dimension)必需等於 第二個矩陣的橫列數目(Row Dimension) ,否則其乘法無從定義,MATLAB 會產 生錯誤訊息。 矩陣的次方運算,可由「^」 來達成,但矩陣必需是方矩陣 ,其次方運算才有意義。 若在「

文档评论(0)

xy88118 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档