Respondida
Setting up Quality Control on dataset
doc findpeaks doc diff So you can find values above certain limits with findpeaks and build a second array with the diff...

más de 15 años hace | 0

Respondida
How can I get and set variables like PID parameters in a Simulink model from an mfile?
doc open_system doc load_system doc set_param doc sim doc save_system doc close_system

más de 15 años hace | 1

Respondida
Movements between .fig
Yes you can create several .fig and open others from the one you are using, just write the name of the .fig or .m on your code, ...

más de 15 años hace | 1

| aceptada

Respondida
Is there an analagous command to VB's 'with'?
You can use the set function to change object properties a=figure; %create a figure set(a,'name','Myfigure','color',[1 0...

más de 15 años hace | 0

Respondida
How to display values with formatting, converting numbers to strings.
You can build the multiline text, for example: {['P1 =' string1],['P2 =' string2],['P3 =' string3]}

más de 15 años hace | 0

| aceptada

Respondida
saving the output of diff function to a variable
%In your workspace do this MyVariable=diff('x^2'); %In your GUI do this MyVariable = evalin('base', 'MyVariable'); ...

más de 15 años hace | 0

Respondida
How do I plot a bitstream of [1,0,1,0] on Matlab?
a=[1 0 1 0] stem(a)

más de 15 años hace | 0

| aceptada

Respondida
How to generate a wave form
Just create the first period of the wave and use the repmat function to make the entire wave. Example: x=[0 1] y=repm...

más de 15 años hace | 0

| aceptada

Respondida
How do I create a button in a pop up that will allow a user to close all figures?
choice = questdlg('Would you like to close all figures', ... 'Close figures', ... 'Yes','No','No'); switch choice ...

más de 15 años hace | 4

| aceptada

Respondida
Result of strfind
a={[]} isempty(a{:}) %1 if a is empty, 0 otherwise another option numel(a{:}) %0 if a is empty, it returns the number o...

más de 15 años hace | 1

| aceptada

Respondida
Inserting a tab character into a string
char(9) instead of only one string doesn't seem to work, I also tried, sprintf('\t'), this way works: t1 = 'Control Chart...

más de 15 años hace | 2

Respondida
Declaring 'many' variables from work space into function workspace
This file does the reverse of what you want, just change it to fit your purpose http://www.mathworks.com/matlabcentral/fileexch...

más de 15 años hace | 0

Respondida
how can I change the current axes in a GUI?
Here's one example: axes(handles.axes2); %set the current axes to axes2 axes(h) makes existing axes h the current axes and ...

más de 15 años hace | 10

| aceptada

Respondida
UI Object for browse button
doc uiopen doc uigetfile

más de 15 años hace | 2

| aceptada

Respondida
How to obtain State space model response ?
[A,B,C,D]=tf2ss([1],[1 2]) %[1] or 1 is the same thing in this case t = 0:0.01:2; %do the simulation from 0 to 2 seconds wit...

más de 15 años hace | 1

Respondida
Calculating the amplitude of a sine wave in simulink
I found a way but there's a problem with it, try using the MinMax block, set it up to be Max and with 2 inputs, connect your sin...

más de 15 años hace | 1

Respondida
Which MATLAB function can remove the diagonal elements of a NxN matrix
b=triu(a) b=b(:,2:end) c=tril(a) c=c(:,1:end-1) b+c

más de 15 años hace | 3

Respondida
Load variable as
hello=load('test.mat','hi') hello.hi

más de 15 años hace | 1

Respondida
How do I get pretty symbolic expressions in MATLAB using fancy?
syms x pretty(x^2)

más de 15 años hace | 1

Respondida
Line break in "question dialog"
questdlg(['Text on line 1' sprintf('\n') 'Text on line 2'])

más de 15 años hace | 0

Respondida
Evaluate Sym values
try this way fun=inline('x^2') x0=2 fun(x0)

más de 15 años hace | 1

Respondida
Trouble reading an input file and plotting the file's data
Do the same thing in second code y = atmospheretable(:,1); x = atmospheretable(:,3); instead of y = filename(:,1); x = filenam...

más de 15 años hace | 0

| aceptada

Respondida
How to replace MATLAB icon from a figure window?
replace FIGUREHANDLE with your figure handle, test with gcf replace PATH with the path, name and extension of the icon for ...

más de 15 años hace | 1

| aceptada

Respondida
Can MATLAB draw graphs or networks with a regular structure?
a=[0 1 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 0]; ...

más de 15 años hace | 0

Respondida
How to send data to a block continuously, like through clock block in simulink.
here's a simple way, insert a Constant block in your model, start the simulation from 0 to inf Now in one m file put a loop wit...

más de 15 años hace | 0

| aceptada

Respondida
Question about adjacent matrix of a network using MATLAB
I wonder if it's this you want?! %Your matrix is in variable a hold on drawlines=1; %1 to connect points where a equals 1 mar...

más de 15 años hace | 1

Respondida
Question about adjacent matrix of a network using MATLAB
spy([0 1 0 1 1 0 1 1 0 0 1 0 1 0 0 0 0 0 1 0 ...

más de 15 años hace | 1

Respondida
Working with arrays in a for loop
lth1v=[];lth2v=[]; for .... Ith1=H-ceil(i./I); Ith2=I; lth1v=[lth1v lth1]; lth2v=[lth2v lth2]; end lth=[...

más de 15 años hace | 0

Respondida
Regarding graph display
If xy graph means scope you can use the mux block to join several input signals, they will appear with different colors on the s...

más de 15 años hace | 0

Respondida
Artificial/simulated key press
http://www.mathworks.com/matlabcentral/newsreader/view_thread/243113

más de 15 años hace | 2

Cargar más