Frage


How do functions with multiple outputs work?
I was trying to write matlab functions but I sometimes find myself doing something really silly(in my opinion). Consider a funct...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to compute diagonal entries of a matrix of inner products (gram matrix) in a vectorized way?
I am interested in computing only the diagonals of a matrix of inner products between vectors (Gram matrix). Say that we have th...

mehr als 8 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Compute the complement of a set of indices in a known range
I want to compute the complement of a set C. The elements are indices in the range 1 to K. Is the best/fastest/simplest way to g...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How does one apply max(0,z) element-wise in a vectorized way (apply ReLu linear rectifier element-wise)
The only way that occurred to me how to do it was to simply compare the matrix with the number 0 (or the individual thresholds i...

mehr als 8 Jahre vor | 0

Frage


How does one apply max(0,z) element-wise in a vectorized way (apply ReLu linear rectifier element-wise)
I wanted to implement something similar to applying a mathematical function element-wise to a matrix. For example something like...

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Saving all variables with save EXCEPT just a few variables
http://www.mathworks.com/matlabcentral/answers/101287-how-do-i-save-all-of-the-workspace-variables-except-for-a-certain-specifie...

mehr als 8 Jahre vor | 0

Frage


Saving all variables with save EXCEPT just a few variables
I have a workspace that I want to save all variables except a few that are named basically with the same prefix. So ideally, I'd...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Saving git log number of the current commit in MATLAB
I wanted to save the current git commit hash of the code that I am currently running. Ideally, something like: git_hash_str...

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Is it possible to transform a string to a variable code name in MATLAB?
This might be a very bizarre question (and probably I might be advised against doing such a weird thing) but if I have a string ...

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


My MATLAB keeps reading old .mat files as uint32 even though it ain't, why is it and how can I fix this?
I thought of upgrading/updating my MATLAB, might that fix the issue? Why is it happening in the first place? As in: l...

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Why do I need to run a file several times in MATLAB before it stops throwing an error?
I have been trying to debug this weird bug where I run a script in matlab and it says that it cannot find some function that I h...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Why am I getting a Duplicate directory name from the Applications folder in my MATLAB and MAC os X?
I am getting: Warning: Duplicate directory name: /Applications/MATLAB_R2015b.app/toolbox/stateflow/stateflow > In re...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Why is 'cp_2-feb-2016_1' invalid string in MATLAB?
Why is 'cp_2-feb-2016_1' invalid string in MATLAB? I get: >> cp_2-feb-2016_1 cp_2-feb-2016_1 ↑ E...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Why is my MATLAB able to open my GUI application but unable to run it as a command in my Unix Shell?
This happens to be a new problem because I was able to run MATLAB on the shell until today. I didn't install or update it or any...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I pass input parameters to a MATLAB script from a Bash shell in Unix with arguments without opening MATLAB shell?
I wanted to run something like: matlab -no_gui -no_matlab_shell my_matlab_script.m param1 param2 param3 ... the idea was...

fast 9 Jahre vor | 1 Antwort | 1

1

Antwort