Free Essay

Give Me Answer

In: Other Topics

Submitted By lyh9142739
Words 486
Pages 2
Tutorial 1 – Introduction to MATLAB
When you start MATLAB, the desktop appears in its default layout.

The desktop includes these panels:
• Current Folder — Access your files.
• Command Window — Enter commands at the command line, indicated by the prompt
(>>).
• Workspace — Explore data that you create or import from files.
• Command History — View or rerun commands that you entered at the command line.
Help
- To obtain information or description of particular function.
>> help cos
Exit
- Leave Matlab session
>> exit
Clear
- Removes all variables from the workspace.
>> clear

KMLIM

TCI2261

2012/2013

Scripts

New script

Debugging Tools

% These are comments

`
Variables
As you work in MATLAB, you issue commands that create variables and call functions.
For example, create a variable named a by typing this statement at the command line: a=1 MATLAB adds variable a to the workspace and displays the result in the Command
Window.
a=
1
When you do not specify an output variable, MATLAB uses the variable ans, short for answer, to store the results of your calculation. sin(a) ans =
0.8415
If you end a statement with a semicolon, MATLAB performs the computation, but suppresses the display of output in the Command Window. sin(a); At any time you want to know the active variables you can use:

KMLIM

TCI2261

2012/2013

Arrays
MATLAB is an abbreviation for "matrix laboratory."While other programming languages mostly work with numbers one at a time, MATLAB is designed to operate primarily on whole matrices and arrays.
All MATLAB variables are multidimensional arrays, no matter what type of data. A matrix is a two-dimensional array often used for linear algebra.
Row vector: comma or space separated values between brackets

Column vector: semicolon separated values between brackets

Matrices

Matrix Indexing

KMLIM

TCI2261

2012/2013

Matlab has many types of matrices which are built into the system.

KMLIM

TCI2261

2012/2013

Functions
Initialize built-in function’s values to a variable:

Transpose of a matrix:

Arithmetic operations:

KMLIM

TCI2261

2012/2013

KMLIM

TCI2261

2012/2013

Some Matlab functions can return more than one value. In the case of max the interpreter returns the maximum value and also the column index where the maximum value occurs.

Matlab has a convention in which a dot in front of an operation usually changes the operation. In the case of multiplication, a.*b will perform entry-by-entry multiplication instead of the usual matrix multiplication.

KMLIM

TCI2261

2012/2013

KMLIM

TCI2261

2012/2013

Relations and Logical Operations
In this section you should think of 1 as "true" and 0 as "false." The notations &, |, ~ stand for "and,""or," and "not," respectively. The notation == is a check for equality.

KMLIM

TCI2261

2012/2013

Colon Notation

Use colon notation to select a particular row or column.

KMLIM

TCI2261

2012/2013

Assignment
Assignment is the method of giving a value to a variable.

KMLIM

TCI2261

2012/2013

Branching

For loops

While loops

KMLIM

TCI2261

2012/2013

Similar Documents

Premium Essay

Carrers

...Behavioral Interview Questions * Give an example of an occasion when you used logic to solve a problem. * Give an example of a goal you reached and tell me how you achieved it. * Give an example of a goal you didn't meet and how you handled it. * Describe a stressful situation at work and how you handled it. * Tell me about how you worked effectively under pressure. * How do you handle a challenge? * Have you been in a situation where you didn't have enough work to do? * Have you ever made a mistake? How did you handle it? * Describe a decision you made that was unpopular and how you handled implementing it. * Did you ever make a risky decision? Why? How did you handle it? * Did you ever postpone making a decision? Why? * Have you ever dealt with company policy you weren't in agreement with? How? * Have you gone above and beyond the call of duty? If so, how? * When you worked on multiple projects how did you prioritize? * How did you handle meeting a tight deadline? * Give an example of how you set goals and achieve them. * Did you ever not meet your goals? Why? * What do you do when your schedule is interrupted? Give an example of how you handle it. * Have you had to convince a team to work on a project they weren't thrilled about? How did you do it? * Give an example of how you worked on team. * Have you handled a difficult situation with a co-worker? How? * What do you do if you......

Words: 3013 - Pages: 13

Premium Essay

Accounting

...How to answer 23 of the most common interview questions By Paul Michael Let’s face it; no one likes the interview process. Well, certainly not the people being interviewed anyway. You have to be on your best behavior, you only get one chance to get it right, and it’s like taking your driving test all over again. Over the years I’ve been to countless interviews. To get my first job out of college, I attended some 15-20 interviews a week. Whether it was in Britain or over here in the States, the questions never really seemed to change from job to job. Not only that, but the answers to them are usually the same, with your own personal interpretation of course. Here I present 23 questions you’re likely to be asked, and how I have learned to answer them. Why 23? Because I had more than 20 and less than 25. Remember, being interviewed is a skill, and if you do the preparation you should ace it every time. 1. So, tell me a little about yourself. I’d be very surprised if you haven’t been asked this one at every interview. It’s probably the most asked question because it sets the stage for the interview and it gets you talking. Be careful not to give the interviewer your life story here. You don’t need to explain everything from birth to present day. Relevant facts about education, your career and your current life situation are fine. 2. Why are you looking (or why did you leave you last job)? This should be a straightforward question to answer, but it can trip you up.......

Words: 4063 - Pages: 17

Free Essay

Organization

...matches with the current value available in the company. 1. Answer structure: The answer extent of this question include: • I just found out the job recruitment and I do not have much information about the company. • I am interested in and impressed by the company so I apply for this position. • Emphasize the strengths of the company, for example: is the number one brand in…; has the technical level of….; is the number one in the field of ….. 2. Answer tips: Study thoroughly the company that you are going to apply in to see what advantages they have for the customers and staff. • Famous brand. • High quality products. • Is highly rated in the list of companies employees want to work for. • Career promotion opportunities. • Company’s development ability. 3. Answer samples Sample 1: Your company is introducing, as I think, a new wind in ABC region. I am sure your success in this region will be guaranteed and I’d like it very much to have an opportunity to develop my career with the company in this region. Sample 2: Working in your company is not only offering me the opportunity to work in a highly professional environment, but also giving me the opportunity to work for one of the most successful and reputable firms. I wish to have such opportunity to help with the company goals and sharing my broad experience with your experts as a team. Explain how you would be an asset to this organization? 1. Answer tips When you have made some achievement for the......

Words: 1559 - Pages: 7

Free Essay

Interview

...Interview Questions and Answers! Reference: WomenCo. Lifestyle Digest, updates@m.womenco.com 1. Why do you want to work in this industry? Bad answer: “I love to shop. Even as a kid, I spent hours flipping through catalogues.” Don’t just say you like it. Anyone can do that. Focus instead on your history with that particular industry, and if you can, tell a success story. Good answer: “I’ve always loved shopping, but my interest in retail marketing really started when I worked at a neighborhood boutique. I knew our clothes were amazing, but that we weren’t marketing them properly. So I worked with management to come up with a marketing strategy that increased our sales by 25% in a year. It was great to be able to contribute positively to an industry I feel so passionate about, and to help promote a product I really believed in.” 2. Tell us about yourself. Bad answer: “I graduated four years ago from the University of Michigan, with a Bachelor’s in Biology – but I decided that wasn’t the right path for me. So I switched gears and got my first job, working in sales for a startup. Then I went on to work in marketing for a law firm. After that, I took a few months off to travel. Finally, I came back and worked in marketing again. And now, here I am, looking for a more challenging marketing role.” Instead of giving a chronological work history, focus on your strengths and how they pertain to the role. If possible, illustrate with examples. Good answer: “I’m......

Words: 2234 - Pages: 9

Free Essay

What Gives You Pleasure

...“What gives you pleasure?” and “What makes you feel good?” Those are questions I don’t really often ask myself. It’s not like they are hard questions but to me in actuality they are. I always wonder with these types of questions if I am giving the right answer or if there is even a right answer. I don’t think there is a right or wrong answer in general. The best answer is the one you give. We all have our own definition of pleasure and what makes us feel good. What brings me the most pleasure and makes me feel good first and foremost are my kids. I was told I would never be able to have kids, but God has blessed me with two beautiful girls. I enjoy all my time with them both. I guess you could also say that being a mom also brings me pleasure and makes me feel good. I couldn’t imagine doing anything else in the world. I never pictured myself the mother type but it suits me. Being a mom to my girls is something that brings me joy; makes my heart swell up with pride just knowing that I made those girls and they love me no matter what. Of course other things in this world bring me pleasure and make me feel good. Things such as friends and family, music, sweets like chocolate, and big bear hugs. I love having an intimate relationship with my best friend; it gives me no greater pleasure to know that I am sharing my life forever with him. I also enjoy jumping in my car and going for a ride with the windows down and music blasting, not a care in the world and nowhere to be. I......

Words: 392 - Pages: 2

Premium Essay

Marketing

...Question 1: Why Do You Want To Work For Us? I'm not looking for just another pay check. I enjoy my work and am proud of my profession. Your company produces a superior product/provides a superior service. I share the values that make this possible, which should enable me to fit in and complement the team." Question 2: What interests you about this job? When you're asked what interests you about the position you are interviewing for, the best way to respond is to describe the qualifications listed in the job posting, then connect them to your skills and experience. That way, the employer will see that you know about the job you're interviewing for (not everyone does) and that you have the qualifications necessary to do the job. For example, if you were interviewing for a Human Resources Manager job where you would be responsible for recruiting, orientation, and training, you will want to discuss how you were responsible for these functions in your past positions, and why you are interested in continuing to develop your expertise in Human Resources management. Another example would be if you were interviewing for a Programmer / Analyst position. In that case, you would mention your interest in learning and excelling at new technologies, your experience in programming both new applications, and your interest in and your ability to problem solve. In all cases, you will want to convey your enthusiasm for the opportunity to interview, along with your solid ability to......

Words: 7749 - Pages: 31

Free Essay

10 Popular Interview Questions

...Popular Interview Questions 1) "Tell me about yourself?" This is not an invitation to ramble on. If the context isn't clear, you need to know more about the question before giving an answer. In such a situation, you could ask, "Is there a particular aspect of my background that you would like more information on?" This will enable the interviewer to help you find the appropriate focus and avoid discussing irrelevancies. Whichever direction your answer ultimately takes, be sure that it has some relevance to the world of your professional endeavours. The tale you tell should demonstrate, or refer to, one or more of your key behavioural profiles in action--perhaps honesty, integrity, being a team player, or determination. If you choose "team player" (maybe you're the star player on your team tennis group), you can tell a story about yourself outside of work that also speaks volumes about you at work. In part, your answer should make the connection between the two, such as, "I put my heart into everything I do, whether it be sports or work. I find that getting along with teammates--or professional peers--makes life more enjoyable and productive." Or you might describe yourself as someone who is able to communicate with a variety of people, so give an example from your personal life that indicates an ability to communicate also at work. This isn't a question that you can answer effectively off the cuff. Take some time in advance to think about yourself, and those......

Words: 1807 - Pages: 8

Premium Essay

The Toughest Questions You Face in a Job Interview

...How would you describe yourself? Answers: I'm a people person. I really enjoy meeting and working with a lot of different people. I'm a perfectionist. I pay attention to all the details, and like to be sure that everything is just right. I'm a creative thinker. I like to explore alternative solutions to problems and have an open mind about what will work best. I'm efficient and highly organized. This enables me to be as productive as possible on the job. I enjoy solving problems, troubleshooting issues, and coming up with solutions in a timely manner. What skills do you have? What let you choose your major field of study? Why should I hire you? Answers: Everyone needs a job, but not everyone can do what I’m capable of. I understand your position requirements and if you take a look at my resume, I am quite certain that you will find that my skills and potential over and above exceed the qualifications and responsibility for this job. So, Is there a reason why you should not hire me? You will hire me because I have good communication skills to convince anyone, good leadership qualities and if this is not enough I am a quick learner and love to learn all new things which can give good returns to my future growth. These are the qualities I have which will be a value addition for any company as well as for my career and I believe nobody wants to lose a good resource. I can surpass your expectations only if you give a chance to proof my managerial skills and......

Words: 1336 - Pages: 6

Premium Essay

Pharma Marketing

...frank. Judge me from the work and I am sure you will put me right where I want to be. Note : Do not over ambitious and speak in a way that you are not satisfied with your current job which you have applied for. Describe your ideal career? Talk of what you enjoy most your skills and natural talents. Do not specify your goal and any job title. Tell me something about yourself Do not just repeat what you have given in your resume. Be ready with the answer, a talent or something you did out of the ordinary. You can sound it as unique or give it a touch of your personality. How did you apply for the job? Be specific and give a straight answer of how you came to know about the vacancy. If it was advertised specify how you came across it. Why do you want to work here? Have a research done about the company / organization Give just one or two reasons why you are interested. You can add these points (1) company's reputation(2) desire to join the specific field of interest. Don't you think that you are over qualified for this job? (This question is put to you to puzzle a candidate. Be calm and answer the question with a positive and confident approach) Answer in the negative My experience and qualification will just help me to do the job better. Moreover I am at establishing a long term relationship which my qualification will favor me to handle more responsibilities and help me to rise to your expectations. What competition do you see if you take up this job? When you answer, clearly......

Words: 3777 - Pages: 16

Free Essay

口语弊病

...于中国学生在口语PART1中有用的东西!以下内容是从事多年雅思考试的外国朋友总结的,全部英文。-如果你连下面的内容也看不懂,要查字典的话,你的雅思成绩估计也就4分上下-(此话,是作者说的,不是我说的,哈哈)。 如果大家看完以后学到什么了,那就是我最大的动力,我会继续把PART2以及PART3的相关资料和预测发上来!(都是很权威的)  请大家不管用什么方法,一定要认真看完,内容不难,但是所涉及的问题,大多数人都有可能会发生。 有时间的同学可以再看一下我的阅读技巧(整理版)帖子:http://bbs.3gbbs.com/dispbbs.asp?boardid=344&Id=223817 以及听力技巧(整理版)帖子:听力技巧(整理版)帖子:http://bbs.3gbbs.com/dispbbs.asp?boardid=344&Id=223818   以下内容只有回复后才可以浏览    以下内容需要花费现金10才可以浏览,您已经购买本帖  Note that EVERY candidate is asked these questions, exactly (or almost exactly) as they are written here. The Standard Introduction Questions 1.  “Good morning (good afternoon). My name’s X. Can you tell me your full name, please?”  (= Please tell me your name.) 2.  “What can I call you?” (= What shall I call you? = What should I call you? = What would you like me to call you?) 3.  “Can you tell me where you’re from?” (= Where are you from?) 4.  “Can I see your identification, please?” (= Could I see your identification, please? = May I see your identification, please?) -------------------------------------------------------------------------------------------------------- (The examiner is usually referred to as "he" on this page because writing, "he or she" is too cumbersome. Actually, about 40% of the examiners are female.) -------------------------------------------------------------------------------------------------------- The ‘Introductory’ phase of the test consists of a greeting from the examiner, followed by four......

Words: 4529 - Pages: 19

Premium Essay

Case Guide

...CPC INTERVIEW GUIDE 1. Introduction 2. Preparing for the Interview 3. Dressing for Success 4. Types of Interviews a. 1st Round – Screening b. 2nd Round – Selection c. Telephone Interviews d. Behavioural-Based Interviews (BBI) e. Case Interviews 5. Questions you might ask at an interview 6. Follow-Up Tips 7. Sample Questions a. Common Interview Questions b. Behavioural-Based Interview Questions c. Case Interview Questions 8. Resources CPC Interview Guide, Page 1 of 26 1. Introduction One of the most important things to remember about any job interview is that its main objective is to allow for an exchange of information between both parties (applicant and company), so that a determination can be made as to how well the applicant fits the position/ company and/or vice-versa. As the applicant, you want to impress upon the employer how your background (i.e., education, previous employment/volunteer positions, extra-curricular and hobbies) matches the requirements of the position they are recruiting for. Your résumé will have given them some indication of how well you match, but during the interview you are expected to expand on this and be able to demonstrate strong communication skills. Your communication skills (oral, written and non-verbal) will be evaluated closely and are expected to be well practiced. Other skills critical to the position/company will also be evaluated, so make sure you have done research on the position and the needs of the......

Words: 7536 - Pages: 31

Premium Essay

Talent Management

...Describe a work based situation where you had to lead by example to achieve an objective. * Describe a situation where you inspired others to meet a common goal. * How do you motivate team members to do something they decide they do not want to do? Examples of decision making competency based questions are: * What is the toughest decision you have ever made? Why was this so difficult? * How do you come to conclusions? * Tell me about a decision you have made that has affected other people. * Do you find decisions difficult? * Give me an example of a bad decision you have made. Why was this a bad decision? * Describe a time when you had to lead a group to achieve an objective. * Describe a work based situation where you had to lead by example to achieve an objective. * Describe a situation where you inspired others to meet a common goal. * How do you motivate team members to do something they decide they do not want to do? Problem solving * How do you solve problems? * Give me an example of a problem you have faced in the past, either as part of a team or as an individual. How did you solve the problem? * What do you do when you can't solve a problem? * RClose Open WikiJob * Jobs * Study * Reasoning Tests * ------------------------------------------------- Psychometric Tests * ------------------------------------------------- InTray Exercises *......

Words: 3108 - Pages: 13

Premium Essay

Module 1

...Interview Preparation & Technique 1 2 INTERVIEW FACTS Have your facts ready – your skills, experiences, purpose and goals. Interviewers do not appreciate unprepared people. How you answer is as important as what you say. Candidates, who answer questions with two or three sentences, have a greater chance of securing the job ahead of candidates who give one-word answers, i.e. Yes or No Listen carefully, smile, nod and agree where appropriate – show the interviewer that you respect them and you are interested in what they are saying. Jobs are given more often to people the interviewer warms to. Make sure you establish a rapport with the interviewer. Do not discuss your problems – interviewers like and look for problem solvers! Interviewers will look for your negative aspects. Don’t let them find any! You will impress the interviewer if you discuss the tasks of the position rather than the pay. It will also impress the interviewer if you have some questions prepared to ask at the interview. 3 PREPARATION Do some research into the organisation concerned. Some good sources include: Campus Careers service Library Professional body Recruitment consultancy Family and friends Internet You can also find useful information in publications such as Graduate Opportunities, Business Who’s Who, Compass Australia, BRW and Jobson’s Year Book Prepare a list of questions you want to ask about the organisation and the position – think ahead! Such questions might include: Do you have a...

Words: 3033 - Pages: 13

Free Essay

Final Project

...will show group communication. You will have to rely on your group to come up with the answer and you will have to trust you group and group members. GROUP FEUD 1. Everyone will get into their permanent groups for the game. 2. One person will be elected to answer for their group; this person has the final say for the group when answering the questions. 3. Groups have a set time limit to come up with the answer to the question. 4. When the time is up no one is to speak but the person answering the question. If your group is still talking after the time allotted time there will be a 20 point deduction for that group. 5. Questions will have a set point value for each round. 6. The final and bonus questions will be valued by how many points your group agrees to wager, BUT you will be asked to wager points before you hear the question. 7. If you would like to challenge whether or not an answer is right you can do so but, yonika will have the final say, any group can challenge at any time. 8. The group with the most points WINS. Questions First round questions are worth 50 points. 1. Point value 50: In class we talked about primary and secondary group, give me an example of a primary group. Answer: family, church, work, any group that is permanent in their life. 2. Point value 50: give me examples of forming, storming, norming and performing Answer: forming is coming together, storming is fighting, norming developing a process......

Words: 596 - Pages: 3

Premium Essay

Dcf-Valuation

...©http://www.CareerRide.com Quick tips to answer the Personal Interview questions ! ! ! As you go for a personal interview, always expect the question "Tell us something about yourself". Go prepared to answer it. Understand the requirements of the role properly and keep your answer ready for "Why does this role interest you?" To judge your stability in the personal interview, the interviewer might ask a direct question like "Why do you think should we take you?" Go prepared to answer it. Prepare your answer to the question the interviewer might ask about your strengths and weaknesses in the interview. Take the word weaknesses as liberally as possible. Analyze the qualities that you required to achieve something big. Talk your latest achievement in the interview. When asked about mistakes, mention the one from long past. Never approach the interviewer as a "Job Beggar". Go as a "Problem Solver". Answer in positive when you are asked if you are speaking to some other companies for your job search. Show your flexible attitude during the personal interview. This can be done by being open to relocation. If you have stayed in your last job for too long or have switched the jobs very frequently, have an answer ready to the queries that might appear during the personal interview. Demonstrate the keenness to learn if you do not have all the required experience. Never talk bad about your last jobs or employers. Sound ambitious but stable. Sound like a team player but be open to take......

Words: 3104 - Pages: 13