### Tag: matlab

1.3K views
##### Why is 24.0000 not equal to 24.0000 in MATLAB?

I am writing a program where I need to delete duplicate points stored in a matrix. The problem is that when it

316 views
##### How to deal with name/value pairs of function arguments in MATLAB

I have a function that takes optional arguments as name/value pairs. function example(varargin) % Lots of set

1.2K views
##### Function for &apos;does matrix contain value X?&apos;

Is there a built in MATLAB function to find out if a matrix contains a certain value? (ala PHP's in_array

664 views
##### In MATLAB, are variables REALLY double-precision by default?

This question arose out of something strange that I noticed after investigating this question further... I al

1.7K views
##### Call Python function from MATLAB

I need to call a Python function from MATLAB. how can I do this?

1.8K views
##### 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 have a 1500

2.2K views
##### How to set the DPI of Java Swing apps on Windows/Linux?

If you have an monitor with a DPI over 150 (such as Macbook Pro), you may also find the problem: the font on t

2.1K views
##### Iterating through struct fieldnames in MATLAB

My question is easily summarized as: "Why does the following not work?" teststruct = struct('a',3,&

1.2K views
##### LNK2038: mismatch detected for &apos;RuntimeLibrary&apos;: value &apos;MT_StaticRelease&apos; doesn&apos;t match value &apos;MD_DynamicRelease&apos; in file.obj

I am Integrating Matlab, C and Cuda together in a project. I used Matlab mix in order to connect matlab mx fun

2.5K views
##### reading v 7.3 mat file in python

I am trying to read a matlab file with the following code import scipy.io mat = scipy.io.loadmat('test.m

705 views
##### Octave/Matlab: Adding new elements to a vector

Having a vector x and I have to add an element (newElem) . Is there any difference between - x(end+1) = new

588 views
##### How to change the window title of a MATLAB plotting figure?

I have created a MATLAB plotting with the plot() function. How do I change the window title of the generated f

1.5K views
##### Changing Fonts Size in Matlab Plots

I want to change Font Size for xlabel, ylabel, axis size, legend font size a.k.a everything at once, is this p

388 views
##### 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 initial

2K views
##### MatLab error: cannot open with static TLS

Since a couple of days, I constantly receive the same error while using MATLAB which happens at some point wit

405 views
##### In MATLAB, can I have a script and a function definition in the same file?

Suppose I have a function f() and I want to use it in my_file.m, which is a script. Is it possible to have th

1.8K views
##### Why/when should I prefer MATLAB over Octave?

In our shoestring operation we need to prototype algorithms in some higher-level language before committing to

347 views
##### How do I iterate through each element in an n-dimensional matrix in MATLAB?

I have a problem. I need to iterate through every element in an n-dimensional matrix in MATLAB. The problem is