본문 바로가기

function5

Tips for Matlab Matrix Tips for Matlab Matrix Matlab is very useful for calculating or processing data about matrices to the extent that it is a matrix calculator. Assuming that you know basic matrix and matlab knowledge, I will write down here some tips that are easy to forget but useful. If you need any function, search 'ctrl + f' and check it then. 1. Transposition Matrix All you have to do is put ' after the proce.. 2020. 9. 24.
Get Matlab Excel Data | xlsread function Get Matlab Excel Data | xlsread function When you conduct an experiment and process data with a matlab, sometimes you want to recall the data values in an Excel file right away. Let's briefly learn how to use the xlsread function by using the following example. First of all, the data obtained through the simulation program is recorded in the excel file as shown above. As you can see, the file li.. 2020. 9. 24.
Using the Matlab 'for Statement' | Loop Statement Using the Matlab 'for Statement' | Loop Statement One of the most confusing things about using various computer languages is the 'for statement.' Each language has different forms, so I search every time I write it. I just wrote down for example, so I hope you can freely scrape and correct it. %% Setting a = zeros(1,10); % make that variable a is 1X10 matrix. %% for loop for i = 1:length(a) % i .. 2020. 9. 24.
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.
반응형