# Lewis Waswa

Last seen: 1 month ago Active since 2021

Followers: 0   Following: 0

#### Feeds

View by

Question

Setting up an optimization in matlab
Hi everyone. I have an optimization problem that seeks to aid the selection of suitable conductors in a network planning exerci...

4 months ago | 1 answer | 0

### 1

Question

iterating a function within itself
Hey everyone. I have a function which performs adjustment based on 2 indices NPI and CPI as shown below. [A,B,C,D,NPI,CPI]=Adj...

11 months ago | 2 answers | 0

### 2

Question

Calling a function in itself.
I have a long code that uses two indices to update the resistance values in a powerflow program as below. The powerflow program ...

11 months ago | 1 answer | 0

### 1

Question

Editing a graph.
I have a graph with about 115 nodes, all differently interconnected. I would like to do two things: Plot the directed graph il...

1 year ago | 1 answer | 0

### 1

Question

Plotting a figure from a matrix
I have the following matrix, which describe the connection between nodes on a network. How can I plot this in Matlab? A=[1 2; 2...

1 year ago | 2 answers | 0

### 2

Question

Calculating the new beta parameters given two variables
I have two beta distributed random variables with parameters, mu1, alpha1 and beta1 and mu2, alpha2, beta2 for variables A and ...

1 year ago | 1 answer | 0

### 1

Question

Implementing parallel while loops in matlab.
Hi all, I am writing code that has two while loops in a random sampling exercise. I have two questions. I would like the whil...

1 year ago | 0 answers | 0

### 0

Question

Fillmissing function with movmean
I have a set of data with NaNs. So I filled the NaNs useing the fillmissing function. However, while the final array does not ha...

2 years ago | 1 answer | 0

### 1

Question

Time subscripting, selection of weekdays and weekends from a timetable
Hi guys. I have had this problem for a while now. I have a timetable consisting of timeseries yearly data resolved at 30 minute...

2 years ago | 1 answer | 0

### 1

Question

Creating a datetime variable - unconventionally
I have an excel sheet which has several columns including a date column of which I would like to create a datetime object from....

2 years ago | 3 answers | 0

### 3

Question

Selecting Mondays from a Timetable or Table using the datetime object
Hi, I would like to write a script that scrolls through my five minutes resolved timetable / table to select identifies all the...

2 years ago | 1 answer | 0

### 1

Question

Reshaping a 2D Timetable to a 3 D timetable
Hi everyone I have five minutes resolution timetable with 20 entries which makes the whole TT to be of the dimensions 17596 by...

2 years ago | 1 answer | 0

### 1

Question

How to specify a stop criterion in an if loop.
I have two files named TData (j) (technical Data) and RData (i) in an array format. I also have a file NFile (i), which is suppo...

3 years ago | 1 answer | 0

### 1

Question

While loop and comparisons
Hi guys, I have 2 files - file 1 (length n) is a list of conductor resistances from which I am supposed to pick an optimal re...

3 years ago | 0 answers | 0