Réponse apportée
Record simulation data to use it in an other simulation
I tested what you said, the scope draws the signal until it ends and continues to draw what appears to be a ramp (it keeps the v...

presque 15 ans il y a | 0

Réponse apportée
MATLAB exiting loop in function when using GUI
<http://www.mathworks.com/matlabcentral/fileexchange/29618-spspj I hope this can help you>

presque 15 ans il y a | 0

Réponse apportée
How to create a hyperlink to a file.?
<http://blogs.mathworks.com/desktop/2007/07/09/printing-hyperlinks-to-the-command-window/>

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Signal decode
Assuming you have the simbolic toolbox clc;clear; %clean up command window and variables!!!! s=tf('s') %make s tf type H ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Return to a for loop in the middle of code?
while 1 %your code %if the user presses cancel or something on the GUI that asks for input %break end

presque 15 ans il y a | 0

Réponse apportée
extracting the indices of minimum value in a vector, ignoring last value
a=R; %create a copy of R %in order to only find positive numbers we do the next line a(a<=0)=nan; %replace negative numbe...

presque 15 ans il y a | 0

Réponse apportée
load files containing part of a string in the file name and the load that file
try with this litle change: load(char(basf)) or this one: load(basf{:})

presque 15 ans il y a | 0

Réponse apportée
XOR operation
a=[0 0] %example input b=[a(1) a(2) xor(a(1),a(2))] %example output

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Version 2011 produces .FIG file unreadable by version 2006
Try exporting the GUI using GUIDE in matlab 2011b, go to File, Export, it produces just one m file that you can run without the ...

presque 15 ans il y a | 0

Réponse apportée
Determining the difference between two vectors
yet another way sum((td & rd | (~td & ~rd))==0) even more simple sum(~((td & rd | (~td & ~rd)))) even better sum(xor(...

presque 15 ans il y a | 1

Réponse apportée
Determining the difference between two vectors
numel(find(td~=rd))

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Plot 2 Graphs in GUI
You can select what's the current axes like this axes(h) %h is the handle for the axes, for example h=handles.axes1 %your ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Draw the minimal value from the plot
h=plot(0,0); %any plot will do ydata=get(h,'YData'); min(ydata) %draw a horizontal line with y that minimum line(get(...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Expanding Matrix
yet another way a=[1 2 3 4 5 6 7 8 9]; c=cell(size(a)); for b=1:numel(a) c{b}=ones(3,3)*a(b); end cell...

presque 15 ans il y a | 0

Réponse apportée
Pitch correction using fourier transform!
<http://www.mathworks.com/matlabcentral/fileexchange/26337-autotune-toy Autotune toy>

presque 15 ans il y a | 0

Réponse apportée
max value
find(x==max(x))

presque 15 ans il y a | 1

Réponse apportée
bar graph
remove the hold; and put hold on before your code Here's a better way to do the same thing h = waitbar(0,'Pleas...

presque 15 ans il y a | 0

Question


Using a function to create a global variable in the workspace
I'm making a GUI to replace one m file, the m file creates several variables in the workspace and now I want to do the same in t...

presque 15 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Need to plot multiple lines
hold on %put this code before your code

presque 15 ans il y a | 1

| A accepté

Réponse apportée
How to convert string to time?
str2num(strrep('04:55',':',''))

presque 15 ans il y a | 0

| A accepté

Réponse apportée
how to make a loop(for...end)
clc n={}; c=0; for b=2:100 n1=[]; for a=b:2:100 n1=[n1 a]; end c=c+1; n{c,1}=n1;...

presque 15 ans il y a | 0

Réponse apportée
Doubt simulink
The constant block can do it

presque 15 ans il y a | 1

| A accepté

Réponse apportée
how to make a loop(for...end)
n=[]; for a=1:2:100 n=[n a]; end

presque 15 ans il y a | 0

Réponse apportée
Get data from a matrix
if numel(x0)~=unique(x0) disp('x0 got duplicated elements') end if all(diff(x0)>0) disp('x0 is increasing') end <h...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How to change the title of a plot?
set(gcf,'NumberTitle','off') %don't show the figure number set(gcf,'Name','Whatever you want for the figure name') %select ...

presque 15 ans il y a | 2

| A accepté

Réponse apportée
Adding data in cells
C{end+1}=C{1:end}; This will add another cell to C that's the sum of the previous cells.

presque 15 ans il y a | 0

Réponse apportée
Lagrange Interpolation code
<http://numericalmethods.eng.usf.edu/topics/lagrange_method.html Here's a great resource to help you with your homework>

presque 15 ans il y a | 0

Réponse apportée
What does the colon operator (:) in MATLAB do?
1:2:15 creates a vector like this: [1,3,5,7,9,11,13,15] doc colon The ' puts the values in lines (rows) instead of columns....

presque 15 ans il y a | 3

| A accepté

Réponse apportée
How to load this .dat file into matlab?
<http://www.mathworks.com/matlabcentral/answers/3400-loading-ecg-dat-file-into-matlab You already posted the question and got an...

presque 15 ans il y a | 0

Réponse apportée
legend dynamically updated
clf clc hold all x=0:0.01:2*pi; b=zeros(5); for a=1:5 b(a)=plot(x,sin(a*x)); legend(b(1:a)) pause(...

presque 15 ans il y a | 1

| A accepté

Charger plus