Community Profile

# Benson Gou

### Smart Electric Grid

62 total contributions since 2017

Founder, Smart Electric Grid

View details...

Contributions in
View by

Question

Is the C code generated by Matlab Coder Faster than my Matlab Code?
Dear All, I am thinking to buy a Matlab Coder to convert mt Matlab code into C code. My purpose is to largely reduce the CPU ti...

1 month ago | 1 answer | 1

### 1

Question

How to quickly obtain the row indices in the original matrix A for a sub-matrix B?
Dear All, I have an original matrix A and a sub-matrix which is formed by selected rows from A. Now given A and B, how can I fi...

2 months ago | 1 answer | 0

### 1

Question

How to efficiently solve a matrix eqation when the matrix is updated?
Dear All, I need to solve a matrix linear equation: Ax = b. I know the most fast way to solve x is x = A\b. My question is: for...

2 months ago | 1 answer | 0

### 1

Question

How to find out a smallest sub-matrix B from a sparse matrix A which has the equal rank and # of non-zero columns?
Dear All, I have a very sparse matrix A. I need to find out a number of rows (smallest #) of A which satisfies the following co...

3 months ago | 2 answers | 0

### 2

Question

How to find a shortest path from a node to a sub-network?
Dear All, I want to find out the shortest path from a given node to a sub-network in a graph. Thanks a lot in advance. Benso...

3 months ago | 1 answer | 0

### 1

Question

How to quickly update the inverse for a sparse matrix when a row changes?
Dear All, I have a square very sparse matrix A with a dimension 4000 by 4000, and I have its inverse InvA. Now a row in A chang...

6 months ago | 1 answer | 0

### 1

Question

How to check if a element of a struct is empty?
Dear All, I defined a struct and initialize it in the following way. Res_All_Meas = struct([]); [Res_All_Meas(1000).ind] = 0...

6 months ago | 2 answers | 0

### 2

Question

How to define a struct array with length more than one and assign values to one of the strucy array?
Dear All, I have a real array A. I want to define a struct array S to save the colculation reslut of element in A to the corres...

6 months ago | 2 answers | 0

### 2

Question

How to replace two columns in a txt file?
Dear All, I have a txt file which contains strings and numerical columns. Here are some samples of this txt file: 3 '...

7 months ago | 1 answer | 0

### 1

Question

How to read strings from a txt file?
Dear All, I need to read strings from a txt file which contains numerical data and strings. The file content is as follows: mo...

7 months ago | 1 answer | 0

### 1

Question

How to read a list of strings in a txt file?
Dear All, I need to read a txt file which contains a list of names with different lengths. Here is my txt file: mynames: OAKF...

7 months ago | 1 answer | 0

### 1

Question

An error of using fprintf
Dear All, When I tried to use fprintf to print numerical data and char in the same row, here is my code: fprintf(fileID, ' ...

7 months ago | 1 answer | 0

### 1

Question

Looking for the Source code of built in function ldl.m
Dear All, I am trying to use Matlab Coder to convert my Matlab code into C code. But there are a number of built in functions t...

7 months ago | 2 answers | 0

### 2

Question

How to plot a big network showing node ID?
Dear All, I used plot to display a bid network with 3000 nodes. But the graph does not show the node ID. I am wondering if it i...

8 months ago | 0 answers | 0

### 0

Question

How to generate a standalone application for Linux?
Dear All, I have a Matlab code. The user does not have Matlab and his platform is Linux not Windows. In order for the user to u...

9 months ago | 0 answers | 0

### 0

Question

Can I use web compiler to build a web demo for the users?
Dear All, I do not know if it is possible to use web compiler to build up a web demo for the users of our software. The users c...

9 months ago | 1 answer | 0

### 1

Question

Dear All, I generated an exe file using Matlab compiler. I zipped it and sent the zipped package to a customer. But the custome...

9 months ago | 1 answer | 0

### 1

Question

How to solve this problem when my friend downloaded my standalone application?
Dear All, I used Matlab compiler to generate a standalone application package. I sent it to my friend to test. But he feedback...

9 months ago | 0 answers | 0

### 0

Question

Why did I get different print format in the output txt file?
Dear All, I used Matlab compiler to generate a standalone application exe file. I then tested it in 3 different computers. I ob...

9 months ago | 1 answer | 0

### 1

Question

How to get UTC time in my program?
Dear All, I am wondering if it is pissible to get the UTC time in my program. Do I need the internet avaibale if I want to get ...

9 months ago | 1 answer | 0

### 1

Question

Why the user was asked to install Matlab runtime for my standalone application?
Dear All, When I created a standalone application exe file, I used the selection "Runtime is included in the package". But the ...

10 months ago | 1 answer | 0

### 1

Question

Can I write a builtin Clock in my standalone application exe file?
Dear All, I am using the datetime to control the days the users can use our standalone application code. But I found a flaw of ...

10 months ago | 1 answer | 0

### 1

Question

How to delete the logo when using Matlab compiler?
Dear All, I want to delete the logo when using Matlab compiler. Would anyone know how to delete it? Thanks in advance. Benso...

10 months ago | 1 answer | 0

### 1

Question

How to write my Matlab code so that its standalone application program takes multiple input files?
Dear All, I want to design my standalone application code (.exe file generated by Matlab compiler) which takes input files as f...

10 months ago | 1 answer | 0

### 1

Question

How to find the absolution date?
Dear All, I think it is hard to find out the absolute date (current date). Because the computer date can be changed, for exampl...

10 months ago | 1 answer | 0

### 1

Question

How to print text in an existing txt file in an existing txt file?
Dear All, I tried the following cases: 1. fprintf('Hello <strong>bold</strong> world.\n') 2. fileID = fopen('GeneralResults.t...

11 months ago | 1 answer | 0

### 1

Question

How to print some text in a txt file in another folder?
Dear All, Hope this message finds you all being safe and healthy. I am trying to print some text and save them in a txt file ...

11 months ago | 3 answers | 0

### 3

Question

How to find a minimal number of rows in a sparse matrix to form a square sub-matrix for a given row?
Dear All, I have a big sparse matrix A. For a given row, is it possible for me to find the minimal number of rows in A to form ...

1 year ago | 1 answer | 1

### 1

Question

How to quickly find the column index of the last non-zero element in all rows in a sparse matrix?
Hi, All, I have a big sparse matrix A. I want to find out the column index of the Last non-zero element in all rows from the en...

1 year ago | 5 answers | 0

### 5

Question

How to quickly find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix?
Dear All, I have a big sparse matrix A. For a given row, is it possible for me to find the minimal number of rows in A to form ...

1 year ago | 1 answer | 0