Feeds
提问
Problems with matrix dimensions not agreeing
I am having issues with my matrix dimensions and getting this error in my code: Error using / Matrix dimensions must a...
10 years 前 | 1 个回答 | 0
1
个回答提问
How do you plot a differential equation?
I have the differential equation dy/dx = (x-5*y)*e^-x where y = 1 when x = 0. I need to plot this from x = 0 to x = 10. How do I...
10 years 前 | 1 个回答 | 0
1
个回答提问
How do you solve a nonlinear ODE with Matlab using the finite difference approach?
I have done this with a linear ODE which had the equation x''+(c/m)*x'+(g/L)*x = 0 where x(0) = pi/6 and x'(0) = 0 %Method ...
10 years 前 | 2 个回答 | 0
2
个回答提问
How do you solve a nonlinear ODE with Matlab using ode45?
I have done this with a linear ODE which had the equation x''+(c/m)*x'+(g/L)*x = 0 where x(0) = pi/6 and x'(0) = 0 This is th...
10 years 前 | 1 个回答 | 0
1
个回答提问
How do you put in a range of values into a variable of a matrix?
I have a simple question. How do you put in a range of values into a variable of a matrix? I tried doing this code below: ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Question about using fzero to find all real roots of a polynomial
I have the polynomial y = x^7-4.75*x^6+10.875*x^5-20.125*x^4+20*x^3+1.75*x^2-30*x+25 and I want to find not just one real root, ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Troubleshooting with fzero command.
I have a function file and a script file that I am trying to work together in which I am trying to define an implicit equation. ...
10 years 前 | 0 个回答 | 0
0
个回答提问
Why is my second plot only coming up when I run the program?
I have a function file and script file that both work well together, but out of the two plots I am trying to show when I run the...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to call a function properly.
I want to take a function file and call it into my script. I have this function: function ff = fCW() F = @(f...
10 years 前 | 1 个回答 | 0
1
个回答提问
Help with Colebrook equation and fzero command.
I am trying to do a problem with the colebrook equation in which I have to find the roots of the equation to find "f". I am tryi...
10 years 前 | 1 个回答 | 0
1
个回答提问
Problems with using a loop structure within an fzero command.
I have a file which uses the fzero command and works just fine as it gives me values of x when Re is chosen. See below: F =...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to use the convolution method to multiply all linear factors together to find a new polynomial
I have the polynomial: f(x) = x^7 - 4.75x^6 + 10.875x^5 - 20.125x^4 + 20x^3 + 1.75x^2 - 30x + 25 I need to use the convolutio...
10 years 前 | 1 个回答 | 0
1
个回答提问
Trying to find root of equation with fzero command in Matlab.
I want to solve a problem in which I am given a function (seen below) where W is 4.9 and I must find v. I have to use the fzero ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Trying to find root of equation with fzero command in Matlab.
I want to solve a problem in which I am given a function (seen below) where W is 4.9 and I must find v. I have to use the fzero ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Help with Colebrook equation and f zero command.
I am trying to do a problem with the colebrook equation in which I have to find the roots of the equation to find "f". I am tryi...
10 years 前 | 2 个回答 | 0
2
个回答提问
Finding a value in an Implicit Function
I have a Function below of which I am trying to find the independent variable (x) when I am given the dependent variable (W) of ...
10 years 前 | 0 个回答 | 0
0
个回答提问
Problem using the Secant Method
I want to solve a problem in which I am given a function (seen below) where W is 250 and I must find x. I have to use the seca...
10 years 前 | 1 个回答 | 0
1
个回答提问
Simple Question: How do you change the number of decimals of a number inside of a legend so it has more decimal places? (Please view Attachment!)
%I want to display numbers such as .0254 in my legend as opposed to 0.2. How do I change that? %Some of my Script below: ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Trouble plotting 2D and 3D models of data.
%I am having trouble plotting both 2D and 3D graphs on Matlab. I am confident that my variables (as far as I know) are working j...
10 years 前 | 1 个回答 | 0
1
个回答提问
Help writing two equations in Matlab (Please view Attachment)
I have two equations and I want to loop a value for 'n' from 1 to 50. I want to put these equations in so that Ln (equation 1) i...
10 years 前 | 0 个回答 | 0
0
个回答提问
I am having trouble finding the values for a certain variable which contains the "cosh(x)"
% I am having problems with my variable Bn(n) because everytime I try to evaluate it, I get a bunch of zeros with only the first...
10 years 前 | 1 个回答 | 0
1
个回答提问
How do I fix my elements in my code so that they can be the same?
%I keep getting the error of 'In an assignment A(I) = B, the number of elements in B and I must be the same.' I believe the pro...
10 years 前 | 1 个回答 | 0
1
个回答提问
How do you do a derivative with a certain value?
My initial equation is f(x) = (3*x^5)-(x^3)+(2*x^2)+4 and when I derive that, I get f'(x)=15*x^4 - 3*x^2 + 4*x. How do I evaluat...
10 years 前 | 2 个回答 | 1
2
个回答提问
How do you find the maximum error in series?
clear all, close all %Case 1: Find FN for N (being a value based on a user's input) FN = 0; x=.75; prompt = 'Wha...
10 years 前 | 0 个回答 | 0
0
个回答提问
How do you import multiple files into Matlab and graph the data into one plot?
The data I have comes from 7 files. One of them is named: fan7v.dat It looks like this: Fan running at 7 volts cfm...
10 years 前 | 0 个回答 | 0
0
个回答提问
I want to write a Matlab function with 'h' and 'V' as vectors to determine the fluid volume of a tank, but I have a problem with the function. The error is in the body of the question. Can someone help me?
function V = hstank2(h,r,hcl) r=0.40; hcl=1.2; Nh = 41; h=linspace(0,(2*r+hcl),Nh); V = zeros(size(h)); i= (h>=0)&&(h<=r); V...
10 years 前 | 1 个回答 | 0
1
个回答提问
I am having trouble with the menu and switch case command because every time I try to get an answer for pressure, I get 5 answers in a matrix instead of one. Does anyone know what I am doing wrong?
clear all, close all, nfig = 0; choice = menu('Choose a gas.','Helium Gas','Hydrogen Gas','Oxygen Gas',... 'Chlori...
10 years 前 | 1 个回答 | 0