日韩精品一区二区三区高清_久久国产热这里只有精品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編程
  • 無相關信息
    合肥生活資訊

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

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

    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>
        香蕉av福利精品导航| 一区二区三区欧美日韩| 麻豆精品国产91久久久久久| 欧美电影在线免费观看网站| 亚洲精选视频在线| 国产精品久久久久久亚洲调教| 亚洲一区欧美| 日韩视频永久免费观看| 欧美日韩精品一区二区天天拍小说| 国产精品免费看片| 91久久综合| 欧美激情第六页| 亚洲国内在线| 国产精品私房写真福利视频| 国产精品久久久久久久久免费桃花| 欧美一区二区免费| 久久综合伊人| 亚洲欧美国产va在线影院| 欧美日韩福利| 午夜视频精品| 一区二区三区日韩欧美| 亚洲经典视频在线观看| 欧美日韩一区三区四区| 亚洲人成精品久久久久| 欧美日韩国产美| 欧美亚洲色图校园春色| 国产精品久久久久免费a∨大胸| 午夜精品久久久久久久99黑人| 久久精品国产91精品亚洲| 每日更新成人在线视频| 一区二区三区四区精品| 亚洲视频一二| 国产日韩精品视频一区二区三区| 久久免费精品视频| 亚洲乱码国产乱码精品精98午夜| 久久精品99久久香蕉国产色戒| 亚洲图片欧美午夜| 国产亚洲精品美女| 激情一区二区三区| 在线视频日韩| 日韩视频三区| 亚洲第一中文字幕在线观看| 欧美成人xxx| 国产午夜精品全部视频在线播放| 国产午夜精品一区二区三区欧美| 欧美香蕉大胸在线视频观看| 欧美欧美在线| 国产精品自在在线| 亚洲激情专区| 亚洲国产福利在线| 日韩午夜一区| 在线视频欧美一区| 欧美成人精精品一区二区频| 久久精品国产欧美亚洲人人爽| 欧美韩日高清| 欧美午夜片在线免费观看| 久久精品国产亚洲高清剧情介绍| 亚洲激情视频网站| 欧美一区午夜视频在线观看| 一本色道久久综合亚洲二区三区| 在线欧美福利| 久久深夜福利| 亚洲国产欧美久久| 欧美极品色图| 欧美日在线观看| 亚洲经典在线看| 亚洲精品国产拍免费91在线| 欧美日韩无遮挡| 亚洲少妇在线| 欧美精品少妇一区二区三区| 一区二区日韩免费看| 欧美肉体xxxx裸体137大胆| 午夜精品久久久99热福利| 欧美日韩国产三区| 国产精品爽黄69| 夜夜精品视频| 欧美成年视频| 国模套图日韩精品一区二区| 国产精品视频第一区| 激情小说另类小说亚洲欧美| 午夜在线一区二区| 久久狠狠婷婷| 嫩草影视亚洲| 伊人狠狠色丁香综合尤物| 免费不卡中文字幕视频| 亚洲激情网站免费观看| 国产精品高潮视频| 久久成人18免费网站| 欧美激情第二页| 精品69视频一区二区三区| 在线播放精品| 亚洲亚洲精品在线观看| 久久免费视频一区| 久久久久综合网| 国产欧美精品日韩精品| 欧美黄色视屏| 亚洲激精日韩激精欧美精品| 在线视频亚洲欧美| 国产精品―色哟哟| 国产日韩精品一区二区三区在线| 亚洲国产一成人久久精品| 国产精品有限公司| 欧美三级午夜理伦三级中文幕| 久久国产手机看片| 91久久中文字幕| 国产精品久久久久久五月尺| 亚洲电影av| 日韩午夜在线观看视频| 国产精品成人国产乱一区| 韩国成人精品a∨在线观看| 亚洲男人第一av网站| 国产精品一区毛片| 亚洲天堂av高清| 亚洲欧美成aⅴ人在线观看| 欧美连裤袜在线视频| 黄网站色欧美视频| 国产欧美精品一区| 一色屋精品视频在线观看网站| 亚洲综合视频1区| 日韩亚洲欧美在线观看| 欧美午夜无遮挡| 久久久久久综合| 久久九九免费视频| 欧美高清在线一区二区| 欧美在线观看网址综合| 国产精品99久久久久久久女警| 欧美一区二区三区啪啪| 亚洲资源av| 欧美乱大交xxxxx| 久久国产毛片| 欧美日韩在线不卡一区| 欧美一级理论片| 国产精品影视天天线| 国产女人精品视频| 国产欧美一区二区白浆黑人| 国产精品嫩草影院av蜜臀| 欧美日本一区二区三区| 日韩视频国产视频| 亚洲在线视频| 久久久国产精品一区| 亚洲欧美国产制服动漫| 夜夜嗨av一区二区三区免费区| 欧美日韩精品综合| 欧美成人激情视频| 亚洲精品国产拍免费91在线| 欧美日本不卡高清| 看欧美日韩国产| 欧美日韩不卡合集视频| 亚洲国产精品久久久久秋霞蜜臀| 欧美日韩精品久久久| 欧美不卡一卡二卡免费版| 久久综合一区二区三区| 一本色道久久88综合日韩精品| 黄色亚洲网站| 免费不卡视频| 精品9999| 国产精品99久久久久久久久久久久| 久久成人精品| 亚洲一区二区在线播放| 亚洲欧美综合一区| 欧美第一黄网免费网站| 久久三级视频| 国产日韩一区欧美| 亚洲人永久免费|