Just the basics in MATLAB

MATLAB programming related topics
Post Reply
User avatar
amh
Site Admin
Posts: 263
Joined: Thu Jan 06, 2022 12:35 am

Just the basics in MATLAB

Post by amh »

1. Change size of text in plot

Code: Select all

set(gca,'FontSize',15)
2. Change plot linewidth

Code: Select all

set(0,'DefaultLineLineWidth',2)
3. set plot background to white

Code: Select all

set(gcf,'color','w')
User avatar
amh
Site Admin
Posts: 263
Joined: Thu Jan 06, 2022 12:35 am

Post by amh »

4. Duplicate line in Matlab

Code: Select all

Ctrl + Shift + C
Note: Only work in MATLAB Live Script
User avatar
amh
Site Admin
Posts: 263
Joined: Thu Jan 06, 2022 12:35 am

Get device information

Post by amh »

Code: Select all

daq.getDevices
works on all matlab version

Code: Select all

daqlist
R2021 above
Post Reply