Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 1

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta

Carica altro