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. <[email protected]>
wrote:
> The file name needs to be a string.
>
> mpc = load2disp(mpc0,’mo’);
>
>
> From: VANJARAPU VENKATARAONAIDU <[email protected]>
> Reply-To: MATPOWER discussion forum <[email protected]>
> Date: Tuesday, February 16, 2016 at 7:47 AM
> To: "[email protected]" <[email protected]>
> 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);
>
>