提问


Combining matrices without for loops
I have two houses, House 1 and house 2. Each house has one or two Electric Vehicles(EV), each EV has its own specific ID number....

3 years 前 | 0 个回答 | 0

0

个回答

提问


Combining matrices in a function
I have a 3x3 cell. Each element represents the vehicle(s) ID number of a house (a house can have one or two vehicles).. The hou...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Can I make a function for several sets of input
I want to make my scripts faster, so Im replacing for loops with functions. However the segment below gets bigger as one script...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Preallocating cells with unknown output size
I need to optimize my script. A thing I could do is preallocating, however the size of my output cell is unknown so my question ...

3 years 前 | 2 个回答 | 0

2

个回答

提问


Can you have a function for multiple scripts that are growing in size?
I have 36 scrpits that I run from a major script. My goal is to increase the performance as much as possible, since it now is re...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Turning for loops into functions
I have 36 different scripts (H1, H2, H3...H36) that calculates the increase in households maximum power demand if Battery electr...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Making script execution go faster
I have 36 similar scripts. The output of the scripts is how much the electricity consumption increases if a BEV is introduced. T...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Making a slow script faster
Hi, I have multiple scripts in my masers thesis that executes way too slow. I am not good at MATLAB so I could really use some a...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Can I open a file made in R2019a with different versions of matlab (R2017b)?
Hello there, I have this situation: the version of matlab that is used in my university is 2017B, but I made my script on my l...

3 years 前 | 1 个回答 | 0

1

个回答

提问


MATLAB suddenly closes when running a complex script
I made a large script in MATLAB 2019b on my computer. When I try to run it at my institutes computer (2017b) it crashes after a ...

3 years 前 | 1 个回答 | 1

1

个回答

提问


Cannot load data to matlab
I have a file ARG_1. It is just a cell array that I have previously calculated. Now I just want to load it: load ARG_1 but ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Load variables from subfolders
I have two variables called ARG_1 and ARG_2 The script I use is in the folder MATLAB. The variables are within subfolders: MATL...

3 years 前 | 1 个回答 | 0

1

个回答

提问


changing variable names when saving variables
I am running 36 script from one main script. Every "subscript" saves the variables "GUD" and "I2" like in the part I paste here:...

3 years 前 | 2 个回答 | 0

2

个回答

提问


problem if statement for loop
I have the following loop. Urbanization is a 412x2 matrix that contains Car IDs and value 0 or 1 if the car is rural or urban. I...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Identifying missing values in matrices
I have two matrices. A=429x1 and B=412x1 Every number in the B matrix exists in A. However I want to find out which numbers are...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Saving multiple files using for loop
I have 36 scripts representing 36 housess. Each script has an output G. What I want is to save G in G1, G2... G36. Like: L=1:3...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Maximum number of combinations
I have 36 households and 429 vehicles. Of the households 15 can have two vehicles, while the others can only have one vehicle. ...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Using randsample to randomize rows
I have 36 households. I want to study combinations of households. PR represents how many households that are combined. To make o...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How can I add bootstrapping to a script?
I have 387 electric vehicles and 36 households. I have scripts that calculate how much the maximum power demand increase with th...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Making a script computationally feasible
My script calculates the electricity consumption of households and EVs. I have 400 EVs and 36 households. The issue is that I w...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Removing empty cells from cell array
G is a cell array: G={16x16 cell 16x16 cell 16x16 cell 16x16 cell 16x16 cell 16x16 cell} Each cell look like this: G{1}=[1 [] ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


if statement with changing values
I have a for loop that loops over vehicles. I have 2 houses. Each can have one or two cars: ID1=178 or ID1=[178 180] ID2=182...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Solving equation with tan
I have an equation that needs to be solved numerically. -125=-arctan(0.25*x)-0.2*x*180/pi I know that the answer can be approx...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How can I perform combinatorics in MATLAB?
I have 16 Appartments and 4 BEVs. This loop gives how much the maximum elextricity load of the household(Appartment) increases. ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


MATLAB not able to make calculation - array limit
I want to find the new max electricity consumption of an appartment when an EV is introduced. Appartment is the load profile fo...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Combining columns of two matrices
I have 8 Battery electric vehicles and 16 apartments. The 8 Battery electric vehicles are stored in a 525600*8 matrix (A) The ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Removing matrix from a for loop
I have a vector and a cell array with 429 cells. I want to remove cell number 2, 10 and 11 from the CAR cell array. How can I d...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Error when using timetable/retime
I make a script that describes when EVs are charging during one year. I loop it for 429 cars. However when car 8 is up this seg...

3 years 前 | 1 个回答 | 0

1

个回答

提问


For loop not working
I am looping over one year in minutes. However the script stops looping values at T=49716 for some reason. Then element j=1248 i...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Combining matrices into one
I have one vector denoting every minute of the year: T=[1:525600].' I have a matrix containing 2 coulumns and 13777 rows(B). Th...

3 years 前 | 1 个回答 | 0

1

个回答

加载更多