Respondida
hist problem
unique(out) gives 25, that means you ask for 25 bins, you can see it because you get counts and values with 25 elements. do i...

alrededor de 15 años hace | 0

| aceptada

Respondida
YDataSource problems
Use lines instead of plots and change their xdata and ydata everytime you want to update them. I can't understand that code, yo...

alrededor de 15 años hace | 0

Respondida
Setting value to zero at random
idx=find(max(nonzeros(A))==A); B(randi([idx(1) idx(end)]))=0

alrededor de 15 años hace | 1

| aceptada

Respondida
convert strings back to variable names?
Just a simple example on how to create 3 variables with predetermined values. v={'x1a','x2b','xA'}; values={10,20,30}; ...

alrededor de 15 años hace | 7

Respondida
How to set axes grid color?
set(axes_handle,'XGrid','off') set(axes_handle,'YGrid','off') or all in one line set(gca,'YGrid','off','YGrid','off')

alrededor de 15 años hace | 0

| aceptada

Respondida
How to Open file with GUI's axes multiple times?
% --- Executes on mouse press over axes background. function axes1_ButtonDownFcn(hObject, eventdata, handles) % hObject ...

alrededor de 15 años hace | 0

| aceptada

Respondida
How to enter an input in an active 'while' loop?
Take a look at my program <http://www.mathworks.com/matlabcentral/fileexchange/29618-spspj SpSpj> , might not be the best way to...

alrededor de 15 años hace | 0

| aceptada

Respondida
Viewing Time vs Frequency in Simulink
This is the code just for MATLAB t = 0:0.001:10; % 10 seconds @ 1kHz sample rate fo = 10; f1 = 400; % Start at 10...

alrededor de 15 años hace | 1

| aceptada

Respondida
How to get x,y coordinates of each pixels in a connected component ??
bw = imread('text.png'); L = bwlabel(bw); s = regionprops(L, 'centroid'); XY=[s.Centroid]; ax=axes hold on ...

alrededor de 15 años hace | 0

Respondida
Reshowing an image in a programmatic gui
Everytime you use imshow you must also give that image the tools, example: handles.fig=figure handles.ax=axes handles...

alrededor de 15 años hace | 0

Respondida
Create variable in workspace
function MakeMyVar(VarName,VarValue) assignin('base',VarName,VarValue) end

alrededor de 15 años hace | 1

| aceptada

Respondida
What is the algorithm used by freqz?
edit freqz and see how it works

alrededor de 15 años hace | 0

Respondida
GUI
<http://www.mathworks.com/help/toolbox/imaq/f11-74309.html Previewing Data> <http://www.mathworks.com/matlabcentral/fileexcha...

alrededor de 15 años hace | 0

| aceptada

Respondida
strfind in simulink and stateflow
if any(strfind((x)>4,[1 1 1 1 1])) V=10000; else V=1 end

alrededor de 15 años hace | 1

Respondida
Simulating model in command window without using workspace.
<http://www.mathworks.com/support/tech-notes/1900/1903.html Command Line Functionality for Simulink>

alrededor de 15 años hace | 0

Respondida
sampling audio signal
[x,fs] = wavread('file'); t = 0:1/fs:length(x); plot(t,x); for stereo files [y, fs]=wavread(fileName); % Read wave fil...

alrededor de 15 años hace | 1

Respondida
GUI
<http://www.mathworks.com/matlabcentral/fileexchange/2378 Buttons>

alrededor de 15 años hace | 0

Respondida
How do I run a simulation with a transfer function block and a multi dimensional input ?
I tested a model and found problems doing what you want, my workaround is: # Insert a sine wave block (f=2*pi*0.22 and phase=...

alrededor de 15 años hace | 0

| aceptada

Respondida
Shift plot indexing
A = [10 9 7 8 4 2 5 1 0; 10 12 6 8 3 3 4 2 0]; plot(0:size(A,2)-1,A');

alrededor de 15 años hace | 0

| aceptada

Respondida
Interactive Line Plot GUI
Take a look at <http://www.mathworks.com/matlabcentral/fileexchange/20645-ginput2-m-v3-1-nov-2009 ginput2>

alrededor de 15 años hace | 0

Respondida
I can't get the ilaplace of a function
The documentation for the ilaplace says that ilaplace(L) computes the inverse Laplace transform of the *symbolic expression L*, ...

alrededor de 15 años hace | 0

Respondida
Find
a=randi([1 10],10,2); %make up some data x=a(:,1); y=a(:,2); b=5; sum(y<x+b & y>x-b)

alrededor de 15 años hace | 0

Respondida
How to make a unique vector
a = [22 20 21 20 24 25 26 22] %your vector b=unique(a); %get the unique ones d=perms(b); %get all possible permutations o...

alrededor de 15 años hace | 0

Respondida
Bode
Besides Oleg suggestion, bode doesn't take double arguments, you must provide one transfer function instead. %simple example ...

alrededor de 15 años hace | 1

Respondida
plotting of points
%generate some fake data similar to the picture 1 t=1:100; up=10+2*rand(1,45); desc=9-(1:10)*rand(1,1); down=1+2*r...

alrededor de 15 años hace | 0

Respondida
Colorbar displays in new figure
Let me know if this is correct, you have the GUI open and you want to add the colorbar from a code on the command line? If th...

alrededor de 15 años hace | 0

Respondida
Set cursor position in multiline uicontrol edit box
take a look at <http://undocumentedmatlab.com/blog/setting-line-position-in-edit-box-uicontrol/ Setting line position in an edit...

alrededor de 15 años hace | 0

Respondida
Kalmanfilter
Sure you can, take a look on the <http://www.mathworks.com/matlabcentral/fileexchange/ FEX> for examples of the use of the Kalma...

alrededor de 15 años hace | 0

Respondida
Passing figure data from fcn to plot in GUI
Why doesn't gcvplots return the data necessary to do the plots to the GUI and the code to plot goes inside the GUI? function...

alrededor de 15 años hace | 0

| aceptada

Respondida
Pulling handle from messagebox within GUI
I don't see a problem there because it works just fine uiwait(msgbox('Message')) or waitfor(msgbox('Message'))

alrededor de 15 años hace | 0

| aceptada

Cargar más