Pricing and licensing

Плюсы и минусы

Приложение характеризуется следующими достоинствами:

  • присутствуют файлы MEX типа;
  • процесс генерации кода выполняется автоматически;
  • присутствует большое количество встроенных математических функций;
  • поддерживает элементы 2-D и 3-D формата;
  • разработка нового алгоритма выполняется согласно гибким настройкам;
  • пользовательский интерфейс является удобным;
  • присутствует возможность применения сложной структуры данных;
  • разрешение окна и панель инструментов настраиваются ручным способом;
  • поддерживает статистическую типизацию и модульную структуру;
  • работает с любыми популярными процессорами;
  • обновление выходит постоянно от официальной страницы разработчика;
  • имеет высокую популярность среди подобных программ и применяется в различных расчетах технической направленности.

Выделяют следующие недостатки программы:

  • поддержка старых версий ОС Windows отсутствует;
  • установка приложения занимает некоторое время;
  • в бесплатной версии присутствуют не все функциональные возможности;
  • после установки программы пользователи смогут работать на ней бесплатно только в течения месяца.

В результате программа является высокоэффективной и помогает решить различного рода вычислительные задачи и смоделировать сложные процессы. Приложение отличается простым управлением и дружелюбной средой. Поэтому программа подходит для разработчиков в системе программирования и инженеров, которые необходимо решать различные задачи. 

MATLAB на Filetogo.net скачали 167 раз.

Все приложения и игры на нашем сайте проходят обязательную проверку антивирусом с последними сигнатурами.

Description

displays:

  • A header containing the MATLAB product family version number, license number, operating system, and
    version of Java software for the MATLAB product.

  • The product name, version number, and release name for MATLAB and all other installed products.

displays the
header and the version number and release name for , where
is the name of the folder that contains the
file.

returns product information to the structure array,
.

displays licensing information for your installed
products. Use this command when completing a customer service request form. This syntax is
not recommended for programmatic use.

Examples

Version for All Installed Products

Display version information for all installed products. The output
shown here is representative. Your results might differ.

ver
-------------------------------------------------------------------------------------------------------
MATLAB Version: 8.2.0.29 (R2013b)
MATLAB License Number: 234567
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------------------------
MATLAB                                                Version 8.2        (R2013b)             
Simulink                                              Version 8.2        (R2013b)      
Control System Toolbox                                Version 9.6        (R2013b)       

Structure Containing Version for a Particular Product

Create a structure containing version information for just the
Symbolic Math Toolbox product. The output shown here is representative. Your results might
differ.

Determine the product name for Symbolic Math Toolbox by setting to the name of a function unique to
Symbolic Math Toolbox, such as .

n = 'sym';
pat = '(?<=^.+toolbox)+';
regexp(which(n), pat, 'match', 'once')
ans =

symbolic

Specify the value returned in the previous step as an argument to
.

v = ver("symbolic")
v = 

        Name: 'Symbolic Math Toolbox'
     Version: '5.11'
     Release: '(R2013b)'
        Date: '19-May-2013'   

Input Arguments

— product-specific informationstring scalar | character vector

The product or toolbox for which you want to view version information, specified as
a string scalar or character vector.

Output Arguments

— product name, version, release, and datestructure array

Product name, version, release, and date, returned as a structure array with these
fields: , , ,
and . If a license is a trial version, the letter
precedes the value in the
field.

| | | | |

Полное описание

MATLAB включает в себя современные инструменты для анализа данных, разработки алгоритмов и создания различных моделей и приложений. Отличается от языков программирования C/C++, Java, Pascal, Fortran и прочих, более высокой скоростью решения типовых задач и получения результатов. Доступно HIL-тестирование созданного ПО в режиме реального времени.

Поддержка родного языка существенно упростит использование интерфейса. Софт предложит встроенные средства для работы с комплексными и аналитическими матрицами данных. Присутствуют встроенные функции линейной алгебры.

Зачастую программное обеспечение применяют в таких областях, как: разработка систем управления, автоматизация тестирования и измерений, моделирование объектов, вычислительная биология и так далее. Имеются удобные опции подсветки кода и подсказок для начинающих. МАТЛАБ станет незаменимым помощником в области технических вычислений и инженерных расчетов.

Меню состоит из нескольких окон, основные из которых:

  1. Command Window — для ввода команд. После загрузки данного окна, курсор начнет моргать, соответственно можно приступать к работе.
  2. Workspase — рабочее пространство. Здесь можно просматривать, редактировать и удалять объекты в памяти.
  3. Current Folder — просмотр файловой структуры и выбор каталогов.
  4. Command History отвечает за отображение списка использованных команд и их повторный вызов.

Вы сможете в любой момент закрыть одно или несколько окон, восстанавливать их, а также вручную настраивать размеры по собственному усмотрению.

Обратите внимание на рекомендуемые системные требования:

  • ОЗУ: 2 Гб и выше;
  • Видеокарта с поддержкой OpenGL 3.3;
  • Свободное место на жестком диске: от 10 Гб;
  • Процессор с тактовой частотой 2,2 ГГц и выше.

Description

declares a function named that accepts inputs and returns outputs . This declaration statement must be the first executable line of the function. Valid function names begin with an alphabetic character, and can contain letters, numbers, or underscores.

You can save your function:

  • In a function file which contains only function definitions. The name of the file must match the name of the first function in the file.

  • In a script file which contains commands and function definitions. Functions must be at the end of the file. Script files cannot have the same name as a function in the file. Functions are supported in scripts in R2016b or later.

Files can include multiple local functions or nested functions. For readability, use the keyword to indicate the end of each function in a file. The keyword is required when:

  • Any function in the file contains a nested function.

  • The function is a local function within a function file, and any local function in the file uses the keyword.

  • The function is a local function within a script file.

Examples

Function with One Output

Define a function in a file named that accepts an input vector, calculates the average of the values, and returns a single result.

function ave = average(x)
    ave = sum(x(:))/numel(x); 
end

Call the function from the command line.

z = 1:99;
ave = average(z)
ave =
    50

Function with Multiple Outputs

Define a function in a file named that returns the mean and standard deviation of an input vector.

function  = stat(x)
    n = length(x);
    m = sum(x)/n;
    s = sqrt(sum((x-m).^2/n));
end

Call the function from the command line.

values = ;
 = stat(values)
ave =
   47.3400
stdev =
   29.4124

Function in a Script File

Open Script

Define a script in a file named that computes the value of the integrand at and computes the area under the curve from 0 to . Include a local function that defines the integrand, .

Note: Including functions in scripts requires MATLAB R2016b or later.

% Compute the value of the integrand at 2*pi/3.
x = 2*pi/3;
y = myIntegrand(x)

% Compute the area under the curve from 0 to pi.
xmin = 0;
xmax = pi;
f = @myIntegrand;
a = integral(f,xmin,xmax)

function y = myIntegrand(x)
    y = sin(x).^3;
end
y =

    0.6495


a =

    1.3333

Multiple Functions in a Function File

Define two functions in a file named , where the first function calls the second.

function  = stat2(x)
    n = length(x);
    m = avg(x,n);
    s = sqrt(sum((x-m).^2/n));
end

function m = avg(x,n)
    m = sum(x)/n;
end

Function is a local function. Local functions are only available to other functions within the same file.

Call function from the command line.

values = ;
 = stat2(values)
ave =
   47.3400
stdev =
   29.4124

Function with Argument Validation

Define a function that restricts input to a numeric vector that contains no or elements. This function uses the keyword, which is valid for MATLAB versions R2019b and later.

function  = stat3(x)
    arguments
        x (1,:) {mustBeNumeric, mustBeFinite}
    end
    n = length(x);
    m = avg(x,n);
    s = sqrt(sum((x-m).^2/n));
end

function m = avg(x,n)
    m = sum(x)/n;
end

In the code block, indicates that must be a vector. The validation functions, , restrict the elements in to numeric values that are not or . For more information, see Function Argument Validation.

Calling the function with a vector that contains an element that is violates the input argument declaration. This violation results in an error being thrown by the validation function.

values = ;
 = stat3(values)
Invalid input argument at position 1. Value must be finite.

| | | | | | | |

Topics

  • Create Functions in Files
  • Local Functions
  • Nested Functions
  • Base and Function Workspaces
  • Function Precedence Order
  • Function Argument Validation
  • Indexing into Function Call Results

Description

performs
a logical AND of arrays and and
returns an array containing elements set to either logical 1 ()
or logical 0 (). An element of the output
array is set to logical 1 () if both and contain
a nonzero element at that same array location. Otherwise, the array
element is set to 0.

For bit-wise logical AND operations, see .

is
an alternate way to execute , but is rarely
used. It enables operator overloading for classes.

Examples

Locate Nonzero Values

Open Live Script

Find the logical AND of two matrices. The result contains logical () only where both matrices contain nonzero values.

A = 
A = 3×3

     5     7     0
     0     2     9
     5     0     0

B = 
B = 3×3

     6     6     0
     1     3     5
    -1     0     0

A & B
ans = 3x3 logical array

   1   1   0
   0   1   1
   1   0   0

Truth Table for Logical AND

Open Live Script

Create a truth table for .

A = 
A = 1x2 logical array

   1   0

B = 
B = 2x1 logical array

   1
   0

C = A&B
C = 2x2 logical array

   1   0
   0   0

Input Arguments

, — Operandsscalars | vectors | matrices | multidimensional arrays

Operands, specified as scalars, vectors, matrices, or multidimensional
arrays. Inputs and must either be
the same size or have sizes that are compatible (for example,
is an -by-
matrix and is a scalar or
-by- row vector). For more
information, see Compatible Array Sizes for Basic Operations.

Data Types: | | | | | | | | | |

Tips

  • You can chain together several logical operations,
    for example, .

  • The symbols and perform
    different operations in MATLAB. The element-wise AND operator described here is
    . The short-circuit AND operator is
    .

  • When you use the element-wise and
    operators in the context of an or
    loop expression (and only in that context), they
    use short-circuiting to evaluate expressions. Otherwise, you must specify
    or to opt-in to
    short-circuiting behavior. See for more information.

Compatibility Considerations

Implicit expansion change affects arguments for operators

Behavior changed in R2016b

Starting in R2016b with the addition of implicit expansion, some combinations of arguments for basic operations that previously returned errors now produce results. For example, you previously could not add a row and a column vector, but those operands are now valid for addition. In other words, an expression like previously returned a size mismatch error, but now it executes.

If your code uses element-wise operators and relies on the errors that MATLAB previously returned for mismatched sizes, particularly within a / block, then your code might no longer catch those errors.

For more information on the required input sizes for basic array operations, see Compatible Array Sizes for Basic Operations.

Extended Capabilities

C/C++ Code GenerationGenerate C and C++ code using MATLAB Coder.

This function fully supports distributed arrays. For more
information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).

| | | | |

Description

performs
a logical OR of arrays and and
returns an array containing elements set to either logical 1 ()
or logical 0 (). An element of the output
array is set to logical 1 () if either or contain
a nonzero element at that same array location. Otherwise, the array
element is set to 0.

For bit-wise logical OR operations, see .

is
an alternate way to execute , but is rarely
used. It enables operator overloading for classes.

Examples

Locate Zeros in Matrices

Open Live Script

Find the logical OR of two matrices. The result contains logical () where either matrix contains a nonzero value. The zeros in the result indicate spots where both arrays have a value of zero.

A = 
A = 3×3

     5     7     0
     0     2     9
     5     0     0

B = 
B = 3×3

     6     6     0
     1     3     5
    -1     0     0

A | B
ans = 3x3 logical array

   1   1   0
   1   1   1
   1   0   0

Truth Table for Logical OR

Open Live Script

Create a truth table for .

A = 
A = 1x2 logical array

   1   0

B = 
B = 2x1 logical array

   1
   0

C = A|B
C = 2x2 logical array

   1   1
   1   0

Input Arguments

, — Operandsscalars | vectors | matrices | multidimensional arrays

Operands, specified as scalars, vectors, matrices, or multidimensional
arrays. Inputs and must either be
the same size or have sizes that are compatible (for example,
is an -by-
matrix and is a scalar or
-by- row vector). For more
information, see Compatible Array Sizes for Basic Operations.

Data Types: | | | | | | | | | |

Tips

  • You can chain together several logical operations,
    for example, .

  • The symbols and perform different
    operations in MATLAB. The element-wise OR operator described here is
    . The short-circuit OR operator is
    .

  • When you use the element-wise and
    operators in the context of an or
    loop expression (and only in that context), they
    use short-circuiting to evaluate expressions. Otherwise, you must specify
    or to opt-in to
    short-circuiting behavior. See for more information.

Compatibility Considerations

Implicit expansion change affects arguments for operators

Behavior changed in R2016b

Starting in R2016b with the addition of implicit expansion, some combinations of arguments for basic operations that previously returned errors now produce results. For example, you previously could not add a row and a column vector, but those operands are now valid for addition. In other words, an expression like previously returned a size mismatch error, but now it executes.

If your code uses element-wise operators and relies on the errors that MATLAB previously returned for mismatched sizes, particularly within a / block, then your code might no longer catch those errors.

For more information on the required input sizes for basic array operations, see Compatible Array Sizes for Basic Operations.

Extended Capabilities

C/C++ Code GenerationGenerate C and C++ code using MATLAB Coder.

This function fully supports distributed arrays. For more
information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector