Answered
select more choices in listbox GUI
The Min and Max properties control the selection mode: If Max-Min>1, then multiple selection is allowed. If Max-Min<=1, then onl...

15 years ago | 0

| accepted

Answered
open file in notepad via gui
Example: !notepad C:\Program Files\MyFolder\textFile.txt Just replace that path with your own.

15 years ago | 3

| accepted

Answered
Important System Notice to Answer Users! (Revsion 3)
Thanks for letting us know about the problem, it was a nightmare seeing errors instead of MATLAB Answers.

15 years ago | 0

Answered
Help about Building GUI
Have a look at the nice examples: <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples 41 Comple...

15 years ago | 1

| accepted

Answered
Finding X Y coordinates from surface plot
[X,Y,Z] = peaks; I=find(Z==max(max(Z))); X(I); %x values corresponding to the points where Z is maximum Y(I); %y values ...

15 years ago | 0

| accepted

Answered
Optimization Simple search
m=[9 3 2 7 1 8 ] %another way to find minimum value, using unique u=unique(m); u(1) %another way to find minimum v...

15 years ago | 0

Answered
getting the axis position correctly
The position remains the same, don't believe me? go to Tools and press Edit Plot, now click on the axis :) One thing that do ch...

15 years ago | 0

Answered
Flow charts code connectors
Maybe this will work %start and initialize values for D=D0:DD:Dmax %it stops when D>Dmax %in W B=Bi;S=Si; ...

15 years ago | 0

| accepted

Answered
Two X axis for a same Y axis
<http://www.mathworks.com/matlabcentral/fileexchange/317-plotxx-m plotxx>

15 years ago | 0

Answered
How to get Handle of an list's element selected
In case you are referring to the List Box this is what I found in the documentation: When the list box Callback callback is tri...

15 years ago | 5

Answered
periodic functions
amp=1; %amplitude of the wave xp1=0.5; %this is your x1 value r=0.1;n=3; %distance between points (r) and number of period...

15 years ago | 0

Answered
matlab and iphone related question.
<http://www.mathworks.com/mobile/faq.html What are the functional limitations? MATLAB Mobile Version does not support: Tools...

15 years ago | 1

Answered
S-function Runtime-evaluation of parameters
On the S-Function try this: eml.extrinsic('evalin'); var=evalin('base','var'); %var is a variable on the workspace

15 years ago | 0

Answered
sequential files(write, read ,append)?
Your code had some mistakes, here's the fixed code %create the file and write values to it fid1=fopen('hw9.txt'...

15 years ago | 0

| accepted

Answered
Custom Transfer Function
That's the transfer function of the <http://www.mathworks.com/help/toolbox/simulink/slref/zeroorderhold.html Zero-Order Hold> si...

15 years ago | 0

| accepted

Answered
How to implement a 'speed limit' for GUI button press?
Use a timer (execution mode 'singleShot') in the slider callback: # Check if the timer is running, if not start it and run th...

15 years ago | 1

| accepted

Answered
How can callbacks from a "Main GUI" access data from the controls of a "User Settings" GUI?
<http://blogs.mathworks.com/videos/2010/12/10/how-to-save-and-restore-state-of-a-gui-in-matlab/ How to save and restore state of...

15 years ago | 1

| accepted

Answered
Problem with my Code?
There's no Newton function on MATLAB current path or any other path that MATLAB is aware, you get the same error for whatever...

15 years ago | 0

| accepted

Answered
discontinuity missing.
Connected lines x=-1:0.01:1; y(x>=-1 & x<0)=-1-x(x>=-1 & x<0); y(x>=0 & x<=1)=1-x(x>=0 & x<=1); plot(x,y) Alternat...

15 years ago | 1

| accepted

Answered
How to export data from MATLAB to machine language
deploytool %it will only work if you have the required toolboxes

15 years ago | 0

Answered
From string to a variable
assignin('base',char(array(1)),5) assignin('base',char(array(2)),7) assignin('base',char(array(3)),54)

15 years ago | 0

Answered
Matrix visualisation with coloured box and numbers
Following Matts answer here's one simple example M=[1,2,3;4,3,2;1,4,2] imagesc(M) for a=1:3 for b=1:3 ...

15 years ago | 0

Answered
extracting non-zero elements in a matrix or an array
a=[1 0 2;3 4 5;0 7 8] a(a~=0) %get all the non zero values diag(a) %elements on the diagonal s1=sum(diag(a)) %sum of ...

15 years ago | 8

| accepted

Answered
Find maximum of exponential equation created with CFTOOL?
y(end) %this should give you the maximum value of y max(y) %another way

15 years ago | 0

Answered
Running same code in multiple instances of matlab
You just need to learn more about random number generators, take a look at this <http://blogs.mathworks.com/loren/2008/11/05/...

15 years ago | 1

| accepted

Answered
Multiple Inputs Scope in Simunk
The Scopes already support multiple inputs, just go to the Scope parameters and choose the number of axes (double click on the s...

15 years ago | 7

| accepted

Answered
pwm signal generation
f=1e3;a0=0;AmpSin=5; %sample wave values t0=0;tf=0.01;Ts=1e-6; %time vector and resolution v=0;AmpPwm=1; %Pwm options, inc...

15 years ago | 0

| accepted

Answered
Generating array of data using for-end looping
result1=zeros(1,100);p=1; %create a vector to save the values and the index for i=1:20 j(i)=10^((i-1)/2); for ...

15 years ago | 0

| accepted

Answered
what do u mean by the error message "index exceeds matrix dimensions" ?
diff1=0 causes that problem because it turns the array in just a double value (size = [1 1]), do you mean diff1(x1,y1)=0 instead...

15 years ago | 0

| accepted

Answered
get a input function in GUI
a=get(handles.text1,'String'); %get the string from the textbox,example %a='t^2'; b=vectorize(a); %put dots before operation...

15 years ago | 1

Load more