Community Profile

photo

Mohamed Abdalmoaty


Last seen: 2 years ago Active since 2011

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Compute all third degree monomials out of a given vector
Suppose you are given a vector How can one effieciently construct a vector containing all third degree monomials of the vector...

5 years ago | 1 answer | 0

1

answer

Question


Is there a way to vectorize these loops for speed?
I need to construct symmetric matrix M as shown in the following code: theta = 0.5; lambda = 0.1; % usually a number be...

6 years ago | 2 answers | 0

2

answers

Question


Puzzling plot color behaviour
I have two curves stored in the workspace. I use exactly the same commands to plot them: newred = [0.8500 0...

7 years ago | 2 answers | 0

2

answers

Question


Final report for fminunc
I'm using the optimization function fminunc. I'd like to generate a final report that includes: number of function calls, tota...

7 years ago | 1 answer | 0

1

answer

Question


Deleting the last displayed line (or part of it) in the command window.
I'm trying to use the same line in the command window of Matlab to print the progress of my code. I have read several solutio...

7 years ago | 3 answers | 0

3

answers

Question


How to control the random number generation when using a parfor loop
When I want to repeat my code with the same results, I fix the seed in the beginning of the code. Say: rng(100) I can then gen...

7 years ago | 1 answer | 0

1

answer

Question


Sum each element in a matrix with the previous elements on the same diagonal
I'm looking for an "efficient way", that will work on larger matrices like 2000 by 2000 in reasonable time, to do this operatio...

8 years ago | 3 answers | 0

3

answers

Question


How to disable the arrows on the nyquist plot?
When using the commands nyquist() or nyquistplot() without output arguments we get a plot. How to disable the arrows on the plot...

8 years ago | 1 answer | 0

1

answer

Question


how to check that all called functions exist in the path?
I coded my simulation in an m file in which I call many other functions that I also wrote. Each function also calls several oth...

9 years ago | 1 answer | 0

1

answer

Question


From linear to logarithmic distribution
Given a linear frequency scale denoted by the vector f = 1:fmax; fmax is known, say 1000. How can I construct, out of this ...

9 years ago | 1 answer | 0

1

answer

Question


What is the best vectorized way to construct the following matrix
I have a system of linear equations: y = A x y is a column vector of size n. A is a lower triangular matrix of size n by ...

9 years ago | 2 answers | 0

2

answers

Question


What is the best vectorized way to construct the following matrix
I have a vector variable of size nx1 I want to construct a square nxn matrix from this vector. The first column of the matrix ...

9 years ago | 1 answer | 0

1

answer

Question


Passing both the the variable name and value to a function
Hello, I wonder if there is a way to pass not only the value of a variable, but also it's name to a function. For example,...

12 years ago | 2 answers | 0

2

answers

Question


Compiler properties for building MEX-files
I'm working with MATLAB R2010b and need to compile a C++ source file to a .mex64 MEX-file. I'm using the Microsoft VS2008 SP1 a...

13 years ago | 1 answer | 0

1

answer