Page 1 of 1

matlab When used in a format specifier string, it puts the following stuff on a new line: >> fprintf('Line 1\nLine 2\nLi

Posted: Thu May 26, 2022 9:30 am
by answerhappygod
matlab
Matlab When Used In A Format Specifier String It Puts The Following Stuff On A New Line Fprintf Line 1 Nline 2 Nli 1
Matlab When Used In A Format Specifier String It Puts The Following Stuff On A New Line Fprintf Line 1 Nline 2 Nli 1 (23.87 KiB) Viewed 15 times
When used in a format specifier string, it puts the following
stuff on a new line:
>> fprintf('Line 1\nLine 2\nLine 3\n\nLine 4\n')
Line 1
Line 2
Line 3
\n means new line %s means print a
string tt can be a string,vector or array.
Exercise 2 (4 marks) 1- Solve following equations by using MATLAB Symbolic Toolbox functions: x²+9y¹-5z³ 2- Find the derivative for the following equation by using MATLAB Symbolic Toolbox functions: x*sin(x*y) 3- If you know that the function diff(E,v,n) returns the nth derivative of the expression E with respect to the variable v. Calculate the second derivative for the expression x*sin(x*y) with respect to variable y.