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

15 years ago | 0

Answered
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

15 years ago | 1

Answered
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, ...

15 years ago | 1

| accepted

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

15 years ago | 0

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

15 years ago | 0

| accepted

Answered
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'); ...

15 years ago | 0

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

15 years ago | 0

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 4

| accepted

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

15 years ago | 1

| accepted

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

15 years ago | 2

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

15 years ago | 0

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

15 years ago | 10

| accepted

Answered
UI Object for browse button
doc uiopen doc uigetfile

15 years ago | 2

| accepted

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

15 years ago | 1

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

15 years ago | 1

Answered
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

15 years ago | 3

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

15 years ago | 1

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

15 years ago | 1

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

| accepted

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

15 years ago | 1

| accepted

Answered
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]; ...

15 years ago | 0

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

15 years ago | 0

| accepted

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

15 years ago | 1

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

15 years ago | 1

Answered
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=[...

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 2

Load more