PhD Chapter - couple of important Matlab code

(Comments)

Here are couple of important Matlab code 

 %% 
%     COURSE: Master MATLAB through guided problem-solving
%    SECTION: Importing and exporting data
%      VIDEO: Export and import multiple files
% Instructor: mikexcohen.com
%
%%


basefilename = 'testfile';
numfiles = 10;

% loop over all files
for filei = 
    
    % create string with name of file
    filename = 
    
    % skip this iteration of the loop if the file exists
    
    % generate some random data
    randomdata = randn(100);
    
    % write to output file (MATLAB .mat format)
    
end
    
%% an aside on the continue function

for i=1:10
    
    % skip this iteration if i is even
    if mod(i,2)==0, continue, end
    
    % print the number
    disp([ 'Iteration ' num2str(i) ])
end

%% now for importing data

% use wild-card (*) to find the files to import
files2import = 

% initialize as cell array
alldataC = 

% loop over file names
for filei=1:
    
    % import and store data
    
    
    
    % for matrix storage, initialize on first iteration
    
    % and now populate the big matrix
    alldataM(filei,:,:) = randomdata;
    
end

%% 

Currently unrated

Comments

Riddles

22nd Jul- 2020, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20 Oct- 2019, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20Aug- 2019, by: Editor in Chief
524 Shares 4 Comments
10Aug- 2019, by: Editor in Chief
424 Shares 4 Comments
Generic placeholder image
10Aug- 2015, by: Editor in Chief
424 Shares 4 Comments

More News  »

How to create output gap with Python and Anaconda

Recent news
3 weeks, 3 days ago

Dignity wrapped in Charity

Recent news
2 months ago

A reflection of using kanban flow and being minimalist

Recent news

Today is the consecutive day I want to use and be consistent with the Kanban flow! It seems it's perfect to limit my parallel and easily distractedness. 

read more
2 months, 2 weeks ago

Morning issue with car and my kind of music

Recent news
2 months, 2 weeks ago

Podcast Bapak Dimas 2 - pindahan rumah

Recent news

Vlog kali ini adalah terkait pindahan rumah!

read more
2 months, 2 weeks ago

Podcast Bapak Dimas - Bapaknya Jozio dan Kaziu - ep 1

Recent news

Seperti yang saya cerita kan sebelumnya, berikut adalah catatan pribadi VLOG kita! Bapak Dimas

read more
2 months, 2 weeks ago

Happy new year 2024 and thank you 2023!

Recent news

As the new year starts, I want to revisit what has happened in 2023. 

read more
2 months, 2 weeks ago

Some notes about python and Zen of Python

Recent news

Explore Python syntax

Python is a flexible programming language used in a wide range of fields, including software development, machine learning, and data analysis. Python is one of the most popular programming languages for data professionals, so getting familiar with its fundamental syntax and semantics will be useful for your future career. In this reading, you will learn about Python’s syntax and semantics, as well as where to find resources to further your learning.

read more
4 months ago

More News »

Generic placeholder image

Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without