日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

MA2552編程代寫、代做MATLAB程序

時間:2023-12-08  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


MA2552 Introduction to Computing (DLI) 2023/24

Computer Assignment 3

1. Write a function with header [B] = myMakeLinInd(A), where A and B are matrices.

Let the rank(A) = n, then B should be a matrix containing the first n columns of A

that are all linearly independent.

2. Write a function alpha = myPolyfit(n,p,x) that finds the coefficients of a polynomial p(x) of degree n that fits the data in p and x. Your function should solve this

problem as a linear system of equations and show an error if there is either no solution

or an infinite number of solutions.

3. Repeat the question above but using the least square method instead. Note that now

there is always a unique solution, independently of the length p and x. You can check

your results with the MATLAB built-in function polyfit.

4. Using the bisection method, write a function r = myRoots(alpha) that outputs the

(real) roots of a polynomial whose coefficients are the elements of the (real-valued)

array alpha. You can check your method with the MATLAB built-in function roots.

Hint: Find the intervals of monotony by finding the roots of the derivative of the

polynomial.

5. The eigenvalues λ of a (square) matrix A correspond to the roots of the function

p(λ) = det(A − λI), where I denotes the identity matrix. Explain why if A is of size

n, then p(λ) is a polynomial of degree n. Next, using question 3 and question 4, code

a function that finds the real eigenvalues A and their corresponding eigenvectors.

6. The singular value decomposition of a matrix A of size n×m, is a factorisation of A in

the form A = USV t

, where both U and V are (full rank) (orthonormal) square matrices

and S is a non-necessarily-square diagonal matrix whit non-negative elements. The

non-zero elements of the diagonal of S, called singular values of A, correspond to the

square root of the non-zero eigenvalues of AAt

(or AtA). The matrix V is formed by the

eigenvectors of AtA and the matrix U is formed by the eigenvectors of AAt

. Using eig,

implement a function [U,S,V] = mySVD(A) which computes the SVD decomposition

of a matrix A.

7. Note that the rank of a matrix A is given by the number of non-zero singular values of

A (why?). Write a function that take as input a matrix A, and outputs a new matrix

Ak, which is k-rank version of A, computed by keeping the k-largest singular values

of A. Use this function to show a low rank version of the image of question 10 of

Assignment 1.

8. Find regression curves for the average runtime data T1(n) and T2(n), corresponding

to the runtime of the code of question 10 of Assignment 2, and its efficient version,

respectively, where n is the size of the input matrix M. Plot your regression curves along

with the runtime data. Can you quantify now how faster is the efficient implementation

with respect to the inefficient one?

1

MA2552 Introduction to Computing (DLI) 2023/24

9. Implement a MATLAB function that take as input two arrays f and x, representing

the values of a real valued function f(x); the array x should be evenly spaced. Your

function should:

(a) create a new array f_s which replace each element of f with the average of its k

nearest neighbours (k should also be an input of your function) to the left and to

the right. The function f_s is a way of regularising a noisy or irregular function.

(b) returns the numerical derivative of fs using a centred first order finite difference

scheme that you should also implement.

Test your code with x = linspace(0,2*pi,1000)and f = sin(x) + 0.1*randn(size(x)),

for different values of k.

10. Write a function I = myTrapez(f, a, b, n), which computes the approximation of

R b

a

f(x) dx by a trapezoidal rule: R b

a

f(x) dx ≈ h

h

f(a)+f(b)

2 +

Pn−1

k=1 f(xk)

i

, where xk =

a + hk, and h =

b−a

n

.Your function should not use any built-in Matlab functions. Test

your function by computing R 1

0

1 − x

2 dx, with n = 10, 20, and 40. Given that the

exact value of the integral is π/4, how does the error of the approximateresult scale

with n?

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機打開當前頁
  • 上一篇:代寫COMP3023、C/C++語言編程代做
  • 下一篇:代寫COMP26120、代做C++, Java/Python編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美特黄视频| 欧美久久久久久久久久| 国产欧美日韩视频在线观看| 国产精品视频999| av成人国产| 午夜一区二区三视频在线观看| 一区二区三区你懂的| 国产欧美日韩亚洲一区二区三区| 亚洲欧洲日夜超级视频| 激情自拍一区| 亚洲人成网站999久久久综合| 国产视频不卡| 久久频这里精品99香蕉| 午夜精品一区二区三区电影天堂| 久久人91精品久久久久久不卡| 欧美亚洲不卡| 亚洲精品一区二| 亚洲欧洲一级| 国产亚洲一本大道中文在线| 国产精品不卡在线| 性欧美xxxx大乳国产app| 亚洲国产精品传媒在线观看| 欧美色精品在线视频| 娇妻被交换粗又大又硬视频欧美| 国产日韩欧美黄色| 中文在线资源观看视频网站免费不卡| 久久国产福利| 国产亚洲在线观看| 欧美日韩一区免费| 亚洲电影在线| 国产精品欧美久久久久无广告| 久久久天天操| 国产一区二区三区免费观看| 亚洲精品国偷自产在线99热| 欧美视频在线视频| 一区二区不卡在线视频 午夜欧美不卡'| 午夜日韩激情| 久久久999精品免费| 久久亚洲春色中文字幕久久久| 国产一区二区按摩在线观看| 亚洲欧美日韩精品久久奇米色影视| 国产精品毛片一区二区三区| 免费在线欧美视频| 美女日韩在线中文字幕| 国产色产综合产在线视频| 国产亚洲综合精品| 麻豆九一精品爱看视频在线观看免费| 国产精品swag| 亚洲国产三级在线| 国产精品成人观看视频免费| 久久在线免费| 欧美亚洲三区| 欧美日韩八区| 国产精品试看| 99re6这里只有精品| 国产中文一区二区三区| 久久夜色精品国产欧美乱极品| 久久天天狠狠| 久久最新视频| 宅男噜噜噜66国产日韩在线观看| 在线观看免费视频综合| 亚洲欧美日韩一区二区在线| 性欧美xxxx视频在线观看| 亚洲一区二区三区四区中文| 亚洲国产另类 国产精品国产免费| 欧美了一区在线观看| 小辣椒精品导航| 久久躁日日躁aaaaxxxx| 国产一区二区三区在线观看免费| 怡红院精品视频| 国产一区999| 欧美激情免费在线| 香蕉久久一区二区不卡无毒影院| 夜夜爽夜夜爽精品视频| 亚洲高清视频在线观看| 亚洲神马久久| 国产精品一区久久久| 久久精品人人做人人综合| 午夜影视日本亚洲欧洲精品| 91久久久久久久久| 国产精品日韩精品欧美精品| 欧美在线日韩精品| 亚洲精品视频一区| 伊人夜夜躁av伊人久久| 欧美一区二区三区视频在线| 久久综合色综合88| 性色av一区二区怡红| 亚洲高清123| 国产精品视频精品视频| 亚洲国产欧美在线人成| 在线午夜精品自拍| 精品二区久久| 欧美大片在线观看| 91久久精品国产91性色| 亚洲午夜小视频| 欧美成人自拍视频| 一区一区视频| 欧美成人在线网站| 亚洲欧洲日产国码二区| 一区二区三区|亚洲午夜| 亚洲欧美日韩视频二区| 免费成人av资源网| 欧美福利视频在线| 亚洲午夜影视影院在线观看| 久久伊人一区二区| 欧美激情一二区| 国产毛片一区二区| 久久久www成人免费精品| 免费亚洲一区二区| 免费成人美女女| 激情视频一区二区| 欧美日韩精品一区视频| 国产视频综合在线| 欧美成va人片在线观看| 欧美人与性动交cc0o| 99re6这里只有精品视频在线观看| 亚洲一区二区黄| 亚洲国产精品成人久久综合一区| 好看的亚洲午夜视频在线| 国产精品超碰97尤物18| 香蕉视频成人在线观看| 久久久精品国产99久久精品芒果| 国外成人网址| 制服丝袜激情欧洲亚洲| 久久久久成人精品| 久久久一本精品99久久精品66| 99视频在线观看一区三区| 最新亚洲视频| 欧美性色aⅴ视频一区日韩精品| 原创国产精品91| 性欧美videos另类喷潮| 久久精品国产99精品国产亚洲性色| 国产欧美va欧美va香蕉在| 在线日韩av永久免费观看| 国产精品婷婷午夜在线观看| 欧美在线播放| 国产精品呻吟| 亚洲精品免费一二三区| 亚洲欧美中文日韩v在线观看| 欧美日韩伦理在线| 久久国产视频网站| 午夜伦欧美伦电影理论片| 巨乳诱惑日韩免费av| 国产精品国产三级国产普通话蜜臀| 国产精品一卡| 午夜精品剧场| 一区二区三区在线观看欧美| 欧美在线观看一区二区| 9色精品在线| 亚洲国产精品va在线看黑人动漫| 一区二区自拍| 欧美一区二区三区在线| 亚洲剧情一区二区| 午夜精品久久久久久久蜜桃app| 欧美精品成人91久久久久久久| 国产在线不卡精品| 国产亚洲一本大道中文在线| 亚洲第一色中文字幕| 欧美午夜视频一区二区| 国产亚洲欧美色| 久久久久久自在自线| 国产亚洲电影| 国产欧美日韩免费看aⅴ视频| 野花国产精品入口|