Gistlib Logo

gistlib

how to select rows in matlab and export to new sheet in matlab

main.m
% Load sample data
data = rand(10, 5); 

% Select rows to export
rows_to_export = [1, 3, 5];

% Write selected rows to Excel file
filename = 'output.xlsx';
xlswrite(filename, data(rows_to_export, :), 'Sheet1');
211 chars
10 lines

similar matlab code snippets

how to pull column data from excel into matlab in matlab
create a database from excel in matlab
pull row data from excel in matlab
how to pull time column data from excel into matlab in matlab in matlab
how to automaticaally replace the values of a multidimensional structure comparing its value to the equivalent entries in an excel file and replacing them in matlab
how to pull time column data from excel into matlab in matlab
write into a specific cell in an excel file in matlab
write into an excel file in matlab
import data from .xlsx in matlab
change the values of a 4 dimension structure automatically from data in an excel file in matlab

related categories

matlab
excel

gistlibby LogSnag