Answered
GUI - text instead of numbers
function testpj() hf=figure; h1 = uicontrol(hf,'Style','edit',... 'string','',... 'Position',[30 20 150 30]'...

14 years ago | 0

Answered
How can I turn s/s to 1?
prompt={'Proportional Coefficient Input','Integral Coefficient Input','Derivative Coefficient Input'}; defans={'1','0','0'}; an...

14 years ago | 1

| accepted

Answered
choosing random vectors for 3 VAriables
I don't understand 100% of your question but I will try x1=randperm(10e6); %generates a permutation of values from 1 to 10...

14 years ago | 2

| accepted

Answered
output of code words
num2str([1 0 1 .0116]') %this just shows the values in string format Remove the ' if you want the...

14 years ago | 0

| accepted

Answered
how to limit one axis in plot function
ylim([-1.5 1.5]) or set(gca,'ylim',[-1.5 1.5])

14 years ago | 2

| accepted

Answered
output representation
w= [0 0 1 0 1 1 1 0 0 0 1 1] y= [2.04 0.19 5.26 4.80] z=[w' [y nan(1,numel(w)-numel(y))]'] %if w and y got the same num...

14 years ago | 0

| accepted

Answered
What is wrong with my exit button?
I tried your code and it works without any of the problems you describe, they might be caused by other code. Just two small sug...

14 years ago | 1

| accepted

Answered
string of the button edit
'edit' – Editable text fields enable you to enter or modify text values. Use editable text when you want free text as input. _*T...

14 years ago | 0

| accepted

Answered
Approximately equal or egual to +- error
Adapt this code to your purpose: v=[1.1 2.2 3.3]' %vector 1 u=[1.2 2.6 6]' %vector 2 e=0.1 %error ...

14 years ago | 2

Answered
How can I reach the code of the default print tool?
doc printdlg

14 years ago | 1

| accepted

Answered
FIR Filters with GUI
<http://www.mathworks.com/matlabcentral/fileexchange/24654-real-time-filters-gui Real time filters: GUI> or other similiar appli...

14 years ago | 0

| accepted

Answered
erase and edit freehand in gui
Use the delete key from your keyboard after clicking on the shape line, for example: figure, imshow('pout.tif'); h = imf...

14 years ago | 0

Answered
Where can I find which "common functions" symvar identify?
edit symvar Look at the comment inside the symvar.m that says: _* Find opening parentheses and check to make sure they d...

14 years ago | 1

| accepted

Answered
how can I convert a string to an expression which "symvar" can search for identifiers?
insertfunction='cos(pi*x - beta1)' symvar(insertfunction)

14 years ago | 1

| accepted

Answered
How does symvar work?
symvar gives you the symbolic variables inside one expression, you say that t is symbolic so the expression symvar('cos(2*pi*t)'...

14 years ago | 1

| accepted

Answered
GUI--how to program two sliders to be dependent on each other
Suppose your are using GUIDE, on the slider2 callback set(handles.slider1,'value',get(handles.slider2,'value')/.156) if not ...

14 years ago | 4

| accepted

Answered
passing values between guis?
doc setappdata %use h=0 to store the data in the base workspace

14 years ago | 0

Answered
Changing font size using xlabel
h=xlabel('mylabel') %or h=get(gca,'xlabel') set(h, 'FontSize', 30) set(h,'FontWeight','bold') %bold font

14 years ago | 0

Answered
Using uicontrol in a figure
The grid command like you have in the callback only applies to the current axes so you have to do it for all axes, use the grid ...

14 years ago | 0

Answered
Symbolic Math Toolbox VS MuPAD: example in advance of the first?
syms x simplify(exp(log10(x)))

14 years ago | 0

Answered
Newbie question: adding m-files
add the path to your m-files doc addpath

14 years ago | 1

Answered
Load a variable in workspace from a Function
assignin('base', 'VarNameYouWishAtWorkspace', VarNameAtYourFunction)

14 years ago | 1

Answered
Matrix manipulations
You can ensure that your array has the proper dimensions before doing the calculation [sr,sc]=size(CgvB); if (sr>0 & sc==2)...

14 years ago | 0

| accepted

Answered
How do I create a set of variables from specific coordinate values in a square matrix?
<http://www.mathworks.com/matlabcentral/answers/143-how-do-i-make-a-series-of-variables-a1-a2-a3-a10 How do I make a series of v...

14 years ago | 0

Answered
How can I make a check box toggle when plot has different type?
ErrorFlag=1; %the code inside the while is executed while(ErrorFlag) try %replace this line with your plot comman...

14 years ago | 1

| accepted

Answered
stop timer
Your timer function @axes1.handles is completly invalid, it's no function. Also the way you start and stop the timer isn't corr...

14 years ago | 0

| accepted

Answered
Error invalid handle after PLOT when I change ratiobutton
You forgot to update the handles structure in the plot_callback, add the code in the end of the plot_callback: guidata(hObjec...

14 years ago | 0

Answered
equivalent discrete system
use the c2d function from the Control System Toolbox Example from <http://www.library.cmu.edu/ctms/ctms/digital/digital.htm ctm...

14 years ago | 0

| accepted

Answered
Trying to make a specific transfer functino block in Simulink
Transfer function block with these parameters: num=12.5 den=[1 1 6.25] Connected to a Transport Delay block

14 years ago | 1

| accepted

Answered
Creating an ordered list of vectors
v=perms(1:4); Now instead of having v1,v2... you have v(1),v(2)...

14 years ago | 1

Load more