Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden