MATLAB

38
2511

MATLAB

Names of variables and functions can contain any characters except the special, but they must begin with a letter. Use a separator, when writing several operators in the same line. Comma serves as delimiter.  Delimiter can be omitted after the single or the last operator in a string.

Operators have two forms of recording:

  • the implicit assignment (expression);
  • with explicit assignment (variable = expression).

When you use the implicit assignment, the system automatically creates a variable called "ans", and assigns it a value of the result.

MATLAB programming languageCommand-line buffer length is limited by 256 characters. If you need to move the operator to the next line, you must enter a line continuation character ... (three points), press Enter key to continue the operator. The system uses two types of MATLAB arithmetic operations: on arrays and on matrices; operations on arrays are performed element by element, and on matrices - in accordance with the rules of linear algebra.

The numbers in MATLAB can be represented with a fixed and floating point, be positive or negative, fractional, real and complex.

  Features of numbers presentation in MATLAB:

  1. imaginary unit is represented by two characters "i" and "j";
  2. integral and fractional parts are separated by point;
  3. order of the number is separated from mantissa by character "e".

In the process of tasks solving, variables can take up a lot of computer memory. Function "clear" is used in MATLAB to clear the memory from the variables. This function has has such syntax:

  1. clear х — elimination of "х" variable;
  2. clear — elimination of all variables;
  3. clear а b с — elimination of the family of variables.

Constant — is the numerical value of a unique name, which has a mathematical meaning. In MATLAB are often used following constants:

  1. inf — machine infinity;
  2. arts — name of the variable, which stores the result of the calculation;
  3. pi — «number Pi»;
  4. eps — error in operations with numbers with floating point;
  5. realmin — minimal number with floating point;
  6. reaimax — maximal number with floating point;
  7. NaN — non-numeric character data (Not a Number).

Mathematical functions are represented as fun (x),
MATLABwhere fun — function name,
х — argument as a: number, vector or matrix.
Numbers, elements, vectors or matrix can be real or complex.

For graphing are used special functions.

MATLAB programming languageWhen you set the style, parameter "s" (vector of constants) is represented as a vector or strings of characters. To set the title of graph, axis labels and grid lines are used such functions: title, xlabel, уlabel, grid on.

Author: World of translation
RATE PUBLICATION
5 (votes: 0)

Комментарии:

  • avatar
    Alain - 16.12.2012, 11:26
    I like this post, enjoyed this one regards for putting up.
  • avatar
    helicopter - 6.01.2013, 12:02
    Nice job writing this up in a manner that most people can understand
  • avatar
    Niked - 7.01.2013, 03:08
    Awesome things here. I am very glad to peer your post.
  • avatar
    Egan - 23.01.2013, 11:49
    This will be the appropriate weblog for any individual who desires to find out about this topic. You comprehend so a lot its just about difficult to argue with you (not that I in fact would want?-HaHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Good stuff, just outstanding!
  • avatar
    actishhic - 26.01.2013, 23:41
    You made some decent points there. I looked online for the problem and found most people will go together with together with your webpage.
  • avatar
    Nagun - 9.02.2013, 01:52
    I'd need to check with you here. Which is not some thing I in most cases do! I enjoy reading a post that may make individuals think. Also, thanks for permitting me to comment!
  • avatar
    Anastasia - 9.02.2013, 05:50
    An impressive share, I just given this onto a colleague who was performing just a little analysis on this. And he in actual fact purchased me breakfast for the reason that I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading alot more on this topic. If attainable, as you turn into expertise, would you mind updating your blog with much more details? It truly is extremely beneficial for me. Major thumb up for this blog post!
  • avatar
    Statracytic - 9.02.2013, 12:22
    It's difficult to find knowledgeable people on this subject, but you sound like you know what you are talking about! Thanks This genuinely answered my difficulty, thank you! NFL Authentic Jerseys http://jerseys205.2kool4u.net/
  • avatar
    Merill - 21.02.2013, 06:56
    Youre so cool! I dont suppose Ive read anything like this prior to. So nice to obtain somebody with some original thoughts on this subject.
  • avatar
    Don - 21.02.2013, 08:59
    When are you going to post again?
  • avatar
    Art - 25.02.2013, 04:31
    Youre so cool! I dont suppose Ive read anything like this prior to. So nice to acquire somebody with some original thoughts on this topic. realy thank you for beginning this up. this web page is some thing that's needed on the web, an individual with a small originality. beneficial job for bringing some thing new to the world wide web!
  • avatar
    Tico - 5.03.2013, 08:30
    You'll find certainly plenty of details like that to take into consideration. That is an incredible point to bring up. I give the thoughts above as general inspiration but clearly there are questions like the 1 you bring up where probably the most essential thing will be working in honest fine faith. I don?t know if greatest practices have emerged about things like that, but I'm positive that your job is clearly identified as a fair game. Both boys and girls really feel the impact of just a moment's pleasure, for the rest of their lives.
  • avatar
    Linda - 5.03.2013, 09:18
    Terrific Post.thanks for share..much more wait ..
  • avatar
    TitTitGeall - 29.03.2013, 05:27
    You need to take part in a contest for one of the most beneficial blogs on the web. I will advise this website!
  • avatar
    Brandon - 30.03.2013, 04:03
    One can find some fascinating points in time in this article but I don't know if I see all of them center to heart. There is certainly some validity but I will take hold opinion until I look into it further. Wonderful write-up , thanks and we want even more!
  • avatar
    Glen - 30.03.2013, 04:27
    Nice post. I find out some thing extra difficult on unique blogs everyday.
  • avatar
    Rico - 2.04.2013, 14:11
    An fascinating discussion is worth comment. I feel which you should certainly write alot more on this topic, it may not be a taboo topic but typically men and women are not sufficient to speak on such topics. To the next. Cheers
  • avatar
    Bob - 8.04.2013, 05:45
    Great post.
  • avatar
    TitTitGeall - 20.04.2013, 18:57
    This definitely answered my challenge, thank you! mжnd Nike free sko
  • avatar
    TitTitGeall - 20.04.2013, 21:04
    I was fairly pleased to uncover this web-site.I wanted to thanks for your time for this excellent read!! I undoubtedly enjoying just about every small bit of it and I have you bookmarked to check out new stuff you weblog post. Nike Lunar Elite 2 for women
  • avatar
    TitTitGeall - 20.04.2013, 21:32
    There are some intriguing points in time in this article but I do not know if I see all of them center to heart. There is certainly some validity but I will take hold opinion until I appear into it further. Beneficial post , thanks and we want a lot more! Added to FeedBurner at the same time Nike free sko for mжnd
  • avatar
    Juggipsyporgo - 25.04.2013, 02:50
    The next time I read a blog, I hope that it doesnt disappoint me as a lot as this 1. I mean, I know it was my option to read, but I actually thought youd have some thing intriguing to say. All I hear is usually a bunch of whining about something which you could fix should you werent too busy looking for attention. michael kors hand bags
  • avatar
    Juggipsyporgo - 25.04.2013, 03:12
    An impressive share, I just given this onto a colleague who was performing a little analysis on this. And he in truth purchased me breakfast since I located it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to talk about this, I feel strongly about it and really like reading alot more on this subject. If possible, as you develop into expertise, would you mind updating your blog with a lot more details? It really is extremely helpful for me. Huge thumb up for this blog post! red bottom heels
  • avatar
    actishhic - 9.05.2013, 22:07
    I am generally to blogging and i certainly appreciate your content. The write-up has actually peaks my interest. I am going to bookmark your webpage and maintain checking for new details. michael kors handbags outlet
  • avatar
    actishhic - 9.05.2013, 23:27
    This internet site is definitely a walk-through for all of the info you wanted about this and didn't know who to ask. Glimpse here, and you will surely discover it. michaels kors bags
  • avatar
    actishhic - 9.05.2013, 23:47
    When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get 4 emails using the same comment. Is there any way you are able to remove me from that service? Thanks! michael kors online
  • avatar
    nagunindink - 16.05.2013, 09:52
    incredibly nice post, i surely really like this web site, maintain on it shoes with red soles
  • avatar
    nagunindink - 16.05.2013, 11:08
    you have an excellent weblog here! would you like to create some invite posts on my blog? shoes with red soles
  • avatar
    actishhic - 16.05.2013, 19:51
    you might have an awesome blog here! would you like to create some invite posts on my blog? michael kors on sale
  • avatar
    actishhic - 16.05.2013, 20:27
    quite nice post, i certainly really like this web page, maintain on it mk bag
  • avatar
    actishhic - 16.05.2013, 20:41
    Can I just say what a relief to discover a person who actually knows what theyre talking about on the web. You certainly know how you can bring an issue to light and make it essential. More men and women have to read this and realize this side of the story. I cant believe youre not alot more well-known because you certainly have the gift. michael kors handbags outlet online
  • avatar
    pypeFolillVep - 17.05.2013, 12:18
    This web web-site is seriously a walk-through for all of the info you wanted about this and didn't know who to ask. Glimpse here, and you will definitely discover it. red bottom shoes
  • avatar
    pypeFolillVep - 20.05.2013, 02:04
    Hello! I just would like to give an enormous thumbs up for the terrific info you have here on this post. I will likely be coming back to your weblog for a lot more soon. new era caps
  • avatar
    pypeFolillVep - 20.05.2013, 02:31
    I am regularly to blogging and i actually appreciate your content. The write-up has genuinely peaks my interest. I'm going to bookmark your site and maintain checking for new information and facts. new era hats
  • avatar
    pypeFolillVep - 20.05.2013, 02:40
    There is certainly noticeably a bundle to know about this. I assume you made specific nice points in functions also. cheap hats
  • avatar
    actishhic - 20.05.2013, 04:17
    fairly nice post, i surely really like this internet site, keep on it snapback hats
  • avatar
    actishhic - 20.05.2013, 04:58
    This is the appropriate blog for everyone who desires to learn about this subject. You realize so much its almost challenging to argue with you (not that I essentially would want?-HaHa). You certainly put a new spin on a topic thats been written about for years. Awesome stuff, just outstanding! new era hats
  • avatar
    actishhic - 20.05.2013, 05:12
    When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each and every time a comment is added I get four emails with the identical comment. Is there any way you can actually take away me from that service? Thanks! new era hats
Go UP