日韩精品一区二区三区高清_久久国产热这里只有精品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>
        裸体丰满少妇做受久久99精品| 美女国产一区| 一区二区三区在线不卡| 午夜国产欧美理论在线播放| 国产精品午夜春色av| 另类亚洲自拍| 亚洲国产精品成人一区二区| 欧美成人免费全部观看天天性色| 欧美日韩国产三级| 久久久无码精品亚洲日韩按摩| 久久精品最新地址| 国产精品日日摸夜夜添夜夜av| 亚洲精品自在在线观看| 亚洲人成7777| 亚洲国产日韩综合一区| 久久久久国产精品厨房| 欧美成人综合一区| 午夜精品福利在线| 99亚洲一区二区| 欧美精品一区二区三| 夜夜爽夜夜爽精品视频| 国产精品视频成人| 国产自产精品| 亚洲欧洲精品一区二区精品久久久| 久久成人这里只有精品| 欧美国产日本高清在线| 欧美国产日韩在线| 一区二区福利| 亚洲一区二区三区四区中文| 国产精品一区二区三区久久久| 国产亚洲视频在线观看| 麻豆av一区二区三区| 亚洲精品在线免费| 亚洲一区日韩在线| av成人老司机| 欧美v国产在线一区二区三区| 美女脱光内衣内裤视频久久网站| 国产精品一区二区在线观看网站| 欧美午夜三级| 久久综合色婷婷| 国产精品影视天天线| 亚洲欧美美女| 亚洲日本无吗高清不卡| 夜夜嗨一区二区| 久久永久免费| 欧美女人交a| 一区二区91| 蜜臀久久99精品久久久久久9| 一本色道精品久久一区二区三区| 欧美日韩中文精品| 先锋a资源在线看亚洲| 欧美视频网址| 亚洲网站在线| 久久久久久电影| 欧美xart系列高清| 国产偷久久久精品专区| 免费日韩视频| 在线观看亚洲专区| 麻豆免费精品视频| 久久久青草青青国产亚洲免观| 久久久亚洲影院你懂的| 国产专区精品视频| 亚洲国内高清视频| 男女视频一区二区| 国产精品欧美日韩一区二区| 久久成人一区二区| 国产一区激情| 久久久精品国产一区二区三区| 亚洲第一福利在线观看| 久久精品国产一区二区三| 久久在线免费| 国产麻豆成人精品| 欧美一级电影久久| 国产亚洲a∨片在线观看| 在线观看的日韩av| 亚洲精品日本| 久久激情五月婷婷| 亚洲精品在线看| 亚洲国产视频直播| 亚洲激情校园春色| 亚洲一区二区精品视频| 日韩一级视频免费观看在线| 久久激情五月丁香伊人| 一区二区三区在线观看视频| 亚洲淫性视频| 欧美精品国产精品日韩精品| 欧美色图首页| 欧美影院一区| 欧美激情乱人伦| 国外成人性视频| 国产美女精品一区二区三区| 西西裸体人体做爰大胆久久久| 亚洲欧洲美洲综合色网| 亚洲一区二区网站| 欧美亚洲免费在线| 99精品久久免费看蜜臀剧情介绍| 久久久久综合| 欧美a一区二区| 欧美日韩一区二区国产| 欧美精品一区视频| 欧美日韩免费在线视频| 在线看欧美日韩| 欧美日韩一区不卡| 欧美激情一区二区三区高清视频| 亚洲高清视频在线观看| 亚洲一区三区在线观看| 欧美激情va永久在线播放| 欧美精品在线观看一区二区| 久久久久国产成人精品亚洲午夜| 欧美黄色aaaa| 午夜久久黄色| 日韩写真在线| 亚洲自拍偷拍一区| 欧美一区=区| 欧美日韩无遮挡| 久久精品99国产精品酒店日本| 国产日韩在线一区二区三区| 久久黄色小说| 欧美日韩精品伦理作品在线免费观看| 伊人久久噜噜噜躁狠狠躁| 国产精品日韩一区二区三区| 亚洲美女视频在线免费观看| 在线免费观看日韩欧美| 久久久久免费| 宅男噜噜噜66一区二区66| 欧美色大人视频| 红杏aⅴ成人免费视频| 一区二区激情| 麻豆9191精品国产| 免费久久99精品国产自在现线| 亚洲成人在线免费| 久久夜色精品国产欧美乱极品| 永久免费视频成人| 国产精品扒开腿做爽爽爽视频| 国产日韩在线不卡| 久久天天躁狠狠躁夜夜av| 日韩视频永久免费| 免播放器亚洲一区| 红桃视频国产精品| 欧美日精品一区视频| 国产精品外国| 国产精品理论片| 亚洲精选成人| 亚洲网站在线播放| 亚洲精品国产精品久久清纯直播| 一区二区三区欧美成人| 亚洲国产另类久久久精品极度| 欧美亚洲成人网| 欧美久久精品午夜青青大伊人| 91久久久在线| 亚洲欧美三级伦理| 国产女主播在线一区二区| 国产精品永久入口久久久| 欧美日韩国产丝袜另类| 亚洲特黄一级片| 国产一区二区三区久久精品| 欧美一区二区三区在线播放| 国产精品久久久久久久久免费樱桃| 亚洲欧洲日韩女同| 国产精品久久久久国产精品日日| 亚洲精品美女在线观看| 国产欧美69| 精品电影在线观看| 销魂美女一区二区三区视频在线|