Info

此问题已关闭。 请重新打开它进行编辑或回答。

My script modifies csv file that it should read only.

1 次查看(过去 30 天)
I have a script that reads from .csv file and import data for further analysis. No it somehow modifies original file in a way tat it become use less for further usage.
clear %use with caution
clc %use with caution
close all %use with caution potentially clears everything
[rowv,vpath]=uigetfile({'*.csv';'*.*'},'Select Applied voltage datanfile');
filev=fullfile(vpath,rowv);
rawdata=dataset('file',filev,'delimiter',',');
t=double(rawdata(:,4));
v=double(rawdata(:,5));
r=9000; %curent sensing resistance value
[rowi,ipath]=uigetfile({'*.csv';'*.*'},'Select current signal file',vpath);
filei=fullfile(ipath,rowi);
rawdatai=dataset('file',filei,'delimiter',',');
i=(double(rawdatai(:,5))./9000);
[slope id1 id2]=analyzemydp(v,t,i,vpath,filev);
slope
clear rowv vpath filev;
clear filei rawdatai ipath rowi r rawdata

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by