sir whatever the path i am setting the same error i am getting. file='E:\project\matpower\mouni.txt'; >> [pathstr,name,ext]=fileparts(file)
pathstr = E:\project\matpower name = mouni ext = .txt >> mpc=loadcase(case6ww); >> mpc1=load2disp(mpc); >> mpc1=load2disp(mpc,'mouni'); Error using savecase (line 156) savecase: Permission denied Error in load2disp (line 98) savecase(fname, mpc, '2'); what is the solution On Thu, Feb 18, 2016 at 9:56 PM, Ray Zimmerman <r...@cornell.edu> wrote: > The error is “Permission denied”, so it looks like you are attempting to > save the file to a location where you do not have write permissions. > > Ray > > > > On Feb 18, 2016, at 8:38 AM, VANJARAPU VENKATARAONAIDU < > venkataraovanjar...@gmail.com> wrote: > > i tried like this but i am getting as below.what i have to do. > >> file='D:\matpower\mouni.txt'; > >> [pathstr,name,ext]=fileparts(file) > > pathstr = > > D:\matpower > > > name = > > mouni > > > ext = > > .txt > > >> mpc=loadcase('case9'); > >> mpc1=load2disp(mpc); > >> mpc1=load2disp(mpc,'mouni'); > Error using savecase (line 156) > savecase: Permission denied > > Error in load2disp (line 98) > savecase(fname, mpc, '2'); > > >> > > On Wed, Feb 17, 2016 at 2:57 AM, Abhyankar, Shrirang G. <abhy...@anl.gov> > wrote: > >> The file name needs to be a string. >> >> mpc = load2disp(mpc0,’mo’); >> >> >> From: VANJARAPU VENKATARAONAIDU <venkataraovanjar...@gmail.com> >> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu> >> Date: Tuesday, February 16, 2016 at 7:47 AM >> To: "MATPOWER-L@cornell.edu" <MATPOWER-L@cornell.edu> >> Subject: price sensitive loads >> >> when i tried to use load2disp function using fname.i am getting like >> this.how to use fname and savecase.please quote with a small example.i >> tried somany times but i didn't get. >> >> >> file='D:\matpower\mo.txt'; >> >> [pathstr,fname,ext]=fileparts(file) >> >> pathstr = >> >> D:\matpower >> >> >> fname = >> >> mo >> >> >> ext = >> >> .txt >> >> >> mpc0=loadcase(case14); >> >> mpc=load2disp(mpc0); >> >> mpc=load2disp(mpc0,mo); >> Undefined function or variable 'mo'. >> >> Did you mean: >> >> mpc=load2disp(mpc0,mod); >> >> > >