programming and developing algorithms with matlab video -凯发k8网页登录
write programs and develop algorithms using the high-level language and development tools in matlab®.
matlab provides a high-level language and development tools that let you quickly write matlab programs, develop and analyze algorithms, and build applications. matlab is a matrix-based language. it natively supports vector and matrix operations that are fundamental to engineering and scientific problems.
for example, you can operate on all of the elements in a matrix with a single command without having to write a for loop. as a result, one line of matlab code often replaces several lines of c or c code.
matlab provides features of traditional programming languages, including flow control, such as while and for loops; error handling, such as try catch blocks which allow us to execute statements and catch the resulting errors; and object-oriented programming. here you can see a class defined in matlab together with its properties and methods.
the matlab environment is well suited for algorithm design and exploration. in this example, we're developing an algorithm to identify the center of a hurricane. because matlab is a high-level language there's no need to perform low-level administrative tasks, such as declaring variables, specifying data types, and allocating memory.
using the command window, you can execute commands one at a time, providing you with immediate results. this interactive approach makes it easy to quickly explore multiple options and iterate to an optimal solution.
you can create a matlab script or function from the commands you've already entered. this makes it easy to reuse and automate your work. matlab provides built-in algorithms for signal processing and communications, image and video processing, control systems, and many other domains. here, we're using a function from image processing toolbox™ to identify and measure properties of connected regions in an image.
matlab provides development tools that help you implement your algorithms efficiently and optimize their performance. the matlab editor is where you create and edit programs. the editor provides debugging features. you can set breakpoints, examine variable values, and step through individual lines of code.
the code analyzer automatically checks code in the matlab editor for problems. when you hover over underlined code fragments, the code analyzer provides an explanation of the problem and suggestions on how to fix it. the matlab profiler measures the overall performance of matlab programs and identifies areas of code to focus on for improvement. the profile summary report gives information about the functions called, including the time each function took to run, how many times each function was called, and which lines of code took the most processing time.
you can integrate your matlab applications with those written in other languages, such as c, c , java, and .net. here we have c code for a 2d gaussian function. this code was compiled into a mex function, or matlab executable, and can be called directly from within matlab. similarly, you can call matlab code directly from your c, c , or fortran applications.
matlab uses processor-optimized libraries for fast execution of matrix and vector computations. many linear algebra and numerical functions are multi-threaded, allowing them to run faster on multicore computers. you can use the high-level constructs found in the parallel computing products to parallelize your applications with only minor code changes. this allows you to take further advantage of multicore desktops and other resources, such as gpus and clusters. with matlab you can easily transform your ideas into algorithms and complex applications.
for more information about matlab, see the product page or watch one of the other videos.
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)