<< Chapter < Page Chapter >> Page >

 Strlen(S): xác định ký tự trong chuỗi S. Trả về số nguyên.

 Search(S,Sub,S,x): tìm vị trí bắt đầu của chuỗi phụ SubS trong S, bắt đầu từ vị trí x trong S.

 Str2num(S): đổi chuỗi số S thành hằng số.

 Num2str(x): đổi số x thành chuỗi.

 Str2vec(S): đổi chuỗi S thành Véc tơ của mã ASCII.

 Vec2tr(v): đổi các Véc tơ của mã ASCII sang dạng chuỗi.

Các hàm nội suy (cubic spline interpolation)

 cspline(vx,vy): trả về Véc tơ nguồn thứ hai đối với dữ liệu của Véc tơ vx và vy.Véc tơ này sẽ trở thành đại lượng thứ nhất của hàm interp. Kết quả sẽ là khối tại các điểm đầu cuối.

 pline(vx,vy): tương tự như hàm cspline, ngoại trừ kết quả có dạng parabol ngay các điểm đầu cuối.

 lspline(vx,vy): tương tự như cspline, ngoại trừ kết quả là đường tuyến tính ngay các điểm đầu cuối.

 interp(vs,vx,vy,x): trả về giá trị giao điểm của vy tại điểm x.

Khai báo:

- vx là Véc tơ của những giá trị dữ liệu thực theo thứ tự tăng dần. Chúng tương ứng với giá trị x.

- vy là Véc tơ của những giá trị dữ liệu thực. Chúng tương ứng với giá trị y. Số thành phần tương tự như vx.

- v là Véc tơ được kích hoạt bởi cspline, pspline, lspline.

- x là giá trị của biến độc lập mà ngay đó sẽ đưa ra kết quả giao thoa. Đối với những kết quả tốt nhất, những giá trị biến này nên nằm trong phạm vi được đưa rà từ những giá trị vx.

- hàm cubic spline interpolation cho phép bạn chuyển đường cong qua các điểm theo cách nguồn thứ nhất và thứ hai của đường cong được kéo tiếp tục qua các điểm kế tiếp. Đường cong này được tập hợp bằng cách lấy ba điểm kề nhau và tạo thành khối chạy qua các điểm đó. Khối đa giác này sau đó được nối lại với nhau để tạo thành đường cong hoàn chỉnh.

Các hàm hồi quy

 slope(vx,vy): độ xiên của đường thẳng khớp với dữ liệu trong vx, vy.

 intercep(vx,vy): đường giao tiếp vừa đúng với số liệu trong vx, vy.

Khai báo:

- vx là Véc tơ của những số liệu thực đối với hàm slope. Các giá trị trong vx tương ứng với các giá trị x.

- vy là Véc tơ của các số liệu thực. Những giá trị này tương ứng với các giá trị y. Số thành phần của vy cũng tương tự như vx.

 Hàm slope và intercep rất hữu ích khi dữ liệu kế thừa sự tuyến tính mà cũng có thể áp dụng cho các hàm số mũ.

 Công thức của đường thẳng vừa khớp với số liệu của vx và vy là y=mx+b là kết quả từ hàm slope và b là kết quả từ hàm intercept.

(xem ví dụ ở hình 5.2)

Ví dụ:

Hình 5.2. Minh hoạ dùng hàm spline và hàm intercept

Hàm tuyến tính kết hợp (linear combination of function)

 linfit(vx,vy,F): trả về Véc tơ chứa các hệ số được dùng để tạo sự kết hợp của các hàm tuyến tính trong F với dữ liệu ước định trong vx và vy (hình 5.3).

Khai báo:

- vx là Véc tơ của các giá trị dữ liệu. Những giá trị này tương ứng với giá trị x. các thành phần phải được xếp theo thứ tự tăng dần (có thể dùng hàm sort).

- vy là Véc tơ của các giá trị dữ liệu. Những giá trị này tương ứng với giá trị y. Số thành phần tương tự như vx.

- F là hàm số trả về Véc tơ với những thành phần là hàm số hình thành các hàm tuyến tính, hoặc trong trường hợp đó là hàm tuyến tính đơn. F là một tập hợp.

Ví dụ:

Questions & Answers

the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
what is cell divisoin?
Aron Reply
Diversity of living thing
ISCONT
what is cell division
Aron Reply
Cell division is the process by which a single cell divides into two or more daughter cells. It is a fundamental process in all living organisms and is essential for growth, development, and reproduction. Cell division can occur through either mitosis or meiosis.
AI-Robot
What is life?
Allison Reply
life is defined as any system capable of performing functions such as eating, metabolizing,excreting,breathing,moving,Growing,reproducing,and responding to external stimuli.
Mohamed
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Bài giảng môn học mathcad. OpenStax CNX. Jul 29, 2009 Download for free at http://cnx.org/content/col10744/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Bài giảng môn học mathcad' conversation and receive update notifications?

Ask