function [x0]=steadyvar(Indexch,N)

if N==10
    if Indexch==1
        x0 = [188.821189347093,184.064371788945,179.563318018329,175.308633179628,171.290812489110,167.500294502864,163.927511482946,160.562936414220,157.397126327431,154.420761684806,140.172731397991,142.154641626783,144.264464582883,146.508736188978,148.894114621792,151.427356930430,154.115292927563,156.964796452930,159.982754170073,163.176032121504,125.924701111176,126.912156926135,127.965992751546,129.089960895010,130.287934740721,131.563901371750,132.921952675497,134.366274887530,135.901136551200,137.530874895915];
    elseif Indexch==2
        x0 = [236.645169196325,228.979210519106,221.380614583620,213.848839383696,206.383309633788,198.983416089576,191.648514843408,184.377926590477,177.170935861114,170.026790214042,157.069346005094,163.957862563544,170.904102585451,177.908794841917,184.972632022200,192.096271600505,199.280336658768,206.525416670782,213.832068252481,221.200815882667,144.111901796146,150.744789265973,157.430278580425,164.169074840427,170.961847954824,177.809233567223,184.711833933841,191.670218757944,198.684925985856,205.756462569008]; 
    elseif Indexch==3
        x0 = [236.373709983483,230.982947919496,225.404371406103,219.626676693288,213.637471140236,207.423123259489,200.968585365540,194.257182486298,187.270359391236,179.987375167395,156.991644174346,164.935106621032,172.549299704039,179.857723120800,186.881362944870,193.639046937299,200.147738284952,206.422780261969,212.478101429496,218.326388846243,133.995913181297,142.599853850828,150.841416921781,158.746860876059,166.339602630251,173.640622734361,180.668799876615,187.441189117834,193.973254939495,200.279067709003]; 
    elseif Indexch==4
        x0 = [280.105847433722,265.270155263516,250.942430745715,237.125749239346,223.821986946348,211.031764266429,198.754401507834,186.987888481732,175.728869220856,164.972642710383,149.132063850481,158.857418773925,169.038275704907,179.679070574804,190.783037781288,202.352208176369,214.387421221824,226.888350549594,239.853541855826,253.280461805001,133.291484990579,141.985968326993,151.088662928083,160.603739641774,170.534311296148,180.882429406391,191.649093204303,202.834270353472,214.436928448136,226.455076176281]; 
    elseif Indexch==5
        x0 = [229.238047599607,223.405389839306,217.617771012971,211.875806451550,206.180112343944,200.531305193487,194.930001245251,189.376815883875,183.872363001763,178.417254337545,153.974046795688,158.988798857398,164.049753115224,169.156353847588,174.308042720652,179.504259408939,184.744442189478,190.028028509423,195.354455527254,200.723160627711,129.530839253832,134.105234713033,138.722690346573,143.382706449925,148.084780247816,152.828406473935,157.613077927406,162.438286005875,167.303521215201,172.208273655815]; 
    elseif Indexch==6
        x0 = [264.692200523635,261.534750811916,258.346932040025,255.127997102887,251.877169059616,248.593639467202,245.276566593665,241.925073499929,238.538245978479,235.115130335586,205.559583175918,209.146689979542,212.693956598144,216.202467723492,219.673261762548,223.107333507530,226.505636613024,229.869085896813,233.198559479426,236.494900775942,176.004036016250,179.755133980605,183.462839696359,187.128368853319,190.752884057893,194.337497955443,197.883276123161,201.391239753600,204.862368146937,208.297601028248]; 
    elseif Indexch==7
        x0 = [182.272292850455,176.843076585376,171.615603404262,166.585564886212,161.748520841898,157.099915197607,152.635091998085,148.349311397130,144.237765510690,140.295594014675,134.247219694495,137.887419478860,141.684082346227,145.641708670084,149.764751941108,154.057604478357,158.524582903218,163.169913483247,167.997717459778,173.011996478471,128.198845374316,131.537073447029,135.018853295324,138.648325342083,142.429588684609,146.366688114815,150.463600920224,154.724223562233,159.152358334180,163.751700106486]; 
    elseif Indexch==8
        x0 = [241.856531929863,235.128785287557,228.588722295451,222.234732231908,216.065035112840,210.077686121872,204.270580760658,198.641460683738,193.187920175634,187.907413221824,177.987752554880,182.858447958401,187.889069413236,193.081998862273,198.439490562996,203.963664534985,209.656500542987,215.519832659953,221.555344449053,227.764564797621,168.068091887936,172.528975741168,177.136678142734,181.893416963889,186.801295004120,191.862293957131,197.078268854066,202.450943024455,207.981903610549,213.672597665378]; 
    elseif Indexch==9
        x0 = [218.366748198809,214.538364071445,210.586942906941,206.506116787787,202.289003090486,197.928145444251,193.415445759144,188.742085623184,183.898434972747,178.873945435695,155.230831495342,160.909458721864,166.378284382907,171.649914287006,176.735827548507,181.646510395674,186.391570377922,190.979834353955,195.419432976257,199.717873867675,131.587717554989,137.920482470982,144.014483142630,149.884382814868,155.543509652762,161.004017700862,166.277023968057,171.372725800970,176.300501881070,181.068999536542]; 
    elseif Indexch==10
        x0 = [265.140527603224,262.636329033046,260.119189310447,257.588887688189,255.045197436072,252.487885615914,249.916712845646,247.331433051856,244.731793210115,242.117533072322,212.960263773338,215.625872418588,218.275813675458,220.910374569084,223.529833950492,226.134462812335,228.724524589289,231.300275443999,233.861964539406,236.409834298248,183.802994474354,186.519951627062,189.220194299060,191.904036292522,194.571782285069,197.223728188597,199.860161490388,202.481361577550,205.087600045767,207.679140993272]; 
    else
        x0 = [236.484016663924,228.731279191491,221.120597378784,213.651707337774,206.324271032947,199.137875998381,192.092035239778,185.186187324936,178.419696665133,171.791853988770,157.470784094891,163.652452482809,169.962068428101,176.400252435500,182.967557677246,189.664469641729,196.491405954709,203.448716371480,210.536682937366,217.755520313034,143.149714201012,148.885208300486,154.737949531265,160.708469631221,166.797239356111,173.004668250511,179.331104571644,185.776835364177,192.342086683241,199.027023962144]; 
        %Exchanger F3
    end
    
else 

HXinitA  = [295.4453,167.5898,125,226.457];

HXinitB1 = [235.2852,179.1172,125,172.202];
HXinitB2 = [267.8203,235.2852,172.202,208.3047];

HXinitC1 = [176.75,141.2539,125,154.112];
HXinitC2 = [248.7734,176.75,154.112,213.6758];

HXinitD1 = [222.0782,177.164,125,183.5775]; 
HXinitD2 = [267.7319,244.7101,183.5775,207.6822];

HXinitE  = [241.587,180.7366,125,200.2762];

HXinitF1 = [193.8429,154.6104,125,137.535];
HXinitF2 = [244.3789,171.7525,137.535,202.2197];
HXinitF3 = [244.3789,171.7525,137.535,202.2197];
 
        
if Indexch==1
   exch=HXinitF1;
elseif Indexch==2
    exch=HXinitF2;
elseif Indexch==3
    exch=HXinitE;
elseif Indexch==4
    exch=HXinitA;
elseif Indexch==5
    exch=HXinitB1;
elseif Indexch==6
    exch=HXinitB2;
elseif Indexch==7
    exch=HXinitC1;
elseif Indexch==8
    exch=HXinitC2;
elseif Indexch==9
    exch=HXinitD1;
elseif Indexch==10
    exch=HXinitD2;
else
    exch=HXinitF3;
end

hotstep=(exch(2)-exch(1))/(N-1);
coldstep=(exch(4)-exch(3))/(N-1);
Thot0=exch(1):hotstep:exch(2);
Tcold0=exch(3):coldstep:exch(4);
Twall0=(Thot0+Tcold0)/2;
x0=[Thot0,Twall0,Tcold0];

end