Answered
Multiply certain column in a text file by a constant and have it implemented in text file itself
doc textscan doc fprintf should do the job. I assume you know how to multiply by 15.

11 years ago | 0

Answered
How to fill a binary valued matrix with a specific color?
colour0 = [0 1 0]; colour1 = [1 0 0]; figure; hAxes = gca; imagesc( binaryMatrix ) colormap( hAxes, [colour0; col...

11 years ago | 1

| accepted

Answered
[Questions] Logical Indexing Problem
trimmings = max( 0, v1 - ( v2 + 10 ) ) seems to do the job.

11 years ago | 0

Answered
How to add function
What do you expect wrapTo360 to be? Is it a toolbox function or one that you wrote or one you downloaded from somewhere? If ...

11 years ago | 1

Answered
Need help creating a code
timeVals = [a( a(:,2) == 2 ), a( a(:,2) == 4 )]; idxAboveMinTime = bsxfun( @ge, b(:,2), timeVals(:,1)' ); idxBelowMa...

11 years ago | 0

| accepted

Answered
How to I referrence a value (matrix) from script file to a function file
The point of functions is to have their own scope and workspace so you pass in the things you need as input arguments. If you...

11 years ago | 0

| accepted

Answered
How to call a callback function in a MATLAB gui from another gui?
Factor out your callback function into its own file so you can call it and pass in the arguments. You cannot see functions ex...

11 years ago | 1

Answered
Arrayfun with a function that takes multiple inputs
f = @(x,y) x.^2 + y.^2 g = @(x) f(x,3); a = [1 2 3 4 5]; res = arrayfun( g, a ); is a general example that...

11 years ago | 0

Answered
Subclassing built-in numeric datatypes with multiple inheritance
You definitely don't want to be subclassing two builtin types. I've only tried subclassing a builtin like that once recently as...

11 years ago | 0

Answered
What is the difference between Normalized cross correlation & cross correlation ,...??
One is normalised, the other isn't.

11 years ago | 0

Answered
Can MATLAB be reinstalled on the same PC without losing an activation?
As far as I remember you get asked during uninstallation whether or not you want to deactivate the license on that PC so it depe...

11 years ago | 0

Answered
How to call a structure whose name is assigned to another variable???
I'm not really sure I understand the question, but if you mean that a field name is assigned to a variable you can do e.g. ...

11 years ago | 0

Answered
how to convert 1100111 to 1 1 0 0 1 1 1
s = arrayfun( @(x) str2double( x ), num2str( a ) )

11 years ago | 0

| accepted

Answered
How to extract phase and amplitude information from FFT?
If you want the phase and amplitude for different frequencies then these are just: angle( res ); real( res ); or ...

11 years ago | 0

| accepted

Answered
Move average in the graph
If you simply want the average of all the values without any consideration of matrix structure then simply mean( A(:) ) ...

11 years ago | 0

Answered
Unable to install deployed app from web installer
Mathworks were having problems with their web servers for the downloadable MCR yesterday (don't know if it is still the case).

11 years ago | 0

| accepted

Answered
A neat way to carry out normalised cross correlation on two singals
doc xcorr Look at the 'scaleopt' options. I think 'coeff' is the one you want.

11 years ago | 0

| accepted

Answered
How to add zero vectors and columns in arbitrary places?
N( N == 1 ) = B;

11 years ago | 0

Answered
How do I persuade MEX to link to a static library?
I use the -Llibfolder option too when I compile my mex file against a static library. It sounds as though it just isn't...

11 years ago | 0

Answered
How to access the title of a matlab fig file
If you mean the figure title as you say then: fig_1.Name post R2014b or get( fig_1, 'Name' ) before R2014b g...

11 years ago | 1

Answered
Can I join variables containing strings into one variable?
strjoin( { A1, A2, A3,..., An }, ' + ' ) would work in the case you give, but you have to hard-code in each of the An. B...

11 years ago | 0

Answered
is it possible to overwrite an input variable?
There is no 'problem' with overwriting 'b' syntactically, it is 'possible'. The fact that 'X' never gets created is a problem t...

11 years ago | 0

Answered
Rename A Lot of Files
movefile('source','destination') doc movefile works for renaming a file. If it is in the current folder you can jus...

11 years ago | 0

Answered
I want to fill in the gaps in a matrix (extrapolation) and produce nice looking plots such as this ->
doc interp2 should do the job. There are examples on that page - it isn't totally intuitive to use first time. It is what...

11 years ago | 1

Answered
Using structure in loop with different fields
hh(i,j) = call_some_function( i, j )

11 years ago | 0

| accepted

Answered
Why did this error message appear?
I'm not sure about its sporadic appearance, but in terms of what the error means: A listbox has a set of strings that can be ...

11 years ago | 1

| accepted

Answered
Re-plotting of data on same GUI axes in matlab
hPlot = plot( hAxes, [0:0.1:2*pi] , cos ([0:0.1:2*pi] ); will plot on the axes specified by hAxes (which can be acquired ea...

11 years ago | 0

Answered
Accessing data in 1x2 structure array
x = data.X is just giving you the equivalent of x = data(1).X and ignoring the 2nd element of the data array. Wh...

11 years ago | 0

| accepted

Answered
problem with converting data
str = someCellArray{1}; will extract that out of a cell array (if it is at index 1 in the cell array, change the index acco...

11 years ago | 0

| accepted

Answered
what are "frequency bins"?
Frequency analysis is done in discrete space (as with anything done with a signal on a computer), usually involving the FFT. Th...

11 years ago | 4

| accepted

Load more