100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MATLAB BASIC PROGRAMMING. QUESTIONS &CORRECTANSWERS 2024. ALREADY GRADED A+. £9.00
Add to cart

Exam (elaborations)

MATLAB BASIC PROGRAMMING. QUESTIONS &CORRECTANSWERS 2024. ALREADY GRADED A+.

 0 purchase

MATLAB BASIC PROGRAMMING. QUESTIONS &CORRECTANSWERS 2024. ALREADY GRADED A+.

Preview 2 out of 14  pages

  • June 21, 2024
  • 14
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (1)
avatar-seller
LAWEXEPRT
MATLAB BASIC PROGRAMMING.
QUESTIONS &CORRECTANSWERS
2024. ALREADY GRADED A+.
MATLAB BASIC PROGRAMMING.
QUESTIONS &CORRECTANSWERS
2024. ALREADY GRADED A+.
- myArray( [3, 4, 5] ) yields the new row array [70, 80, 90]. The indexing array is the
integer array [3, 4, 5].
-myArray( [3:1:5] ) also yields [70, 80, 90]. The double colon operator can be used to
construct the indexing array.
-myArray(3:1:5) yields the same. When constructing a row array using the double colon
operator, the brackets are optional. Omitting the brackets in an assignment statement,
as in myArray = 50:10:90, is discouraged. In contrast, omitting the brackets for the
indexing array is commonplace.
-myArray(3:5) yields the same. The default increment of 1 in the double colon operator
is commonly used when indexing. - ANSFor example, if myArray = [50, 60, 70, 80, 90],
then:

' (transpose operator) - ANSmakes [1,2,3,4] into
[1
2
3
4]

's' - ANSComplete the statement to obtain a string from the user rather than a number.

userName = input('Sally',_____);

" -ANSTwo single quotation marks print a single quotation mark. Note that a single
quotation mark alone would instead indicate the end of the format specification.

( ) parenthesis
~ not
& and
| or
left-to-right - ANSlogical operators order of operation

[0, 0, 1]

& is applied element-wise, yielding [1 & 0, 0 & 0, 1 & 1] = [0, 0, 1] - ANS[1, 0, 1] & [0, 0,
1] yields what new array?

, MATLAB BASIC PROGRAMMING.
QUESTIONS &CORRECTANSWERS
2024. ALREADY GRADED A+.
[1, 1, 1, 0] - ANS~[0, 0, 0, 1] yields what new array?

[3,5;2,4;1,9] - ANSWhat is matrixC after executing the following statement? matrixA =
[ 3, 1, 4; 2, 5, 9 ];
matrixC = reshape( matrixA, 3, 2 )

\\ - ANSTwo backslash characters print one backslash character. Note that a single
backslash character would instead indicate the start of a special character sequence
like \n.

\n - ANSprints a new line

\t - ANSprints a tab

& - ANSboolean&

%-8.2f - ANSFixed-point occupying a minimum of 8 digits, left-aligned, with 2 digits to
the right of the decimal point.

%.4f - ANSFixed-point with 4 digits to the right of the decimal point.

%% - ANSTwo percent characters print one percent character. Note that a single %
character would instead indicate the start of a formatting operator like %f.

%c - ANScharacter

%d - ANSinteger

%e - ANSscientific notation

%E - ANSscientific notation

%f - ANSfixed-point

%G - ANSeither %f or %E whichever is shorter

%g - ANSwither %f or %e whatever is shorter

%i - ANSinteger

%s - ANSstring

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LAWEXEPRT. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £9.00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

69052 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 15 years now

Start selling
£9.00
  • (0)
Add to cart
Added