1. Sin, cos, tan trigonometric functions in matlab.
In MATLAB, the trigonometric functions sin, cos, and tan are all in radians. For example, the number entered in parentheses in sin() defaults to radians. If you want to input the angle value, you can use the following two methods: a. Use sind(), cosd(), tand() functions, these three functions are already designed functions in the matlab program, you can use them directly, in parentheses Just input the angle value for the median solution; b. Use the deg2rad() function to convert the degree value you input into a radian value. This function is also a function that has been pre-designed in matlab and can be used directly, such as sin(deg2rad (30)), the 30 entered here is the degree value.
2.abs function.
(Note: The x that appears below all represent a variable) abs(x) means to find the absolute value of the x variable. What needs to be added here is that this x can be a matrix, and the effect of using this function on the matrix is also right Each element in the matrix finds its absolute value.
3. vpa function.
The effect of the vpa function vpa(x,64) is to set the precision of x. There are two positions in the brackets. The former position is the object to be set for precision, and the latter position is the number of digits of precision to be set. Here The 64 is a random one I wrote, and it can also be 10, 20, 33 and other numbers.
4. disp function.
It is used to output the content of variables, several of which can be output at the same time, and separated by commas in the case of outputting several. Syntax format: diap(). For example, to output "what category does R1 belong to? Answer: sym", use the statement "disp(['What category does R1 belong to? Answer:', class(R1)])", which consists of two parts 5
. class function.
It is used to determine the category of the object,
6. logical function.
Turn the numerical data into a logical value (the logical value is only two 0 and 1) logical(x), if x is a non-zero number, the result of this function is to become a logical value 1, if x is 0, This function turns the value 0 into a logical value 0.
OK, that's all for today, the next update is a problem that is often encountered in numerical analysis and matlab: numerical solution and analytical solution.
link: link .
picture:
Picture with dimensions:
Centered image:
Centered and sized images:
Of course, in order to make it more convenient for users, we have added the function of dragging and dropping pictures.
How to insert a nice piece of code
Go to the blog settings page, choose a code snippet highlighting style you like, and the same highlighting is shown below 代码片
.
// An highlighted block
var foo = 'bar';
Generate a list that works for you
- project
- project
- project
- project
- item 1
- item 2
- item 3
- Scheduled Tasks
- mission accomplished
create a form
A simple table is created like this:
project | Value |
---|---|
computer | $1600 |
cell phone | $12 |
catheter | $1 |
Set the content to be centered, left, and right
Use :---------:
Center
Use :----------
Left
Use ----------:
Right
first row | The second column | third column |
---|---|---|
Center the first column of text | The second column of text is right-aligned | Third column text left |
SmartyPants
SmartyPants converts ASCII punctuation characters into "smart" typographical punctuation HTML entities. For example:
TYPE | ASCII | HTML |
---|---|---|
Single backticks | 'Isn't this fun?' |
‘Isn’t this fun?’ |
Quotes | "Isn't this fun?" |
“Isn’t this fun?” |
Dashes | -- is en-dash, --- is em-dash |
– is en-dash, — is em-dash |
create a custom list
-
Markdown
- Text-to- HTML conversion tool Authors
- John
- Luke
How to create a footnote
A text with footnotes. 1
Annotations are also essential
Markdown converts text to HTML .
KaTeX math formula
You can render LaTeX math expressions using KaTeX :
Gamma infrastructure ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb NC ( n )=(n−1)!∀n∈N is the integral by Euler
Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. C ( z )=∫0∞tz − 1 e−tdt.
You can find more information about LaTeX mathematical expressions here .
New Gantt chart feature to enrich your articles
- For Gantt chart syntax, refer to here ,
UML diagrams
Can be rendered using UML diagrams. Mermaid . For example, a sequence diagram generated below:
This will generate a flowchart. :
- For Mermaid syntax, refer to here ,
FLowchart flow chart
We will still support the flowchart of flowchart:
- For Flowchart flowchart syntax, refer to here .
Export and Import
export
If you want to try using this editor, you can edit it freely in this article. When you finish writing an article, find the article export on the upper toolbar , and generate a .md file or .html file for local storage.
import
If you want to load an .md file you have written, you can select the import function on the upper toolbar to import the file with the corresponding extension and
continue your creation.
Explanation of footnotes↩︎