Réponse apportée
how to find corresponding values
Sagar, isn't T(locs_Fx) what you are looking for? These are the |T|-values corresponding to the peaks. Am I missing some...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to sort a matrix so that sorting a column will make changes to corresponding other columns??
Nathan, use the |<http://www.mathworks.de/de/help/matlab/ref/sortrows.html sortrows>| command.

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Two simulation outputs in single scope in simulink
Thayumanavan, use a |<http://www.mathworks.de/de/help/simulink/slref/mux.html mux>| block to combine the two signal into one whi...

plus de 12 ans il y a | 0

Réponse apportée
How to remove all rows with the same (specific) elements
Sean, you could use something like M(~any(M,2),:) = [];

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
What type of error is this
Without seeing the entire code, especially the part leading up to calling the ode solver, it's hard to say. The curly braces nee...

plus de 12 ans il y a | 0

Réponse apportée
Variable Amplitude sine wave
Margarita, that's because the |dt| value is too large. Try dt = 1e-6; instead and you should receive a proper sinusoidal...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
semilogy and log10 : To make display in the same way
Aneps, add ylim([0 2]) set(gca,... 'YTickLabel',{'10^0','10^1','10^2'},... 'YTick',[0 1 2]); after the second...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I jump from line 8 to line 2?
Hello Febin, you could use something like: exitFLAG = 0; while ~exitFLAG ... if ... exitFLAG = 1; else ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
INT will not evalaute integral
Dan, try instead int((1+fun^2)^5,x) or vpa(int((1+fun^2)^5,x),4) for better readability.

plus de 12 ans il y a | 1

Réponse apportée
how can i change the unit of x axis?
suchismita, try A = rand(1,5); a = 1:5; plot(a,A); set(gca,... 'XTickLabel',{'10%','20%','30%','40%','50%'},... ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How can I remove this File Handling error?
Febin, hard to say without any further information. You could use <http://www.mathworks.de/de/help/matlab/ref/fopen.html#btrnoom...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how can i get the inverse Laplace for the transfer function
Ahmed, use the symbolic approach, e.g., syms X S t F = 1; m = 2; C = 3; K = 4; X = F/(S*(m*S^2+C*S+K)); x = ilaplace(X...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to define my own signum function
Anthony, looking good. Put the code into a function and use |inputdlg| to allow inputting the numbers more easily. Alternatively...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
i want plot these three function but...
Ali, you need to use dot-operations... ub = - 1.654e-9*xb.^24 - 3.277e-9*xb.^23 since |xb| is a vector (notice the dots ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Plot at the same figure
Anya, how about adding a hold all after the first |plot| command?

plus de 12 ans il y a | 1

Réponse apportée
How to add a number of transfer function
Salim, you could simply do ... R = 0 for n = 1:N R = R + (2*T*C*s)/(n^2*pi^2*1) Cn = C/2 end Zs = R/(1+R*...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
waitbar, change displayed message
Dominika, I am not quite sure what exactly the behavior of the waitbar should be, but check out this code snippet: pause(1) ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how to judge some bytes is or not a-z,A-Z?
Roger, use regular expressions, something like str = 'a b{}c1230O /&" â' str = a b{}c1230O /&" â str_rep = regexprep(s...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
what should i do that matlab show me this polynomial equation as well-behaved function?
Ali, you could use something like <http://www.mathworks.de/de/help/symbolic/vpa.html |vpa|> (p,4) where the integer parame...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Solving nonlinear differential system from matlab website giving error
Devansh, use function myODE() options = odeset('RelTol',1e-4,'AbsTol',[1e-4 1e-4 1e-5]); a = 1; b = 2; c = 3; params ...

plus de 12 ans il y a | 0

Réponse apportée
How to store multiple time data in a matrix?
Febin, remove the empty spaces between the |datenum| commands and the round brackets: datenum('0000.01.00.08.30.00','yyyy.mm...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to create type of eye matrix
Fatema, use z_zero = blkdiag(z1(:)~=0,z2(:)~=0,z3(:)~=0)'

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I insert zeros into every other index of a column vector?
Mark, you could use A = [1000; 1000; 1000; 1000]; B = reshape([A'; zeros(size(A'))],[],1);

plus de 12 ans il y a | 6

| A accepté

Réponse apportée
set one color for few graphs in the same axis
Hello Dominika, replace the first |hold all| by a |hold on| and remove all other |hold| commands.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
The colors displayed in the legend do not match the plot colors.
Hello Priya, not sure how you have defined your |y|, so check out the code below: xCenter = 0; yCenter = 0; theta = 0 ...

plus de 12 ans il y a | 0

Réponse apportée
I am getting this error- "Vectors must be the same lengths.". Also please explain why its showing this error as I am plotting a funtion with 'x' as variable with defined vector.
Jayash, with the |diff| command you compute the difference between elements in a vector thereby *reducing the number of elements...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to make a three dimensional matrix into a two dimensional matrix?
TRAILOKYA, see this <http://www.mathworks.de/matlabcentral/answers/3643-efficiently-converting-a-3d-matrix-to-a-2d-matrix#answer...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
convert decimal number to ratio
Charly, use the |rat| command: rat(1/2/3) ans = 0 + 1/(6)

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
I am practicing in Matlab and Simulink. I want to deploy my codes (either Matlab or Simulink) into an hardware. May I know which microcontroller should i use and the procedure to do it. Thanks in advance.
There is a wealth of hardware platforms that is supported by MATLAB and/or Simulink. Depending on your specific application area...

plus de 12 ans il y a | 1

Réponse apportée
Need help to solve and plot implicit diode equation
Abhi, turn this into a zero-finding problem and use <http://www.mathworks.de/de/help/optim/ug/fsolve.html |fsolve|> to get the s...

plus de 12 ans il y a | 1

Charger plus