Réponse apportée
How to find time at maximum amplitude in a signal
maxvol=max(x(:,2)) timemaxvol=x((find(x(:,2)==maxvol)),1)

environ 15 ans il y a | 0

Réponse apportée
How to to write a code to my n*1 matrix into differnt submatrices?
a=[164 165 166 167 175 176 177 189 190 195 196]'; b=diff(a); %find differences idx=find(b>1); %find their indexes idx=[i...

environ 15 ans il y a | 2

Réponse apportée
How can I implement a dialog GUI in MATLAB?
Yes you can, how? 1-create a figure 2-create two buttons 3-create text box for the questions and info 4-create edit box...

environ 15 ans il y a | 0

Réponse apportée
How to sample and process signals of a given length in Simulink
To sample the signals use Weighted Sample Time block from simulink, there might be more options inside the signal processing lib...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Dimension mismatch error while using FMINSEARCH
funfucn is returning more lines than you have in the variable fv

environ 15 ans il y a | 0

Réponse apportée
Implementing your own function in a simulink model
Look at examples like the penddemo, inside the animation subsystem (look under mask) there's one s-function block that interacts...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
"for" loops and branching help
t=-9:0.5:9; y=0*t; y(t<0)=3*t(t<0).^2+5; y(t>=0)=-3*t(t>=0).^2+5; Here's another way t=-9:0.5:9; y=sign(t).*...

environ 15 ans il y a | 1

Réponse apportée
FEVAL error in implementing Newton's method.
<http://numericalmethods.eng.usf.edu/topics/newton_raphson.html Here's one awesome resource you should view>, it helped me a lot...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
numerical answer required for sumation
double(sin(311/250)-sin(311/125)-sin(311/625)-sin(622/625)-sin(933/625)+sin(311/1250)-sin(1244/625)+sin(933/1250)-sin(1866/625...

environ 15 ans il y a | 1

Réponse apportée
numerical answer required for sumation
eval('sin(311/250)-sin(311/125)-sin(311/625)-sin(622/625)-sin(933/625)+sin(311/1250)-sin(1244/625)+sin(933/1250)-sin(1866/625)...

environ 15 ans il y a | 0

Réponse apportée
How do I create and plot a pulse train from an existing pulse not using the pulse train function?
One of the correct ways to define the pulse and the train is: tpulse = 0:1/fs:100e-6; %100 micro seconds twin= 0:1/fs: ...

environ 15 ans il y a | 0

Réponse apportée
How do I use one IF-END instead of nested IF-ENDs?
w=(x*y*z)^(~((x<y) & (z<10))+1)

environ 15 ans il y a | 0

Réponse apportée
How can i variate the index for the matrix input by the user in command window
n=input('Please input the size (n) of the matrix:'); A=zeros(n,n) for idx=1:n [row,col]=ind2sub(size(A),idx); A(id...

environ 15 ans il y a | 0

Réponse apportée
How do I calculate the electromagnetic field radiated by lightning using MATLAB?
<http://www.mathworks.com/matlabcentral/fileexchange/22949-electromagnetic-field-demo Take a look at Electromagnetic Field Demo>...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Round Recognition
Take a good look at <http://blogs.mathworks.com/steve/ Steve's blog>, it's full of M&Ms :) and image processing stuff.

environ 15 ans il y a | 1

Réponse apportée
i can put image
e=input('enter the name = ','s') b=imread(e); image(b); You were using input to save numeric data to e and instead of the...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How can I get the data selected by the user with the datacursor in a Gui?
function testbdown fig=figure; ax=axes; set(ax,'ButtonDownFcn',@detbut); function detbut(a,b) cp=get(a,'Curr...

environ 15 ans il y a | 0

Réponse apportée
extract number from image
http://www.mathworks.com/matlabcentral/fileexchange/18169-optical-character-recognition-ocr

environ 15 ans il y a | 0

Réponse apportée
Matrix Division - how does it work?
syms a b c x y z [a b c; 1 1 1] / [x y z; 1 1 1]; ans = [ Inf, Inf] [ 0, 1] syms a b c d [a b; 1 1] / [c d...

environ 15 ans il y a | 0

Réponse apportée
Stopping timer object
If you have the timer handle stop(timerhandle) if not you can try stop(timerfind) or stop(timerfindall) ...

environ 15 ans il y a | 1

Réponse apportée
Switching between 3 inputs in Simulink
Multiport Switch

environ 15 ans il y a | 2

| A accepté

Réponse apportée
How to create a 3-D ternary plot
surf surfc? [X,Y,Z] = peaks(30); surfc(X,Y,Z) colormap hsv axis([-3 3 -3 3 -10 5])

environ 15 ans il y a | 0

Réponse apportée
rotation about a point
just for fun theta=0; load george clf;hold on plot(x,y); axis([-2 2 -2 2]); title('select rotation point'); [x0,y...

environ 15 ans il y a | 0

Réponse apportée
Matrix Division - how does it work?
The documentation is very good in that part doc mldivide If you have the symbolic toolbox syms a b c d e f g h m1=[a b ...

environ 15 ans il y a | 0

Réponse apportée
How to add one digit to another digits?
strcat('1234','5') you can convert any number to string with num2str or other similar function strcat('1234',num2str(5)) b=5;...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Help applying band pass filter to frequency domain data
%make some test data f=4e9+5e9*rand(4500,1); m=rand(4500,1); ph=rand(4500,1); data=[f m ph]; fc=5e9; %cut frequ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
MATLAB GUI uitable
Simple example Data = {1, 2 3,4} Data(:,1) %first column Data(1,:) %first row Data(1,1) %just the first ce...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Select a point in Scope Graph
Here's one way I just learned using the simplot function, example vdp set_param(gcs, 'SaveOutput', 'on') set_param(g...

environ 15 ans il y a | 1

Réponse apportée
Bode plot from WAV
Maybe something similar to this load handel %this will load a sample music file %y is the amplitude and Fs the Sampling fre...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
adding tics to the colorbar
Here's a general example on how to do your own ticks axes %create a figure with one axe set(gca,'XLim',[0 100]) %change ...

environ 15 ans il y a | 0

Charger plus