Réponse apportée
how do i change color of the y-axes made by plotyy?
An example: x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); [AX,H1,H2] = plotyy(x,y1,x,y...

presque 15 ans il y a | 4

| A accepté

Réponse apportée
how to draw the line of known slope and intercept
You could also do it using MATLAB's polynomial functions... % Data a = -2; b = 3; c = 8; x = 3; y = -2/3; % No...

presque 15 ans il y a | 4

Réponse apportée
Intermingle data points in plot
It shouldn't take days to plot even that many points. Please give a small but succinct example which shows what you are doing. ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
GUI - How to differentiate the handles of the overall GUI vs. Callback function of each component?
Don't name your global variable the same name as any local variable where it will be used. This is one of the problems with usi...

presque 15 ans il y a | 0

Réponse apportée
How to find repeated sequence , and the times of repeat, in array by Matlab?
Here is another version which returns in strings and only returns those patterns that repeat and are of length >1: % This...

presque 15 ans il y a | 2

Réponse apportée
GUI - Default value of the radio button group
The default should be the first button created. G = uibuttongroup; R(1) = uicontrol(G,'style','radio',... ...

presque 15 ans il y a | 1

Réponse apportée
MATLAB GUI - Set transparent background color for components
For example.... F = figure; B = uicontrol('style','text','string','hello'); pause(.75) % Pause to see the change.......

presque 15 ans il y a | 1

Réponse apportée
replace column
% 2D example: A = zeros(5) A(:,3) = 1 % 3D example: A = zeros(3,3,3) A(:,2,:) = 1

presque 15 ans il y a | 0

| A accepté

Réponse apportée
KeyPressFcn problem
Try the WindowKeyPressFcn instead.

presque 15 ans il y a | 1

| A accepté

Réponse apportée
I have a question about multiplying two series...
That is some bizarre code indeed. Would you mind translating the help text into English please? If n1 and n2 were meant to be ...

environ 15 ans il y a | 0

Réponse apportée
How do I set the wait time during program execution?
pause(1) Also, see the help for the <http://www.mathworks.com/help/techdoc/ref/pause.html PAUSE> function.

environ 15 ans il y a | 14

Réponse apportée
plotting matrix of number as image
surf(magic(3)) rotate3d % or image(magic(3))

environ 15 ans il y a | 0

Réponse apportée
plotting a vector field
Put this command after the call to QUIVER3: hold on

environ 15 ans il y a | 0

| A accepté

Réponse apportée
ascii to binary, binary to ascii
char(bin2dec(reshape(y,7,[]).')).'

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Question on number accuracy and indexing
This is the old <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Floating Point FA...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to use horizontal sliders to slide and show multiple axes
Here is an example: function [] = slider_ex() % Help goes here. Sz = get(0,'screensize'); S.fh = figure('units','pi...

environ 15 ans il y a | 0

Réponse apportée
Performing Action to ALL 'struct' Variables
% Create several structures with different names... structn.dat = 1:10; structm.dat = 1:10; structk.dat = 1:10; % N...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Regarding inverse fast fourier transform
Sure, why not: V = 3+4i; F = fft(V) I = ifft(F) *EDIT* In response to the new details. Did you try to take the IFF...

environ 15 ans il y a | 0

Réponse apportée
GUI Text box
S = get(handles.textbox,'string'); % S = 'x(n)=5*rand(1,1)+x(n)' S = S(6:end) x(n) = eval(S) Or, more generally, S = ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Why do you come to "MATLAB Answers"?
All of the above, more or less, and ranked differently according to my mood and need or both. ;-)

environ 15 ans il y a | 2

Réponse apportée
Getting external variables from GUI
Yes, there are many ways to do this. One way is to use EVALIN. Let's say you have a variable named g in the base workspace. T...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Splitting up values from variables
x = Displacement(1); or Displacement = Displacement(1);

environ 15 ans il y a | 1

| A accepté

Réponse apportée
problem with for loop
for ii = logspace(1,5,5) % Do stuff here. end

environ 15 ans il y a | 2

| A accepté

Réponse apportée
count the number of columns 0 and 1 in a barcode image column 0 is black bars and 1 is a white bars
M=[1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 ...

environ 15 ans il y a | 0

Réponse apportée
Problem with cumsum
CUMSUM does not work for data that isn't single or double. You can write your own function to do this, or cast the data to sing...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
Dealing with weird Data in Cell Array
C = {'LOLS Purge Supply - Standby.';'GHe-W Supply - Standby.';'0.000320.';'42.9333';'42.9333'} D = regexprep(C,'\d\.$','') ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
GUI adding elements in listbox
This is from <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples my collection> of GUIs for lear...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
how to make arrows
As an alternative, here is a way to do it using the ANNOTATION function. Run the code and click where you would like the text t...

environ 15 ans il y a | 2

Réponse apportée
Using unique.m function on NaNs
In addition to what others have said, note this horribly named function: A = [1 nan; 1 nan]; isequalwithequalnans(A(1,:)...

environ 15 ans il y a | 2

Réponse apportée
Help with ismember, intersect functions for matching data
Will this do what you want? Note the requirement that A and B are sorted, which you have... A=[1, 2, 9, 11, 14, 17, 18, 19,...

environ 15 ans il y a | 1

| A accepté

Charger plus