답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
How do I plot a bitstream of [1,0,1,0] on Matlab?
a=[1 0 1 0] stem(a)

15년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 4

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 10

| 수락됨

답변 있음
UI Object for browse button
doc uiopen doc uigetfile

15년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 3

답변 있음
Load variable as
hello=load('test.mat','hi') hello.hi

15년 초과 전 | 1

답변 있음
How do I get pretty symbolic expressions in MATLAB using fancy?
syms x pretty(x^2)

15년 초과 전 | 1

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

15년 초과 전 | 0

답변 있음
Evaluate Sym values
try this way fun=inline('x^2') x0=2 fun(x0)

15년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
Artificial/simulated key press
http://www.mathworks.com/matlabcentral/newsreader/view_thread/243113

15년 초과 전 | 2

더 보기