Feeds
질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
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년 초과 전 | 답변 수: 2 | 0
2
답변질문
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...
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 8년 전 | 답변 수: 3 | 0
3
답변질문
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...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 9년 전 | 답변 수: 3 | 0
3
답변질문
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...
대략 9년 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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 ...
거의 10년 전 | 답변 수: 2 | 0
2
답변질문
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 ...
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
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,...
대략 13년 전 | 답변 수: 2 | 0
2
답변질문
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년 초과 전 | 답변 수: 1 | 0