Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

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

presque 15 ans il y a | 3

| A accepté

Réponse apportée
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.

presque 15 ans il y a | 0

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

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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; ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Two X axis for a same Y axis
<http://www.mathworks.com/matlabcentral/fileexchange/317-plotxx-m plotxx>

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 5

Réponse apportée
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...

presque 15 ans il y a | 0

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

presque 15 ans il y a | 1

Réponse apportée
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

presque 15 ans il y a | 0

Réponse apportée
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'...

presque 15 ans il y a | 0

| A accepté

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

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
How to export data from MATLAB to machine language
deploytool %it will only work if you have the required toolboxes

presque 15 ans il y a | 0

Réponse apportée
From string to a variable
assignin('base',char(array(1)),5) assignin('base',char(array(2)),7) assignin('base',char(array(3)),54)

presque 15 ans il y a | 0

Réponse apportée
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 ...

presque 15 ans il y a | 0

Réponse apportée
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 ...

presque 15 ans il y a | 8

| A accepté

Réponse apportée
Find maximum of exponential equation created with CFTOOL?
y(end) %this should give you the maximum value of y max(y) %another way

presque 15 ans il y a | 0

Réponse apportée
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/...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 7

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

Charger plus