91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

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編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    精品亚洲国产成人av制服丝袜| 高清日韩电视剧大全免费| 国产夜色精品一区二区av| 欧美日韩1234| 欧美日韩国产综合一区二区三区 | 精品动漫av| 欧美日韩国产成人精品| 欧美黄色大片网站| 欧美黄色一区| 欧美午夜在线| 一本一本久久| 羞羞视频在线观看欧美| 久久久久se| 欧美日韩一区二区三区不卡| 欧美丰满高潮xxxx喷水动漫| 日韩一区二区免费高清| 精品国产凹凸成av人导航| 久久久久久久久97黄色工厂| 国产精品―色哟哟| 亚洲码国产岛国毛片在线| 亚洲va欧美va国产va天堂影院| 亚洲福利国产精品| 国内精品嫩模私拍在线| 国产iv一区二区三区| 欧美在线二区| 国产精品久久久一区二区| 色网综合在线观看| 正在播放亚洲一区| 久久久久久97三级| 亚洲与欧洲av电影| 精品一区二区日韩| 91老师片黄在线观看| 伊人蜜桃色噜噜激情综合| 久久亚洲不卡| 精品伦理精品一区| 一区二区三区四区激情| 国产一区二区三区综合| 国精品一区二区三区| 久久综合九色综合久99| 日韩一区二区在线看片| 中文字幕在线一区免费| 久久激五月天综合精品| 91视频观看视频| 久久久久国产精品午夜一区| 日韩欧美成人午夜| 夜夜精品视频一区二区| 国产传媒日韩欧美成人| 99国产精品视频免费观看一公开| 欧美午夜精品理论片a级按摩| 久久视频一区二区| 视频一区国产视频| 欧美影视一区| 欧美日韩一二三| 亚洲天堂精品在线观看| 国产一区二区调教| 国产亚洲欧美一区二区| 亚洲毛片av在线| 国产又黄又大久久| 99亚洲伊人久久精品影院红桃| 88在线观看91蜜桃国自产| 亚洲欧美日韩国产综合在线 | 久久亚洲二区| 国产精品灌醉下药二区| 国产麻豆成人精品| 国产亚洲综合精品| 26uuu成人网一区二区三区| 人禽交欧美网站| 亚洲欧洲另类| 国产日韩精品一区二区三区在线| 免播放器亚洲一区| 中文久久精品| 国产视频亚洲色图| 国产精品18久久久久久久网站| 国产伦精品一区| 国产精品女上位| 成人18视频日本| 欧美嫩在线观看| 午夜精品免费在线观看| 在线看无码的免费网站| 国产亚洲综合色| 国产成人精品三级麻豆| 在线免费不卡视频| 亚洲福利一区二区三区| 亚洲看片免费| 中文字幕欧美日韩一区| av资源站一区| 日韩精品资源二区在线| 国产真实精品久久二三区| 91国偷自产一区二区三区观看| 夜夜嗨av一区二区三区四季av| 欧美精品二区三区四区免费看视频| 91精品国产综合久久小美女| 美国十次了思思久久精品导航| 午夜在线播放视频欧美| 亚洲欧美aⅴ...| 极品少妇一区二区三区| 国产精品区一区二区三| 91在线免费视频观看| 精品处破学生在线二十三| 国产精品一二三区在线| 欧美精品在线观看播放| 国内精品在线播放| 欧美精品在线视频| 国产69精品一区二区亚洲孕妇| 欧美日本免费一区二区三区| 韩国三级电影一区二区| 欧美丰满一区二区免费视频| 国产精品亚洲а∨天堂免在线| 91精品国产综合久久福利| 国产剧情一区二区三区| 欧美成人bangbros| 97久久超碰国产精品| 久久九九99视频| 国产精品av一区二区| 综合自拍亚洲综合图不卡区| 一区二区三区三区在线| 午夜电影一区二区三区| 欧美三区免费完整视频在线观看| 国内精品伊人久久久久av一坑| 日韩欧美在线一区二区三区| 99re在线精品| 亚洲三级小视频| 新狼窝色av性久久久久久| 蜜乳av一区二区| 日韩午夜精品视频| 欧美日韩国产精品一区二区亚洲 | 激情综合网av| 337p日本欧洲亚洲大胆精品| 永久91嫩草亚洲精品人人| 午夜av区久久| 日韩欧美一级精品久久| 国产精品a久久久久| 亚洲第一搞黄网站| 欧美精品一二三| 欧美在线播放一区二区| 亚洲综合男人的天堂| 欧美日韩免费高清一区色橹橹| 国产成人av电影在线观看| 亚洲国产电影在线观看| 色综合久久久网| 成人免费毛片片v| 亚洲一区在线电影| 91精品国产综合久久福利软件| 欧美日韩日本国产亚洲在线| 亚洲18女电影在线观看| 日韩亚洲欧美一区| 日韩午夜免费| 国产精品99精品久久免费| 国产精品久久久久毛片软件| 在线观看日产精品| 欧美日韩视频一区二区三区| 日韩国产欧美在线视频| 久久精品视频在线看| 色哟哟一区二区三区| 欧美日韩精品一本二本三本| 日韩国产在线一| 中文字幕精品一区| 欧美麻豆精品久久久久久| 一区二区自拍| 粗大黑人巨茎大战欧美成人| 亚洲国产精品尤物yw在线观看| 欧美成人精品高清在线播放| 久久亚洲午夜电影| 午夜精品一区二区三区四区| 久久成人av少妇免费| 一区二区三区在线视频免费 | 国产一区二区精品久久91| 一区二区三区日韩欧美精品| 亚洲精品在线电影| 欧美日韩一级片网站| 99精品国产高清一区二区| 成人免费毛片嘿嘿连载视频| 美日韩一区二区| 亚洲精品一二三| 久久久久国产精品麻豆ai换脸 | 日韩美女久久久| 精品黑人一区二区三区久久| 欧美性受xxxx黑人xyx性爽| 夜夜夜久久久| 午夜精品偷拍| 成人毛片在线观看| 久久成人精品无人区| 亚洲一区二区三区激情| 国产精品视频在线看| 欧美va在线播放| 欧美精品粉嫩高潮一区二区| 麻豆精品网站| 一区二区激情| 亚洲人成毛片在线播放女女| 欧美在线三区| 99视频精品在线| 高清视频一区二区| 国产1区2区3区精品美女| 国产一区二区成人久久免费影院| 午夜精品在线看| 亚洲国产成人av| 亚洲电影一区二区三区| 亚洲免费成人av| 一区二区三区在线视频免费观看| 亚洲日本va在线观看|