Question


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....

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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...

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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...

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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 ...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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 ...

meer dan 3 jaar ago | 1 answer | 1

1

answer

Question


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 ...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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:...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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. ...

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 0 answers | 0

0

answers

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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 [] ...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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. ...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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 ...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Load more