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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 2

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 2

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 2

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 4

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 1

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 1

Mehr laden