redwhite 0 / 0 / 0 Регистрация: 13.10.2010 Сообщений: 13 |
||||||||
1 |
||||||||
28.02.2012, 23:39. Показов 10945. Ответов 6 Метки нет (Все метки)
пишу
— всё работает
пишет ошибку
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
28.02.2012, 23:39 |
Ответы с готовыми решениями: Error: Missing MATLAB operator Ошибка в матлабе: ? plot3(X1,X2,Y,’o’,1X,2X,z) | Error: Unexpected MATLAB expression Программа выдает ошибку [C++ Error] Unit1.cpp(23): E2062 Invalid indirection, объясните пожалуйста в чем причина и как можно исправить В чем ошибка (Parse error: syntax error, unexpected ‘$i’ (T_VARIABLE), expecting ‘;’) ? 6 |
2829 / 2126 / 86 Регистрация: 02.05.2010 Сообщений: 3,195 |
|
29.02.2012, 00:20 |
2 |
Зачем Вам точка после у ? Уберите ее и все заработает.
0 |
0 / 0 / 0 Регистрация: 13.10.2010 Сообщений: 13 |
|
29.02.2012, 01:23 [ТС] |
3 |
Галина Борисовн, y является массивом
0 |
Галина Борисовн 2829 / 2126 / 86 Регистрация: 02.05.2010 Сообщений: 3,195 |
||||
29.02.2012, 01:30 |
4 |
|||
y является массивом Ну и что, Вы же не производите с ним никаких действий. Добавлено через 4 минуты
Результат: f2 = 10.5597 14.5161 18.0900
0 |
redwhite 0 / 0 / 0 Регистрация: 13.10.2010 Сообщений: 13 |
||||||||
29.02.2012, 01:37 [ТС] |
5 |
|||||||
Галина Борисовн, да.
если переписать
тоже перестаёт работать
0 |
2829 / 2126 / 86 Регистрация: 02.05.2010 Сообщений: 3,195 |
|
29.02.2012, 01:41 |
6 |
Точка ставится при почленном перемножении, делении, возведении в степень массивов
0 |
0 / 0 / 0 Регистрация: 13.10.2010 Сообщений: 13 |
|
29.02.2012, 01:46 [ТС] |
7 |
ну то есть видимо, если её убрать, то будет всё как мне надо)
0 |
Содержание
- How to solve Unexpected MATLAB expression for user input
- Direct link to this question
- Direct link to this question
- Direct link to this comment
- Direct link to this comment
- Answers (1)
- Direct link to this answer
- Direct link to this answer
- Direct link to this comment
- Direct link to this comment
- See Also
- Categories
- Community Treasure Hunt
- How to Get Best Site Performance
- Americas
- Europe
- Asia Pacific
- Filesep error Unexpected Matlab expression
- Direct link to this question
- Direct link to this question
- Accepted Answer
- Direct link to this answer
- Direct link to this answer
- Direct link to this comment
- Direct link to this comment
- More Answers (0)
- See Also
- Categories
- Community Treasure Hunt
- How to Get Best Site Performance
- Americas
- Europe
- Asia Pacific
- Error: Unexpected MATLAB expression.
- Direct link to this question
- Direct link to this question
- Answers (1)
- Direct link to this answer
- Direct link to this answer
- Direct link to this comment
- Direct link to this comment
- Direct link to this comment
- Direct link to this comment
- See Also
- Categories
- Community Treasure Hunt
- How to Get Best Site Performance
- Americas
- Europe
- Asia Pacific
- Error:Unexpected MATLAB expression.
- Direct link to this question
- Direct link to this question
- Accepted Answer
- Direct link to this answer
- Direct link to this answer
- Direct link to this comment
- Direct link to this comment
- More Answers (0)
- See Also
- Categories
- Products
- Community Treasure Hunt
- How to Get Best Site Performance
- Americas
- Europe
- Asia Pacific
- Error: Unexpected MATLAB expression.
- Direct link to this question
- Direct link to this question
- Answers (1)
- Direct link to this answer
- Direct link to this answer
- Direct link to this comment
- Direct link to this comment
- Direct link to this comment
- Direct link to this comment
- See Also
- Categories
- Community Treasure Hunt
- How to Get Best Site Performance
- Americas
- Europe
- Asia Pacific
How to solve Unexpected MATLAB expression for user input
Direct link to this question
Direct link to this question
1 Comment
Direct link to this comment
Direct link to this comment
Answers (1)
Direct link to this answer
Direct link to this answer
- accept that the user has to enter a valid matlab expression and leave your code as is.
- use try. catch to catch any problem and reprompt:
- or take the answer unevaluated and parse it yourself, using the ‘s’ option of input :
Читайте также: Input device error no input device selected 23 wrong device selected please check settings 23
1 Comment
Direct link to this comment
Direct link to this comment
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Filesep error Unexpected Matlab expression
Direct link to this question
Direct link to this question
0 Comments
Accepted Answer
Direct link to this answer
Direct link to this answer
1 Comment
Direct link to this comment
Direct link to this comment
- because i want to delete all txt file
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Читайте также: Protocol error node js
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Error: Unexpected MATLAB expression.
Direct link to this question
Direct link to this question
0 Comments
Answers (1)
Direct link to this answer
Direct link to this answer
2 Comments
Direct link to this comment
Direct link to this comment
Direct link to this comment
Direct link to this comment
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Error:Unexpected MATLAB expression.
Direct link to this question
Direct link to this question
0 Comments
Accepted Answer
Direct link to this answer
Direct link to this answer
1 Comment
Direct link to this comment
Direct link to this comment
More Answers (0)
See Also
Categories
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Читайте также: Mysql error 1227 super privilege
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Error: Unexpected MATLAB expression.
Direct link to this question
Direct link to this question
0 Comments
Answers (1)
Direct link to this answer
Direct link to this answer
2 Comments
Direct link to this comment
Direct link to this comment
Direct link to this comment
Direct link to this comment
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Can someone help me with this?
g = 9.81;
m = 0.5;
d = 0.05;
A = 12.e-4;
B = 12.e-4;
C = 4.5e-4;
wspin = (1000*2*pi)/60;
theta = 60;
z = [sind(theta) 0 cosd(theta)];
p = [0 1 0];
y = cross(z,p);
x = cross (y,z);
i = x/norm(x);
j = y/norm(y);
k = z/norm(z);
QXx = [i; j; k];
q0 = dcm2quat(QXx);
w0 = [0 0 wspin]’;
t0 = 0;
tf = 2;
f0 = [q0; w0];
[t,f] = rkf45(@rates, [t0,tf], f0);
q = f(:,1:4);
wx = f(:,5);
wy = f(:,6);
wz = f(:,7);
for m = 1:length(t)
QXx = quat2dcm(q(m,:));
[prec(m) nut(m) spin(m)] = dcm2angle(QXx);
end
plotit
««««««««««««««««««««««««««««`
function dfdt = rates(t,f)
q = f(1:4);
wx = f(5);
wy = f(6);
wz = f(7);
q = q/norm(q);
Q = quat2dcm(q);
M = Q*[-m*g*d*Q(3,2)
m*g*d*Q(3,1)
0];
Omega = [ 0 wz -wy wx
-wz 0 wx wy
wy -wx 0 wz
-wx -wy -wz 0];
q_dot = (Omega*q)/2;
wx_dot = (M(1))/A — ((C-B)*wy*wz)/A;
wy_dot = (M(2))/B — ((A-C)*wz*wx)/B;
wz_dot = (M(3))/C — ((B-A)*wx*wy)/C;
dfdt = [q_dot; wx_dot; wy_dot; wz_dot];
end
««««««««««««««««««««««««««`
function plotit
figure(1)
subplot(311)
plot(t, prec)
xlabel(‘time (s)’)
ylabel(‘precession angle (deg)’)
axis([-inf, inf, -inf, inf])
grid
subplot(312)
plot(t, nut)
xlabel(‘time (s)’)
ylabel(‘nutation angle (deg)’)
axis([-inf, inf, -inf, inf])
grid
subplot(313)
plot(t, spin)
xlabel(‘time (s)’)
ylabel(‘spin angle (deg)’)
axis([-inf, inf, -inf, inf])
grid
end
回答(2 个)
.m files cannot include any other period in their name. .m files must follow the rules for MATLAB identifiers: they have to start with a letter (A to Z or a to z), after which you can use letters or digits 0 to 9 or the underscore (‘_’) character. The maximum length excluding the ‘.m’ is 63 characters.
So you could have named your file Ex23.m or Ex_23.m but not Ex.23.m
The «««««««««««««««««««««««««««««`» are not valid in MATLAB code.
Otherwise… perhaps you should post the complete error, everything in red
另请参阅
类别
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
Translated by
How to solve Unexpected MATLAB expression for user input
Direct link to this question
Direct link to this question
1 Comment
Direct link to this comment
Direct link to this comment
Answers (1)
Direct link to this answer
Direct link to this answer
- accept that the user has to enter a valid matlab expression and leave your code as is.
- use try. catch to catch any problem and reprompt:
- or take the answer unevaluated and parse it yourself, using the ‘s’ option of input :
1 Comment
Direct link to this comment
Direct link to this comment
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Error:Unexpected MATLAB expression.
Direct link to this question
Direct link to this question
0 Comments
Accepted Answer
Direct link to this answer
Direct link to this answer
1 Comment
Direct link to this comment
Direct link to this comment
More Answers (0)
See Also
Categories
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
error — unexpected matlab expression
Direct link to this question
Direct link to this question
2 Comments
Direct link to this comment
Direct link to this comment
Direct link to this comment
Direct link to this comment
Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
Error: File: gsp_opt.m Line: 6 Column: 17 Unexpected MATLAB expression. ?
Direct link to this question
Direct link to this question
0 Comments
Accepted Answer
Direct link to this answer
Direct link to this answer
0 Comments
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- Deutsch
- English
- Français
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 简体中文 Chinese
- English
- 日本 Japanese (日本語)
- 한국 Korean (한국어)
Accelerating the pace of engineering and science
MathWorks is the leading developer of mathematical computing software for engineers and scientists.
Источник
На чтение 4 мин. Просмотров 28 Опубликовано 15.12.2019
I have the following call to a function:
2 Answers 2
The error says, that your function callfun has a syntax error in line 20. Probably some character which is not allowed.
It can be also a problem of duplicated function definition. A function inside callfun.m may have the same name as a built-in MATLAB function, what yields an error.
Do you have any user-defined functions called builtin, strjoin, or strsplit? MATLAB has these defined internally, and having any outside functions that shadow these built-in ones would result in this error. If you are unsure if you have created such functions, typing the command:
will show you the path to all items on the MATLAB path with the name «functionName»
Добро пожаловать в документацию MATLAB на русском языке!
Здесь представлена документация MATLAB на русском языке. Это обширный ресурс, который служит ускорению инновационного развития технологий в русскоговорящих странах и освоению новых знаний русскоязычными студентами, преподавателями и инженерами.
Перевод осуществляется автоматически с использованием системы ПРОМТ. Инженеры ЦИТМ Экспонента провели первоначальную работу по настройке более 5000 тонких параметров алгоритма перевода, словарей, препроцессора и памяти перевода, чтобы системно разрешить огромный объем трудностей машинного перевода.
Этот проект развивается и улучшается с Вашей помощью. Вы можете предлагать лучший вариант перевода, и Ваши исправления станут видны другим пользователям после одобрения модератором. В системе учитывается мнение большого и разнопрофильного профессионального сообщества инженеров и ученых.
Качественные и принятые модератором исправления будут реализованы в словаре и памяти машинного перевода так, чтобы каждый раз в других местах или в следующем релизе документации системно учитывалось Ваше предложение.
∑ Ваш рейтинг в сообществе Экспонента растет с количеством внесенных в память перевода исправлений.
«Документация» это проект сообщества Экспонента. Данный релиз содержит:
- Более 150 000 страниц локализованной технической документации
- 1.6 Гб текста и 2.5 Гб графических пояснений
- Более 10 000 примеров кода
По вопросам поддержки и коммерческого использования обращайтесь в ЦИТМ Экспонента.
Вы можете просмотреть документацию предыдущих (архивных) релизов MATLAB. Обратите внимание, что внесение правок в перевод архивных релизов невозможно.
Ошибки matlab и разрешение проблем. При использовании какой-либо математической программы вы неизбежно столкнетесь с некоторыми проблемами.
Даже при вводе простых арифметических команд вы можете случайно ошибиться или нечаянно нарушить правило программы MATLAB. В этом кратком разделе мы покажем три способа, чтобы справиться с такого рода проблемами.
Ошибки при вводе
Если вы сделаете ошибку в строке ввода, программа MATLAB выведет на экран
сообщение об ошибке. Например, вот что произойдет, если вы попробуете
вычислить следующее:
. 3u^2
|
Error: Unexpected MATLAB expression.
Ошибка состоит в отсутствии оператора умножения *. Выражение будет
выглядеть правильно таким образом: 3*иА2. Обратите внимание, что программа
помещает маркер (вертикальную черту) в том месте, где должна быть ошибка;
однако реальная ошибка может присутствовать в выражении до или после этого знака.
• Сообщение об ошибке, создаваемое в программе MATLAB 7.0.4 (последнее
обновление на момент написания книги), представляет собой нечто другое. Вы
обнаружите, что сообщения об ошибках и предупреждения, с которыми вы
столкнетесь, будут различаться в зависимости от версии программы.
^ Отсутствующие операторы умножения и скобки являются наиболее
частыми ошибками ввода у начинающих пользователей.
^ Вернитесь к обсуждению онлайновой справки в главе 1. Если вы не можете
расшифровать сообщение об ошибке, сгенерированное при введении команды программы MATLAB, обратитесь к онлайновой справке для этой команды или используйте функцию поиска в окне Help Browser (Обзор справки).
Вы можете редактировать строку ввода, используя клавишу «вверх», чтобы вновь
отобразить предыдущую команду, затем можете исправить команду с помощью клавиш
«влево» и «вправо» и нажать клавишу «enter». Клавиши со стрелками вертикального
перемещения позволяют производить прокрутку вперед и назад всех команд, которые
вы ввели во время сессии MATLAB, и очень полезны, когда вам необходимо
откорректировать, изменить или заново ввести предыдущую команду.
Если программа MATLAB «зависает» во время вычисления или вам кажется, что
операция выполняется программой слишком долго, вы можете произвести
прерывание операции, нажав сочетание клавиш Ctrl + С, то есть, удерживая
нажатой клавишу Ctrl, нажать клавишу С. Несмотря на то, что это достаточно
небезопасно, это один из методов прерывания работы, когда программа MATLAB не
отвечает.
Поэтому из выше всего сказанного можно сделать вывод, что вам необходимо просмотреть много дополнительной информации и альтернатив!
MATLAB Compiler encrypts and archives your MATLAB code (which remains as MATLAB .m
code), and packages it in a thin executable (either .exe or .dll) wrapper. This is delivered to the end user along with the MATLAB Compiler Runtime (MCR). If you wish, the MCR can be packaged within the executable as well.
The MCR is freely redistributable, and you can think of it as essentially a copy of MATLAB without a front-end desktop.
When the user runs the executable, it dearchives and decrypts the MATLAB code, and runs it against the MCR instead of MATLAB. Applications delivered via this method should therefore run exactly the same as they do within MATLAB (including the same speed).
MATLAB Coder converts a subset of the MATLAB language into C code. This can then be used in many different ways, including being brought back into MATLAB as a mex file, compiled with a C compiler to be called from another application, or delivered to an embedded device. Since it is C code rather than MATLAB code, it will often (though not always) run much faster than the original MATLAB code. The C code does not require the MCR. The supported subset of the MATLAB language is very extensive, but there are a few notable restrictions that you would want to look into before committing to this workflow. The code produced is C code, although it can produce a C++ wrapper if you have a need to use a C++ compiler rather than a C compiler.
MATLAB Compiler is intended for the use case that you want to simply and (fairly) straightforwardly share a MATLAB application that you’ve written with someone who does not have a copy of MATLAB. Since the deployed .m
code is encrypted, it can also be used to share MATLAB code while protecting intellectual property.
MATLAB Coder has other use cases, such as wanting to speed up MATLAB code by converting to a mex file, or needing to produce C code for another application or an embedded device.
If you have more detailed questions, I would really recommend that you just call up MathWorks and ask them.
Edit: The information above is correct for versions of MATLAB R2014b and below. As of MATLAB R2015a, functionality from MATLAB Compiler has been remixed with functionality from the MATLAB Builder products, and there is also a new product MATLAB Compiler SDK.
As of R2015a, MATLAB Compiler works in the same way as described above (i.e. encrypt, archive and package, but not producing C), but will now package as .exe, and as an Excel add-in (.xla). Prior to R2015a, this functionality used to be present in the product MATLAB Builder EX for Excel.
As of R2015a, MATLAB Compiler no longer produces .dll components. This functionality has been moved to the new product MATLAB Compiler SDK, which also includes functionality to produce .NET assemblies and Java classes. Prior to R2015a, this functionality used to be present in the products MATLAB Builder NE for .NET and MATLAB Builder JA for Java.
In other words:
In R2014b and below, we had:
MATLAB Compiler: produce .exe and .dll components
MATLAB Builder NE for .NET: produce .NET assemblies
MATLAB Builder JA for Java: produce Java classes
MATLAB Builder EX for Microsoft Excel: produce Excel add-ins.
In R2015a, we have:
MATLAB Compiler: produce .exe and Excel add-ins
MATLAB Compiler SDK: produce .dll, .NET assemblies and Java classes.
The scope and use-cases of MATLAB Coder have not changed across these releases (although there are new features).
Edit: As of R2015b, MATLAB Compiler SDK also produces Python packages.
Additional information on distinguishing MATLAB Coder and MATLAB Compiler for C/C++ can be found here.
Comparison table of different MATLAB Products for code generation.