how to create .mat file from .csv file??

I have a .csv datset which has 3 columns. I want to create .mat file from it.I tried many codes like:
M=importdata('dataset')
save('dataset.mat','M')
and
M=importdata('dataset')
system('rename dataset dataset.mat');
It creates the .mat file,
but I dont know how to define the variables?
Kindly help

답변 (0개)

카테고리

도움말 센터File Exchange에서 Variables에 대해 자세히 알아보기

질문:

2018년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by