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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

Beantwortet
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}; ...

etwa 15 Jahre vor | 7

Beantwortet
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')

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

Beantwortet
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=...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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');

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

Beantwortet
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*, ...

etwa 15 Jahre vor | 0

Beantwortet
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)

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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'))

etwa 15 Jahre vor | 0

| akzeptiert

Mehr laden