Respondida
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.

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 1

| aceptada

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

alrededor de 11 años hace | 0

Respondida
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 ...

alrededor de 11 años hace | 1

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

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 1

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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. ...

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 11 años hace | 0

| aceptada

Respondida
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(:) ) ...

alrededor de 11 años hace | 0

Respondida
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).

alrededor de 11 años hace | 0

| aceptada

Respondida
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.

alrededor de 11 años hace | 0

| aceptada

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

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 1

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 1

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

alrededor de 11 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 11 años hace | 1

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 4

| aceptada

Cargar más