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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

Respondida
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)'...

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 4

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 1

Respondida
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)...

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

Respondida
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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 1

Cargar más