Answered
what is the problem in thecode??
[t,x]=ode45(@Motion_Function,[t0,tf],x0,options); Use @Motion_Function Instead of string 'Motion_Functi...

8 years ago | 0

Answered
How can I solve x^(.3)-x^2+1=0 kind of equations
syms x x=vpasolve(x^(.3)-x^2+1==0,x) *Remark*:Make sure you have the |*symbolic toolbox*| . You can also cross verify...

8 years ago | 1

| accepted

Answered
How do i change to "function
function movie_example %an example you can modify inserting inputs theta0, v0 , CR and so on %clc,clf,clear %EDITED after G...

8 years ago | 0

Answered
Publish from MATLAB Mobile?
No it’s not possible. |*ERROR: Undefined function because it is not supported in matlab mobile.*|

8 years ago | 0

| accepted

Answered
Getting an error "INDEX OUT OF BOUNDS" in my matlab program. Please help.
for i=1:3 fepsn(i)=i; % (i) was added to avoid overwriting of the variable end

8 years ago | 0

| accepted

Answered
Converting a for loop to a while loop
x=zeros(1,5); y=randi(100,1,5); i=1 while i<6 x(i)=x(i)+y(i) i=i+1; end

8 years ago | 1

Answered
how to find the bottom peaks in the graph?
[locs,idxs]=findpeaks(-y) %EDITED If y is the function of the plot *-y* will give the minimum of the function.

8 years ago | 1

| accepted

Answered
How can we get the solution for an 'exact differential equation' dy/dx=(x^2-y^2)/2*x*y in matlab
syms y(x) ode=2*x*y*(diff(y))==(x^2)-(y^2) sol=dsolve(ode)

8 years ago | 0

| accepted

Answered
How to make an output text file in matlab. Explain by an example please
X=1:10 dlmwrite('textfile.txt',X)

8 years ago | 0

| accepted

Answered
How to substitute a vector symbolic variable with the values of a vector?
Your code works fine, you can substitute the same way using curly braces. What problem are you facing ?, everything seems to be ...

8 years ago | 1

Answered
error in xls2struct loading excell file
There is no syntax as |*xls2struct*| maybe try |*xlsread*| if you want to |*read*| the |*file*|. Or maybe try the file exchan...

8 years ago | 0

| accepted

Answered
How can I assign a symbolic expression to symbolic an element of an array
syms x y u v w var = [x,y]; sol = [u+w,v-w]; disp(var==sol)

8 years ago | 0

Answered
" Array indices must be positive integers or logical values." appearing with piecewise function
x=rand(1,7) %this is vector input , an example for i = 1:length(x) if x(i)<0 y(i) = sind(x(i)); elseif ...

8 years ago | 0

| accepted

Answered
Deleting or renaming files in Matlab Mobile.
Touch on a file ,slide from right to left you will see two options the first one |*rename*| and the second |*delete*|.

8 years ago | 0

Answered
Not enough input arguments
function P = Antoine(T,A,B,C) % vapour pressure [bar] T = input('Temperature of water in degrees celcius = ') T_k = 273....

8 years ago | 0

Answered
Exclude zero from domain.
x=-1:0.1:1; y=-1:0.1:1; x=nonzeros(x); y=nonzeros(y) %y = y(y~=0); dx=0.1; [X,Y]=meshgrid(x,y); u = 1./(X...

8 years ago | 0

| accepted

Answered
How to solve x^4-px+q in terms of p and q
syms p q x eqn=x^4-p*x+q [p,q]=solve(eqn,p,q)

8 years ago | 0

Answered
How do I check for invalid integers in an array?
Start the loop from *one* i.e., for n = 1:4

8 years ago | 0

Answered
I want to find the solution for the eqautions x^2+y^2==3*x*y^2, x^3-x^2==y^2-y and plot graphs in matlab.
syms x y [solx,soly]=solve(x^2+y^2==3*x*y^2, x^3-x^2==y^2-y) plot(solx,soly,'ok')

8 years ago | 0

Answered
Use special characters like Å,Ä,Ö in plots?
I didn’t have any trouble getting the character in label. *An example:* xlabel('Å') But I don’t know what you mean |*...

8 years ago | 0

Answered
How do I get the integral of this function I created?
x=-6:6; y=f(x); plot(x,y) grid on %Determine f(3)-f(5) ans = f(3) - f(5) ...

8 years ago | 0

| accepted

Answered
How to plot sin(x) for sin(x)>0, and 0 for sin(x)<=0?
syms y(x) y=piecewise(sin(x)>0,sin(x),sin(x)<=0,0) fplot(y,[-3*pi 3*pi])

8 years ago | 2

| accepted

Answered
Z must be a matrix, not a scalar or vector
If *pitch* has *(1X54)* values and *roll* has the same values as pitch then *Iest* should have *(54X54)* values as a matrix....

8 years ago | 0

| accepted

Answered
Script won't run, keeps saying file name on command window
It means you suppressed your output by *semicolon (;)* *An example:* >> a=1:10 a = Columns 1 through 8 ...

8 years ago | 0

| accepted

Answered
New Matlab user. My equations say I do not have enough inputs. How do I correct this?
tspan = linspace(0,15,201); y0=[0 ;15]; [t, y] = ode15s(@f1,tspan,y0) plot(t,y(:,1),'-o') hold on plot(t,y(:,2),'-ob...

8 years ago | 0

| accepted

Question


Who can see the vote of an answer or a question?
I was just wondering who can see the votes given to an answer or a question. Just curious. I surfed through the internet and cou...

8 years ago | 2 answers | 3

2

answers

Answered
Substitution problem in matlab
syms x y z; syms sx sy; yp=y*(1-exp(-x^2/sx^2)*exp(-y^2/sy^2)) ER=subs(yp,{sx},{1}) ER=subs(ER,{sy},{1}) ER1...

8 years ago | 1

| accepted

Answered
This is amy code it is not working why?
x=[1 4 5 7.5 14 21 23 32] v=x.^(2).*exp(x)+x.*((x+log(x)).^(1/2)) v=vpa(v)

8 years ago | 0

Answered
(Solved) How do I change my t and dVdT to input in a 31x1 double, instead of 1x31 (row to colum)
dVdT = [] ; t = [] ; for index = 1:30 y = (0:0.1:3)' ; V = 45-5*(3-y).^2 ; dVdT(end+1) = (V(index+1)-V(index) ) ; ...

8 years ago | 1

| accepted

Load more