已回答
datevec datenum conversion problem
Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.

9 years 前 | 2

| 已接受

已回答
Undefined function 'atand' for input arguments of type 'sym'. how to solve this error?
Tin, you need to convert the symbolic expressions. Use B1 = atand(double(m2(1,1))) B2 = atand(double(m2(1,2)))

9 years 前 | 0

| 已接受

已回答
Derivative a function according to another function
Alexis, I believe |functionalDerivative| is what you are looking for: t = sym('t'); y(t) = sym('y(t)'); T = 1/2*...

9 years 前 | 0

已回答
Plotting multiple data sets onto the same graph - Complex Study
John, add hold all or hold on before entering the for loop. Consequently, you should also add a hold off ...

10 years 前 | 0

已回答
v = sine wave, how to realize v^2 in simulink ?
Harry, you could use a multiply block where both inputs are connected to the voltage signal. Alternatively you can use a user...

10 years 前 | 1

已回答
Hints on - How to develope a simulink LEGO-EV3 block for the Glide Wheel - Angle Sensor (Mindsensors)?
Skovsgaard, we will shortly release a demo package on <http://www.mathworks.com/matlabcentral/fileexchange/?s_tid=gn_mlc_fx File...

10 years 前 | 0

| 已接受

已回答
plotting the solutions of a differential system with numerical ways
Yep, take a look: function my_EOM() IC = [-1 -1]; [t,qsol] = ode45(@EOM,[0 1],IC); plot(t,qsol) xlabel(...

10 years 前 | 0

| 已接受

已回答
initial guess in a loop
B, the initial guess is provided through the |newtraph| call. In other words, in order to execute/call this function you need to...

10 years 前 | 0

已回答
NOT ENOUGH INPUT ARGUMENTS
JK, your ode call says that the state vector has only three components [tv,Yv] = ode45(@ode,[0 1],[0 1 0]); whereas the o...

10 years 前 | 0

已回答
Why isn't my third body plotting?
Thomas, |r2| is equals zero, at least at the beginning of the loop. This causes |F23| and |Si3| to blow up. It looks as if ...

10 years 前 | 1

已回答
how to run a function again and again till a condition satisfies?
suchismita, see e.g., flag = false; cnt = 0; while ~flag cnt = cnt + 1; fprintf('Try no.: %d\n', cnt); i...

10 years 前 | 1

| 已接受

已回答
Plotting help, my graph turns very clunky
Japoe25, just add more data points. E.g., tv = 0:0.1:2*pi*n; % 0.1 is the spacing between data points

10 years 前 | 0

已回答
how can i connect a matlab signal to the simulink block ???
Harry, use the |<http://de.mathworks.com/help/simulink/slref/fromworkspace.html From Workspace>| block.

10 years 前 | 0

已回答
What is this Simulink Block With an arrow Sign on it?
Abid, this is a <https://www.youtube.com/watch?v=BQ4YV3nqTe0 masked subsystem>. Click on the down arrow in the lower right corne...

10 years 前 | 0

已回答
How do I eliminate error when plotting 2D system of DEs with sinusoidal functions?
Axel, check out |<http://de.mathworks.com/help/matlab/ref/odeset.html odeset>|. It allows you to set error tolerances. |ode45| s...

10 years 前 | 1

| 已接受

已回答
How to fill the area between two function on a plot with transparent colour?
It is. Try, e.g. d = 0.1; x = linspace(0,1,20); z = d*x.^2; fill([x flip(x)],[z zeros(size(z))],'k','LineStyle','non...

10 years 前 | 7

| 已接受

已回答
How to assign values to the variables using "dsolve" for solving first order ODE Equations simultaneously ?
AK, use the |subs| command. I also recommend differentiating between the symbolic variables and their numeric values, e.g. |A| v...

10 years 前 | 1

| 已接受

已回答
How does 'subs' in MATLAB work with negative large fractional number?
Rahul, the first result is correct as well. MATLAB simply outputted the result as a fraction. Use double(subs(A,{x y},{4 2e-...

10 years 前 | 1

| 已接受

已回答
Differentiation Equation- result of Derivative-Multi variable
Vu, see the example below. syms a(t) b(t) X t X = a*cos(b); dX = diff(X) dX(t) = cos(b(t))*diff(a(t), t) - sin(b(t)...

10 years 前 | 0

已回答
Differentiation Equation- result of Derivative
Vu, I believe what you are trying to do is this: syms y(x) % define y as a function of x symbolically L = ...

10 years 前 | 0

| 已接受

已回答
ode45 Matlab system of differential equations
Leah, use something like function ODE_test() [t,Y] = ode45(@ypsir_ODE,[0 10],[1 1 1]); plot(t,Y) function ypsir = yp...

10 years 前 | 0

| 已接受

已回答
How can I apply summation to one element of a matrix?
Omar, use A(3,3) = A(3,3) + num;

10 years 前 | 0

| 已接受

已回答
(AB)^T = (B^T*A^T) proof help
Chris, you could simply do >> A = [1 8 5 4 ; 5 4 1 2; 4 1 2 5; 4 4 1 5]; >> B = [ 7 8 4 5; 7 4 5 6; 7 4 1 2; 9 4 1 2]; >...

10 years 前 | 0

已回答
MATLAB : Problem with the size of my interface in GUI
Sarah, this should help: <http://de.mathworks.com/help/matlab/creating_guis/designing-for-cross-platform-compatibility.html> .

10 years 前 | 1

| 已接受

已回答
How to add text in plot?
delila, use the |text| command. See the <http://de.mathworks.com/help/matlab/ref/text.html documentation> for reference.

10 years 前 | 0

| 已接受

已回答
How to returns combined data from a single vector with no repetitions?
Not quite sure what you are trying to do. Do you mean: A = [1 2 2 3 3 3]; B = unique(A) B = 1 2 3

10 years 前 | 2

| 已接受

已回答
how do you plot signal like cos wt and 1/4 cycle time delayed version of signal on same axis
Amit, how about x = 0:0.01:2*pi; y = cos(x); yd = cos(x + pi/2); plot(x,y,x,yd)

10 years 前 | 0

已回答
How can I derive solution in matrix form?
Hello Junsoo, what relevance has |eqn| in computing |y| as a function of |x|? In general, you need to use the dot notation w...

10 years 前 | 0

已回答
'@' how to use this?
Victor, does this help? fh = @(x,y) x.*y.^2; fh(3,2) ans = 12 The example above shows a function handle for an a...

10 years 前 | 0

| 已接受

加载更多