답변 있음
Reshaping a matrix with different column sizes to a vector
Maryam, how about A = M'; A(A==0) = []

거의 11년 전 | 0

답변 있음
Is it possible to define a 'sym' as the derivative of another 'sym' ? If not, Is there a workaround for that in my script (differential equations)?
Edward, it is doable using the functionality of the Symbolic Math toolbox. A bit tricky though. One approach is to define the La...

거의 11년 전 | 1

답변 있음
How can I create a matrix out of a matrix?
Rengin, you could use, e.g. B = [(1:size(A,1))' A]; B(~any(B(:,2:end),2),:) = []

거의 11년 전 | 0

답변 있음
Hello, I put a value to the variable >> i=1 i = 1 After that, I tried the following thing also. But it returns nothing. why does this happen so? >> k=char(i) k =  >> Please help me. And please describe the reason for this problem and s
Joshy, you are trying to convert an integer to its corresponding ASCII character. If you check out an ASCII table you'll notice ...

거의 11년 전 | 1

답변 있음
Is the 'findpeaks' function available only in 2014b ?
Harish, |findpeaks| is part of the Signal Processing Toolbox, which you might not have licensed/installed. To check if you do en...

거의 11년 전 | 0

| 수락됨

답변 있음
How do I set a parameter in a symbolic expression?
Stefan, use syms a(b) a = 3*b; a2 = subs(a,b,2)

거의 11년 전 | 0

답변 있음
I cannot install Matlab
Hello André, please contact our <http://www.mathworks.com/support/contact_us/?s_tid=sp_ban_cs Install Support>. On the Install S...

거의 11년 전 | 0

답변 있음
How can i solve this problem 'sawtooth' for input arguments of type 'double'?
Marti, the code looks fine. What happens if you execute a clear and then run your code again? Is this code part of a scr...

대략 11년 전 | 0

답변 있음
Are there gauges for Matlab?
Ralf, there are. Check out the new app designer on <http://www.mathworks.com/matlabcentral/fileexchange/48142-app-designer File ...

대략 11년 전 | 0

| 수락됨

답변 있음
Is there a detailed description of the "Line Tracking"-Model for Lego Mindstorms with Simulink?
Julius, have you checked out the NXT manual <http://de.mathworks.com/programs/resource-portals/project-based-learning/index.html...

대략 11년 전 | 0

| 수락됨

답변 있음
fzero function troubles/errors
Bradley, use sol = fzero(@(x) exp(x+1)-cos(5*x),10) sol = -26.075219024797857

대략 11년 전 | 0

| 수락됨

답변 있음
How can I plot this exponential decaying sinusoid
Nabin, how about % value of a and b: % ethyl alcohol 0.246 0.806 % water 0.250 1.000 % Oil 0.643 1.213 F = 1; x ...

대략 11년 전 | 0

| 수락됨

답변 있음
exponential decay function y = exp*(-Tau.time)
Hi Nabin, to help with readability I have slightly re-formatted the code and re-named some variables: tau1 = 1; tau2 = 2; ...

대략 11년 전 | 3

| 수락됨

답변 있음
why don't these two transfer function models produce same open loop results?
John, the only thing I can think of is the step time in the Simulink Step block. It's set by default to 1. Open the Step block, ...

대략 11년 전 | 0

답변 있음
How to simplify two symbolic equations and ensure selected variables are not contained in the equation?
FallGuy, use instead syms x0 h0 [x0 h0] = solve('(a/2)*(0-x0)^2-h0=0', '(a/2)*(L-x0)^2-h0-h=0',x0,h0) x0 = -(- a*L^2 +...

대략 11년 전 | 0

답변 있음
Does Matlab R2014b include Simulink?
Hello Peter, MATLAB and Simulink are two separate products. Your command window message suggests that you do not have Simulink l...

대략 11년 전 | 0

답변 있음
get same column of matrix automatically.
Heo, how about simply A = [A zeros(1,10-numel(A))] for example.

대략 11년 전 | 0

답변 있음
I don't get the lego mindstorms ev3 to install
Michelle, the EV3 support package is only available for Windows and Linux, see <http://www.mathworks.com/hardware-support/lego-m...

대략 11년 전 | 0

답변 있음
How can i get the same solution as mupad with symbolic math?
Hyunsuk, what is the correct result? When I run your code I get solx_n = vpa(solx) solx_n = -0.830571156789375139371...

대략 11년 전 | 0

| 수락됨

답변 있음
how to gain minimum value
Hamid you could use r_min = r(min(find(r*200>246==1))) r_min = 1.3000

대략 11년 전 | 1

| 수락됨

답변 있음
Creating a code based on a figure?
Stavo, one thing you can do is run your code and then edit the plot manually by choosing "Show Plot Tools...", the symbol in the...

대략 11년 전 | 1

답변 있음
This statement is not inside any function. (It follows the END that terminates the definition of the function "trap_wfp610".)
Kevin, it's hard to tell what exactly you would like to do and what is going wrong. One thing you could do is do both computatio...

대략 11년 전 | 0

| 수락됨

답변 있음
totally incorrect calculation of matlab
Jaein, use instead [x,y] = meshgrid(0:1:20); quiver(x,y,x.^3-3*x.*y,y.^3-3*x.^2.*y) % note the dot-notation

대략 11년 전 | 0

| 수락됨

답변 있음
How to get result after loop.
Zahid, you could use instead result_Value(:,i) = [minValb; minValc; minVald] result_z(:,i) = [z1;z2;z3] which sav...

대략 11년 전 | 0

| 수락됨

답변 있음
Solving equations that are first parametrically solved
Farzad, you want to use the |subs| command syms a b R C = a^2 + 2 * b + 1/R; C_num = subs(C,{a,b,R},{1,2,3}) C_num = ...

대략 11년 전 | 1

| 수락됨

답변 있음
How do you solve a nonlinear ODE with Matlab using the finite difference approach?
Yianni, unless you want/have to re-invent the wheel use one of MATLAB's integrators, e.g., |ode45| function test_ode() m ...

대략 11년 전 | 0

답변 있음
I need to plot B = (cos(X))^m; for m=1-20 and X at viewing angles 10degrees, 20 degrees, and 45 degrees. I am new to matlab and can't get the code right.
You mean X = [10 20 45]'; m = [1:20]; B = bsxfun(@power, cosd(X), m)

대략 11년 전 | 0

| 수락됨

답변 있음
about use function ode45
Mary, use function my_ode() [T,Z] = ode45(@func,[0 2],1); % use correct name of ODE function plot(T,Z) end functi...

대략 11년 전 | 0

답변 있음
Introducing an if statement into time varying sin wave
Kelly, use something like Co = 5000/60; Cc = 72; % number of cardiac cycles per minute Tc = 60/Cc; % ...

대략 11년 전 | 0

답변 있음
How do I enter this Transfer Function into Simulink?
Mark, you can either multiply out numerator and denominator and then use one "Transfer Fcn" block from the "Continuous" library ...

대략 11년 전 | 0

| 수락됨

더 보기