data{i}=im​portdata([​pathname,f​ilename{i}​]);

meaning of this code

2 个评论

Tips for better code:
  • replace the concatenation operator (square brackets) with FULLFILE().
  • replace IMPORTDATA with e.g. READTABLE, READMATRIX, or similar.

请先登录,再进行评论。

回答(1 个)

Hi,
Here is the explanation of "data{i}=im​portdata([​pathname,f​ilename{i}​])"
The code imports data from a file whose path is constructed by concatenating pathname and filename{i}, and then stores the imported data into the i-th position of the cell array data.
Here "importdata" is a funciton in MATLAB.To know more information on this function , you can visit below documentation link
Hope this helps.

类别

帮助中心File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

提问:

2024-7-29

评论:

2024-7-29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by