Réponse apportée
Cursor line
You might find useful tips inside the ginput function edit ginput %this function can be found inside ginput set(fig...

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 1

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

environ 15 ans il y a | 1

| A accepté

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 0

Réponse apportée
How do I plot a bitstream of [1,0,1,0] on Matlab?
a=[1 0 1 0] stem(a)

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 4

| A accepté

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

environ 15 ans il y a | 1

| A accepté

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

environ 15 ans il y a | 2

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 10

| A accepté

Réponse apportée
UI Object for browse button
doc uiopen doc uigetfile

environ 15 ans il y a | 2

| A accepté

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

environ 15 ans il y a | 1

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

environ 15 ans il y a | 1

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

environ 15 ans il y a | 3

Réponse apportée
Load variable as
hello=load('test.mat','hi') hello.hi

environ 15 ans il y a | 1

Réponse apportée
How do I get pretty symbolic expressions in MATLAB using fancy?
syms x pretty(x^2)

environ 15 ans il y a | 1

Réponse apportée
Line break in "question dialog"
questdlg(['Text on line 1' sprintf('\n') 'Text on line 2'])

environ 15 ans il y a | 0

Réponse apportée
Evaluate Sym values
try this way fun=inline('x^2') x0=2 fun(x0)

environ 15 ans il y a | 1

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

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 1

| A accepté

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

| A accepté

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

environ 15 ans il y a | 1

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

environ 15 ans il y a | 1

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

Charger plus