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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!