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

alrededor de 15 años hace | 3

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 5

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

Respondida
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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 8

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 7

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

Respondida
How to get data from figures produced by errorbars?
%example data X = 0:pi/10:pi; Y = sin(X); E = std(Y)*ones(size(X)); errorbar(X,Y,E) %get data xData = g...

alrededor de 15 años hace | 1

| aceptada

Cargar más