hi all
matlab has two main random number generators we surely all know about: rand and randn
randn uses a 0 mean, 1 std gaussian distribution
yet i very much miss a random number generator WHERE i can SPECIFY the mean and std i want it to use (very useful when trying to compare ur data to random...
hi all
okay, i have a simple plot saved in a .fig file
i JUST need to RETRIEVE the data of the Y axis
i m SURE it can be done, but i cant figure it out
i have even SEEN the data when editing the plot but i cant save it to workspace
help?
hi all
i am trying to minimize some matrix H using lsqnonneg (linear least square with non negativity constraint)
however, lsqnonneg accepts only vectors as inputs, not matrices, so i am forced to do this
for i=1:size(V,2)
H(:,i) = lsqnonneg(-W, -V(:,i))
end
this is extremely time consuming...
hi all
i am trying to compile AND link a matlab executable from its source code in c++
i proceeded as follows
1. coded the m file
2. translated the code to c++ with the mcc -p (so i have the executable file along with the source files, and it works as stand-alone)
3. compiled (to object file)...
hi all
i am trying to design a recursive function that would "spawn" a child process everytime a condition is met
to keep it simple:
function output = recursive_function(parameters)
if (condition_is_met)
recursive_function(parameters)
end
output=whatever;
i want to "keep...
hi all
i wish to plot a "boolean" matrix on a 2D surface, not like "mesh" or "surf", rather like a non-connected plot
something like
______________________
| * * |
| * |
| * * |
| * |
| *...