답변 있음
How to do better commenting in Matlab script?
Tanmoy, (in R2015a) go to Preferences > Editor/Debugger > Display. In the Right-hand text limit section you can remove that line...

10년 초과 전 | 0

답변 있음
How can I use for loop twice
Hi Omkar, looks like the second |end| is misplaced. Als, I recommend using |ii| instead of |i| (and same for |j|) because it is ...

10년 초과 전 | 0

답변 있음
Symbolic derivative of function using diff()
Check out the <http://www.mathworks.com/matlabcentral/fileexchange/49796-euler-lagrange-tool-package Euler-Lagrange> tool on Fil...

10년 초과 전 | 0

답변 있음
Is it possible to plot lines with different colors using single plot command or some other way?
Muhammad, you could do something like: vertex = ['a','b','c','d','e','f']; ang = [0:pi/3:2*pi]; x = cos(ang); ...

10년 초과 전 | 0

| 수락됨

답변 있음
create time-changing graphic contour map
Samuel, use something like [X,Y,Z] = peaks(50); figure h = surf(X,Y,Z); axis manual for ii = 0:2...

10년 초과 전 | 0

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

10년 초과 전 | 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)))

10년 초과 전 | 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*...

10년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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년 초과 전 | 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(...

거의 11년 전 | 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...

거의 11년 전 | 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...

거의 11년 전 | 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 ...

거의 11년 전 | 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...

거의 11년 전 | 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

거의 11년 전 | 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.

거의 11년 전 | 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...

거의 11년 전 | 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...

거의 11년 전 | 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...

거의 11년 전 | 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...

거의 11년 전 | 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-...

거의 11년 전 | 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)...

거의 11년 전 | 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 = ...

거의 11년 전 | 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...

거의 11년 전 | 0

| 수락됨

답변 있음
How can I apply summation to one element of a matrix?
Omar, use A(3,3) = A(3,3) + num;

거의 11년 전 | 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]; >...

거의 11년 전 | 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> .

거의 11년 전 | 1

| 수락됨

더 보기