Top "Matlab" questions

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

How to normalize a vector in MATLAB efficiently? Any related built-in function?

I normalize a vector V in MATLAB as following: normalized_V = V/norm(V); however, is it the most elegant (…

matlab vector performance
How to get the type of a variable in MATLAB?

Does MATLAB have a function/operator that indicates the type of a variable (similar to the typeof operator in JavaScript)?

matlab variables types
Matlab: Running an m-file from command-line

Suppose that; I have an m-file at location: C:\M1\M2\M3\mfile.m And exe file of the matlab …

matlab command-line automation
What is MATLAB good for? Why is it so used by universities? When is it better than Python?

I've been recently asked to learn some MATLAB basics for a class. What does make it so cool for researchers …

python matlab
How to concat string + i?

for i=1:N f(i) = 'f'+i; end gives an error in MatLab. What's the correct syntax to initialize an …

string matlab loops for-loop octave
How to iterate over a column vector in Matlab?

Possible Duplicate: How do I iterate through each element in an n-dimensional matrix in MATLAB? I have a column vector …

matlab iteration
Python equivalent to 'hold on' in Matlab

Is there an explicit equivalent command in Python's matplotlib for Matlab's hold on? I'm trying to plot all my graphs …

python matlab graph matplotlib
How can I count the number of elements of a given value in a matrix?

Does anyone know how to count the number of times a value appears in a matrix? For example, if I …

matlab count matrix
MATLAB, Filling in the area between two sets of data, lines in one figure

I have a question about using the area function; or perhaps another function is in order... I created this plot …

matlab plot fill area
How to search for a string in cell array in MATLAB?

Let's say I have the cell array strs = {'HA' 'KU' 'LA' 'MA' 'TATA'} What should I do if I want …

string matlab cell-array