본문 바로가기

유용한 지식/Matlab8

Using Matlab 'if Statement' | Assumption Statement Using Matlab 'if Statement' | Assumption Statement 'If statement' is confusing each time it is written because the rules vary depending on all programming languages. I'll leave you an example for the matlab, so if you don't remember, it'll be convenient to scratch it quickly and correct it. %% if-Statement Example Code if a == b display('a and b are same') elseif a > b display('a is bigger than .. 2020. 9. 24.
Matlab Graph Axis Tick | Plot Advanced Edit1 Matlab Graph Axis Tick | Plot Advanced Edit1 When you draw a graph, the x-axis value or y-axis value is sometimes expressed in a way that you don't like. For example, suppose you have the following graph. The x-axis data is marked 'x10^4.' It is not easy to understand them at a glance. Similarly, the y-axis is also marked 'x10^-3' and is not satisfactory. Therefore, we want to attach k to the x-.. 2020. 9. 24.
Matlab subplot function Matlab subplot function One of the functions that seems easy but is quite confusing to use after a long time. I'm uploading an example code, so please scratch it freely and correct it. %% Setting dt = 0.0001; % time step t = 0:dt:0.08; % time V1 = 220*sin(2*pi*60*t); % Data V2 = 110*cos(2*pi*60*t); % Data %% Plotting figure subplot(2,1,1) %% First graph window of 2X1 plot(t,V1) title('Simulation.. 2020. 9. 24.
Matlab Plot Function, Basic and Useful Tips Matlab Plot Function, Basic and Useful Tips the flower of Matlab is drawing a graph. I will share the codes I use often, so please freely scrape them and correct them. 1. Basic Code %% Setting dt = 0.0001; % time step t = 0:dt:0.08; % time V = 220*sin(2*pi*60*t); % Data %% Plot plot(t,V) I drew 220V, 60Hz voltages for explanation. The dt in the second line is the time step of the graph, which is.. 2020. 9. 24.
반응형