photo

Paul


Technische Universiteit Eindhoven

Attivo dal 2014

Followers: 0   Following: 0

Messaggio

Statistica

MATLAB Answers

1 Domanda
66 Risposte

RANK
591
of 301.307

REPUTAZIONE
133

CONTRIBUTI
1 Domanda
66 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.0%

VOTI RICEVUTI
13

RANK
 of 21.235

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 173.928

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

  • First Review
  • 3 Month Streak
  • Knowledgeable Level 4
  • First Answer

Visualizza badge

Feeds

Visto da

Domanda


Bug when using data cursor with subplots having (some) equal X and Y values
Im using R2014b. When i have a figure with multiple subplots and I use the data cursor I get the following bug: If I click on a ...

circa 10 anni fa | 2 risposte | 1

2

risposte

Risposto
Plots for second order control system in the same graph
Two things are wrong. One is the parenthesis before .x which should be on the end. The second is the acos(x) which should be aco...

quasi 12 anni fa | 0

| accettato

Risposto
How can i write a program; to find ultimate frequency of the transfer function
I guess you want the crossover frequency: [Gm,Pm,Wgm,Wpm] = margin(sys) Wgm is the crossover frequency in rad/s. sys is...

quasi 12 anni fa | 0

Risposto
How to insert Matrix?!
Yes you can do that, why don't you just do test it? You can add \n to put the input on a new line. L=input('Please insert m...

circa 12 anni fa | 0

| accettato

Risposto
How to change a parameter during a plot?
x = 0:0.01:2; M = 1; R = 2; LR = 0.25; RL = (0.5 / LR) * R; RR = (0.5 / (1 - LR)) * R; xL = x(x<M); x...

circa 12 anni fa | 1

| accettato

Risposto
How to solve a sparse matrix efficiently?
Did you try defining A and b as sparse? So: A=sparse(A); b=sparse(b); x=A\b;

circa 12 anni fa | 0

Risposto
Logical Indexing problem with vector lengths
P(M>grid(P)) = P+1; should be P(M>grid(P)) = P(M>grid(P))+1; At least I guess that's what you want to do.

circa 12 anni fa | 1

| accettato

Risposto
How can I generate a noise with a required sensitivily power ? i.e. -174 dBm
See http://www.mathworks.com/help/comm/ref/awgn.html or http://www.mathworks.com/help/comm/ref/wgn.html

circa 12 anni fa | 0

Risposto
How can I append multiple elements to the end of a vector?
B=[A(A<6), A(A>=6)] or ind=(A>=6); B=[A(~ind), A(ind)] or if you want to keep the original elements of A and ju...

circa 12 anni fa | 0

| accettato

Risposto
Problem Integrating sin(2*x)
The integral is: sin(x)^2 + C but Matlab just doesn't show the constant. How do you get the -1/2? Because if you different...

circa 12 anni fa | 1

| accettato

Risposto
transfer function of sqrt of s
This is not possible since it's an invalid transfer function. You should be able to write the tf in terms of s^3, s^2, s etc, wh...

circa 12 anni fa | 0

Risposto
plot multiple points in multiple colors
col=1:numel(peaks); scatter(freq_s(locs),peaks,[],col) You can specify the size of the circles where [] is. Im not s...

circa 12 anni fa | 0

Risposto
How do I add initial conditions in dsolve while solving a system of ODEs in matrix form?
S = dsolve(diff(Y) == A*Y + B, Y(0)==[0;0]); see: doc dsolve

circa 12 anni fa | 0

| accettato

Risposto
How to introduce a random variable in ode45?
Add rng('shuffle') before calling normrnd.

circa 12 anni fa | 0

| accettato

Risposto
Using a vector of indices to add values to a matrix
xs = N(:,1); ys = N(:,2); val = N(:,3); siz = size(P); ind = sub2ind(siz,ys,xs); P(ind) = P(ind)+val.';

circa 12 anni fa | 0

| accettato

Risposto
Solving a quartic with matlab
Matlab will solve up to a 3rd order polynomial by default. To get an explicit result you have to specify a max degree, in your c...

circa 12 anni fa | 0

Risposto
Subtracting two matrices yields a scalar in MATLAB
Are you trying to only substract some of the elements? Else you can simply do: A-B. Also i guess you mean the result is a vecto...

circa 12 anni fa | 0

| accettato

Risposto
Please help me find 6 unknown parameter from engineering mechanic
sol=solve(-T1*cos(alfa)+T2*cos(beta)==0, -50+T1*sin(alfa)+T2*sin(beta) ==0,- T2*cos(beta)+T3*cos(gramma) ==0,-100+T2*sin(beta)...

circa 12 anni fa | 0

Risposto
Not enough input arguments when trying to plot function.
ezplot is for expressions with a symbolic variable. You have a function file with a function in it which returns a value for eve...

circa 12 anni fa | 0

| accettato

Risposto
"Not Enough Arguments" Error in ode23 - code is perfect as far as I know...
Put this in an m-file: function kinetics=examquestion1(t,Y) kinetics=zeros(3,1); kinetics(1)=-Y(1)*Y(2)+0.1*Y...

circa 12 anni fa | 0

| accettato

Risposto
I continue to receive an error message when I try to use fsolve. Can anyone tell me what I'm doing wrong? (I'm using MATLAB R2012a)
change all x(1), y(1) etc to x1,y1 etc. Also put: x1 = 15600; y1 = 7540; z1 = 20140; x2 = 18760; y2 = 2750; z2 = 186...

circa 12 anni fa | 0

Risposto
How Can I create a time varying equation in Simulink?
Use a clock block for t. The other operations can be done with add, product, gain and math function block for exp.

circa 12 anni fa | 0

| accettato

Risposto
Problem with fill and latex interpreter?
I suggest using this excellent tool for exporting figures: http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig...

circa 12 anni fa | 0

Risposto
How can I color the area inside the outers points?
x=rand(5,1); y=rand(5,1); center_x=mean(x); center_y=mean(y); [th,rho] = cart2pol(x-center_x,y-center_y); ...

circa 12 anni fa | 1

| accettato

Risposto
How extract value form an array?
matrix(ind) Since ind contains two indices in this case, you can do: matrix(ind(1)) to find the value corresponding...

circa 12 anni fa | 0

Risposto
Gauss Seidel method in matlab to find the roots
First of all 0,01 should be 0.01. Secondly, i=1; should be outside the while loop, else the value of i is reset every loop. I al...

circa 12 anni fa | 0

Risposto
Help with 'find' function
[val,ind]=min(abs(X-A)) Where val is the distance and ind the index .

circa 12 anni fa | 1

| accettato

Risposto
lsline shifts the yaxis upwards
add: axis([-3 6 -3 6],'square') after your plot command.

circa 12 anni fa | 0

| accettato

Risposto
Solve 2nd order ODE with discrete time terms
Assuming some values for the constants, t1 is your t = DATA(:,1) and e1 is your e = DATA(:,2): function dx = myFUN(t,x) ...

circa 12 anni fa | 0

| accettato

Carica altro