# Matlab 筆記 ## output + [print](https://www.mathworks.com/help/matlab/ref/print.html) + [fprintf](https://www.mathworks.com/help/matlab/ref/fprintf.html) > fprintf("txt format", variable) ``` > code fprintf("hello") fprintf("date: %d/%d", 9, 30) x = [1 0 1 1] fprintf("x = ["); fprintf(" %g",x); fprintf(" ]") > output >> hello >> date: 9/30 >> x = [ 1 1 1 1 ] ``` + display ## vector ``` > code v = [1 1 1] v = 1 : 10 > output >> v = 1 1 1 >> v = 1 2 3 4 5 6 7 8 9 10 ``` ## matrix + magic() + zeros("row","column") + diag("vector","position") ## timer + tic & toc ## plot + xlabel + ylabel
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up