Réponse apportée
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.

presque 11 ans il y a | 0

Réponse apportée
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...

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 0

Réponse apportée
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 ...

presque 11 ans il y a | 1

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

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 1

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
What is the difference between Normalized cross correlation & cross correlation ,...??
One is normalised, the other isn't.

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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. ...

environ 11 ans il y a | 0

Réponse apportée
how to convert 1100111 to 1 1 0 0 1 1 1
s = arrayfun( @(x) str2double( x ), num2str( a ) )

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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(:) ) ...

environ 11 ans il y a | 0

Réponse apportée
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).

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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.

environ 11 ans il y a | 0

| A accepté

Réponse apportée
How to add zero vectors and columns in arbitrary places?
N( N == 1 ) = B;

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 1

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 1

Réponse apportée
Using structure in loop with different fields
hh(i,j) = call_some_function( i, j )

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 4

| A accepté

Charger plus