^ is the exponential operator in MATLAB. The problem with it is that it isn't present on a lot of non-english keyboard layouts, and if you use it a lot in your work, switching between HR and EN becomes troublesome.
Is there a way to add it to MATLAB's toolbar (like in Excel, so you can use it via mouse or touchpad), or to define a custo...
I know about MATLAB's format long, format short, eng ... and so on. But short and long will always display a predefined number of decimals, with an exponent, and for example, format bank will display always 2 decimals.
Is there an option to put your explicit format, in a "fortran way", like f8.3 --> 1234.678 ?
I'm looking for a way to ...
Is there a way to turn the y axis upside down in matlab plots, so that the positive direction of the y axis, instead of up, points down ?
(I beg of you; please do not say, print it out, then turn the paper around ;-)
...
i try to use create Cell Array in Numpy, Anyone have an Information ?
...
I am using Matlab and am using its solve function. I run this code and I keep getting this error
[eqns,vars] = getEqns(varargin{:})
I realized I had some parens issues and fixed those but it still does work any ideas?
Asp = 3.90;
Arg = 12.48;
Lys = 10.54;
His = 6.04;
Glu = 7.70;
Gly = 7.50;
Val = 7.44;
Pro = 8.36;
Ser = 6.93;
...
I've been integrating simple java modules into the MATLAB environment on Windows with some success. Recently I encountered a problem with a third-party library which attempts to load a dll.
The java ClassLoader throws the UnsatisfiedLinkError when the load is attempted:
java.lang.UnsatisfiedLinkError: no <libname> in java.library.path
...
Is there an easy way to divide each matrix element by the column sum? For example:
input:
1 4
4 10
output:
1/5 4/14
4/5 10/14
...
What is the best filter to use to remove noise from an ECG signal with matlab?
...
I've come into ownership of a bunch of Matlab code and have noticed a bunch of "magic numbers" scattered about the code. Typically, I like to make those constants in languages like C, Ruby, PHP, etc. When googling this problem, I found that the "official" way of having constants is to define functions that return the constant value. S...
I have two masks that I would like to merge together, overwriting mask1 with mask2 unless mask2 has a zero. The masks are not binary, they are some value that is user defined in the region of interest and 0 elsewhere.
For example if:
mask1=[0 5 5;0 5 5];
mask2=[4 4 0;4 4 0];
then I would want an output of [4 4 5;4 4 5]. And if I then...
I have a 500-by-1 matrix of strings S and a 500-by-1 matrix of numbers N. I want to see them in the variable editor together like this:
S(1) N(1)
S(2) N(2)
...
S(500) N(500)
Is this possible?
...
i am a engineering student and i have to do a lot of numerical processing, plots, simulations etc. The tool that i use currently is Matlab. I use it in my university computers for most of my assignments. However, i want to know what are the free options available.
i have done some research and many have said that python is a worthy rep...
I have an array of 2D Cartesian points in MATLAB and I'd like to sort them so that putting them into plot would create a polygon with no line overlaps.
(NB. I'm not actually going to plot in MATLAB, I just need to sort them in that manner)
I'm thinking of writing a loop that would find the polar coordinate system's 'theta' for a vector...
I'm working on some matlab code which is processing large (but not huge) datasets: 10,000 784 element vectors (not sparse), and calculating information about that which is stored in a 10,000x10 sparse matrix. In order to get the code working I did some of the trickier parts iteratively, doing loops over the 10k items to process them, an...
I am trying to implement an algorithm in computer vision and I want to try it on a set of pictures. The pictures are all in color, but I don't want to deal with that. I want to convert them to grayscale which is enough for testing the algorithm.
How can I convert a color image to grayscale?
I'm reading it with:
x = imread('bla.jpg')...
Hi, is there an easy way to apply a low-pass or high-pass filter to an array in MATLAB? I'm a bit overwhelmed by MATLABs power (or the complexity of mathematics?) and need an easy function or some guidance as I couldn't figure it out from the documentation or searching the web.
...
I a medical researcher with code written in MATLAB 2009b that runs very slowly because of a self-referential loop (not sure of the programming lingo here), i.e., the results of the first iteration is used during the second iteration, etc. (I have vectorized it to a fare-thee-well. I have run the Profiler.)
I'd like to convert the slow...
I'm using MATLAB's deployment tool to compile a simple project which uses a mex library. The executable runs OK and does what it's supposed to do except that when it's supposed to finish, nothing happens. It just sits there.
When I'm compiling any other project, for instance the magic square example from the docs, it works OK. The execu...
I am trying to perform a binning average. I am using the code:
Avg = mean(reshape(a,300,144,27));
AvgF = squeeze(Avg);
The last line gets rid of singleton dimensions.
So as can be seen I am averaging over 300 points. It works fine except for times when I have a total number of points not equal to a multiple of 144*300.
Is there any ...
I have a matrix in MATLAB from which I want to sample every other entry:
a =
1 5 9 13
2 6 10 14
3 7 11 15
4 8 12 16
And I want:
result =
1 9
3 11
How can I do this without a for loop?
...