Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

My script modifies csv file that it should read only.

2 visualizaciones (últimos 30 días)
Samir
Samir el 13 de Jun. de 2014
Cerrada: Samir el 13 de Jun. de 2014
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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by