Answered
clear all axes handles in GUI
arrayfun(@cla,findall(0,'type','axes'))

14 years ago | 6

| accepted

Answered
can anyone find the bug in my 3 line code.
for n = -20:20 % Compute Fourier series coefficients c(n + 21) = quad(@(x)(exp(sin(x).^6).*exp(-i*x*n)),0,pi,1e-4); ...

14 years ago | 0

Answered
selecting certain values from a list
M=[ 8 9 106 107 109 110 244 245 325 32...

14 years ago | 0

| accepted

Answered
solving a simple maths problem
syms x y z solve('(exp(2*y + 2*z))*(exp(z)-1)-x','z')

14 years ago | 1

Answered
Permanently updating the value of an Edit Text box to input values with a push button
<http://blogs.mathworks.com/videos/2010/12/10/how-to-save-and-restore-state-of-a-gui-in-matlab/ Doug’s MATLAB Video Tutorials D...

14 years ago | 0

Answered
Spectrogram and ginput
Had that problem once, never found a good fix just a workaround, edit ginput comment the line set(fig,'pointer','fullcrosshair')...

14 years ago | 0

| accepted

Answered
Set the SamplesAcquiredFcn property
<http://www.mathworks.com/help/toolbox/daq/f9-34753.html#f9-119409 R2011a Documentation → Data Acquisition Toolbox, Creating and...

14 years ago | 0

| accepted

Answered
corruption of handles and hObject / GUIDE application
Try this way: function updateButton_Callback(hObject, eventdata, handles) % hObject handle to updateButton (see GCBO)...

14 years ago | 0

Answered
Changing the Logo in my self-created GUI Application
<http://www.mathworks.com/matlabcentral/answers/7313-change-guide-icon Change guide icon>

14 years ago | 0

| accepted

Answered
how to plot function with a sine input in Matlab (not in simulink)
When you invoke the step function you are multiplying your function on the frequency domain by 1/s, the function you get from th...

14 years ago | 0

| accepted

Answered
R2009a matlab code for laplace and inverse laplace
You need the Symbolic Math Toolbox™ Examples on how to use the laplace function: syms t f = t^4 laplace(f) ...

14 years ago | 0

| accepted

Answered
Please please help,
a=2; b=4; n=10000; r = a + (b-a).*rand(n,1); xlabel('index'); ylabel('Amplitude'); grid %pause X=1:10; y = unifpd...

14 years ago | 1

Answered
Error using ==> mpower At least one operand must be scalar in mod operation
That code is working without any error and there's no line 26 in it

14 years ago | 0

Answered
Bode diagram by Simulink
<http://www.mathworks.com/support/solutions/en/data/1-15X2L/?product=SL&solution=1-15X2L Is there a Bode Plot block in Simulink?...

14 years ago | 0

Answered
filling a internal value of a matrix
I(6)=1; I(11)=1; or I([6 11])=1

14 years ago | 0

Answered
find indices of elements in terms of another vector
m=[134 135 137 138 140] n=[137 134] [c ia ib]=intersect(m,n); ia You just want ia

14 years ago | 0

Answered
How should I scratch this ticket?
function easymoneypj figure %create a new figure axis([1 6 1 6]) %set the axis min and max values set(gca,'Color',[0.5 0...

14 years ago | 4

Answered
merge by two identifiers
m1=[3948 2000 99 3948 2001 84 2456 1997 74 2456 1998 89 2456 1999 48 2456 2000 43 2456 2001 45 245...

14 years ago | 0

Answered
Having problem in placing a timer behind a togglebutton for audio recording!
%code to start recording and start record set(hObject,'enable','off') pause(2) set(hObject,'enable','on') ...

14 years ago | 1

| accepted

Answered
How to enable a button after x seconds in MATLAB GUI?
function testtimebutton figure t = timer('TimerFcn','nan;','StopFcn',@endtimer, 'startdelay',... 2,'ExecutionMode','...

14 years ago | 1

| accepted

Answered
Matlab: Vertical black line in bode diagram
That seems to appear only for discrete systems (c2d with Ts for sampling), I can't find documentation about it but it appears re...

14 years ago | 1

| accepted

Answered
How should I scratch this ticket?
figure axes('xlim',[0 7],'ylim',[0 10]) nr=zeros(1,6); for n=1:6 m=1; h=text(n,m,'1'); while m<=8 ...

14 years ago | 0

Answered
opening multiple figures with a single gui
Too many questions and nothing done so far, here's a simple GUI that adds the value you put in the textbox of GUI1 with the one ...

14 years ago | 0

Answered
how to plot x(t) = 0.9^k*cos(pi*k/5)*u(k) with simulink
Something is wrong with that equation, can you see the error? here's the MATLAB code, I leave the simulink for you to do, it's ...

14 years ago | 0

| accepted

Answered
Attempting to rearrange a 3x3 "magic" matrix
m=magic(3); m=[m(2:end,:);m(1,:)]; %works for any magic array size

14 years ago | 0

Answered
Where does output data go?
Maybe saving the figure with hgsave is what you want hgsave(gcf,'myfig') Load it later with hgload

14 years ago | 0

Answered
counter
Why repeating the question, you could and should edit your previous one. s=[0 1]; I=[0 0;1 1;1 0;0 1;1 0;0 0; 1 0; 1 1; 0 0...

14 years ago | 0

Answered
if else
s=[0 1]; I=[0 0;1 1;1 0;0 1;1 0;0 0; 1 0; 1 1; 0 0] counter=0; for n=1:size(I,1) if I(n,:)==s counter=counter+1; e...

14 years ago | 1

| accepted

Answered
Legend box impinges on legend text
Have you tried with <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig export_fig> ?

14 years ago | 0

Answered
How can I round off the coefficients of sys2 polynomial(num/den)?
Hi sadel, I see another hard question :) num=[1 0 0]; den=[1 0 0 1]; sys=tf(num,den); sysd=c2d(sys,0.3); sys2=d2c(sys...

14 years ago | 1

| accepted

Load more