Feeds
질문
How to find curvature using points obtained by numerical integration?
Hi, I used ode45 to plot a curve and got the X,Z and phi value. Where X and Z are points on the curve which change depen...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Non linear boundary value problem with infinity.How to solve?
dx/dphi= ((b*cos(phi))/((c*((z/b)-L))-(b*(sin(phi)/x)))); dz/dphi= ((b*sin(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))));...
7년 초과 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
7년 초과 전
문제를 풀었습니다
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
7년 초과 전
문제를 풀었습니다
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
7년 초과 전
문제를 풀었습니다
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
7년 초과 전
문제를 풀었습니다
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
7년 초과 전
문제를 풀었습니다
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
7년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
7년 초과 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
7년 초과 전
문제를 풀었습니다
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
7년 초과 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
7년 초과 전
질문
How to add more than one conditions for an ode45 problem?
Hi, This is my code in which 'b','phi' and 'VOLUME' are present: format long %input your entries here density=1;%kg/m3 ...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Which area does this trapz find?
Hello, So this is a code I used and the plot I obtained. phi1=deg2rad(phiini); phi2=deg2rad(phifin); f=@(ph...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to find angle made by tangent at the end of a curve?
Hi, I have attached the image of a curve obtained by using ode45 . Now my intention is to find the angle that the tangent at ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
how to define the curve by the area rather than area by the curve?
I used ode45 to obtain a curve using certain parameters and using trapz I find its area. Now my intention is to obtain another ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to find area under graph?
How do I find only the area of the shaded portion using trapz, integral or any other method? <</matlabcentral/answers/uplo...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
What are some ways to use trapz,integral or quad in reverse?
I have used ode45 to solve two simultaneous differential equations and plotted their solutions, such that : Area=trapz(x) or Ar...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Is there any function/way to use the adam bashforth multistep method for differential equations in matlab?
Any specific code? Can it be used for second order too?
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
How do I solve the differential equation numerically which is of the form : (z"/[1+(z')^2]^(3/2))+(0.1928529/x)=2+(50.99203)*z ? I need to get the x and z values.
Initial conditions are x=0 and z=0
거의 8년 전 | 답변 수: 1 | 0

