PetronasAMG
Followers: 0 Following: 0
Engineering student who needs a lot of help with matlab!
Statistiques
27 Questions
0 Réponses
RANG
102 325
of 295 467
RÉPUTATION
0
CONTRIBUTIONS
27 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
55.56%
VOTES REÇUS
0
RANG
of 20 234
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 153 912
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
Generating random angles between interval
How would I generate three random angles between (-pi to pi)? ex) q= [theta1 theta2 theta3], all theta are random numbers betwe...
environ 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Interpolation of missing matrix element
Hello, I am trying to interpolate some missing data of my 3x3 matrix, M = [43.13 0 42.88;0 39.32 0;41.81 0 43.27]; where 0s re...
environ 2 ans il y a | 2 réponses | 0
2
réponsesQuestion
How to use spline interpolation to find intersection point of two lines.
Hi, Just new to matlab and still trying to understand spline interpolation. Although we can eye ball the interspection point, ho...
environ 3 ans il y a | 2 réponses | 0
2
réponsesQuestion
Integrating a 2nd order ODE
I am given an equation, d^2y/dx^2 + q(x) = 0 x ranges from 0 to 1 and y(0) = 1 and y(L) = 1.5 where L = 1 and q(x) = 2*cos...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
how to linear interpolate using a for loop
say I have a y = x^2 -2; I want to find out which point of x it crosses y = 0 by linear interpolating. But by showing when the ...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
how to get eigenvalues and plot it
say time is varying from 1< t < 10 I also set the element of matrix a1 = t/1, a2 = t +2 / 3 ,a3 = t/2 ,a4 = t+5 then i set u...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
error getting eigenvalues varying with time
xcg = 0.15; rea = 0.5; xe = 0.35; cla=2*pi ; m= 5*pi; a0 = 0; wr = (1/2); mu = 1+(3*a0^2); U = 0:0.01:1; a1 = ((mu*((U.*c...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
Eigenvalue and Eigenvector extracting
so I have a time array say, 0< t < 10 My elements of matrix are function that will depend on variable t. Say, a11 = (t^2)/2 ,a...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
How to get eigenvalues with varying coefficient
I have t varing from 0 < t < 5 and x1 = (1+t)/2, x2 = (t^2)/4 and x4 = (1+2t)/6 so i did linspace(0,5,5) A = [x1 x2; 0 x4]; ...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
how to interpolate the data over uniform time grid
Since numerical solution obtained from ode45 is a non uniform in time, I need to obtain the frequency power spectrim of the solu...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
How to create a Frequency Spectrum plot from nonlinear equations
given three nonlinear equations dx1/dt = 3(x1+x2) dx2/dt = x1 - (1/6)x2 dx3/dt = (1/7) + (x1 -3.25)*x3 and their correspodin...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
How to computer a frequency spectrum and find its largest spectral energy
I am given set of equation I am suppose to plot x1 x2 and x3 as a 3d dimensional phase, but direction wants me to omit any pos...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
Using ODE45 for first order diff equation with three different variables
So, I am trying to use ODE45, say dx/dt = (0.1*x)+(0.25*y)-(9.8*z) I am trying to graph the behavior of x,y and z from time (0...
environ 3 ans il y a | 1 réponse | 0
1
réponseQuestion
pulling our elements from a matrix using for loop
if matrix A = [1 3 4 2 17 6 4 5 2] what is a matrix command that i can use it to pull first 6 elements?
plus de 6 ans il y a | 1 réponse | 0
1
réponseQuestion
comparing cells in excel then calculate for the sum
So I will try my best to explain this. So I need to find the sum of weight given chart, <</matlabcentral/answers/uploaded_f...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
while loop error with conditional statment
i %ignore this i code starts from below interval = 1.2 x_int = 0:intereval:c i=1 while x_int(i) <= c ya(i) = ((5...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
different dimension matrix addition
for example, A = [1 2 3 4 5] B = [0 0 0 0 0 6 7 8 9 10] and i need C = [1 2 3 4 5 6 7 8 9 10] is there a way to make...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
Conversion to logical from sym is not possible.
This is what I have syms x; ...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
stuck on graph format! please help
so this is what I have.. <</matlabcentral/answers/uploaded_files/103530/Capture1.PNG>> but i need to make my graph look li...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
graph comes out all rotated
so this is what i have posdegreeline = refline(tand(-45),0); negdegreeline = refline(tand(45),0); posdefreeline.Color...
presque 7 ans il y a | 1 réponse | 0
0
réponseQuestion
unheard of ptitle command.. what is this???
so i am pulling out data from excel files as my input and export all my calculated data from matlab to excel output. So far ever...
presque 7 ans il y a | 2 réponses | 0
2
réponsesQuestion
index exceeds matrix demension
figure(1) hold on; plot(1.25,1.25,'ro'); i=1; while i <= 20 plot([xi(i),xj(i)],[yi(i),yj(i)],'b'); ...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
how to shift origin or graph without changing the data value.
Let's say you have a (x,y) = (1,1) however is there a possible way to show another quadrant of the graph? Every time i try to se...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
Distance formula using while loop
so i given a data file, I was able to call in these values into Matlab input <</matlabcentral/answers/uploaded_files/103383/S...
presque 7 ans il y a | 2 réponses | 0
2
réponsesQuestion
How to rescale x- axis?
so when i plot my function, i get a wide graph. <</matlabcentral/answers/uploaded_files/101612/Screen%20Shot%202018-01-17%20a...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
Data must be a single matrix Y or a list of pairs X,Y. Need help on plotting 3D graph!
array= Tmax/n; %This expends the data points n = 2000 and Tmax = 20 t = 0:array:Tmax; ...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
corrected trapezoid rule function code
I need help on matlab coding!! so assignment given is to use trapezoid rule, midpoint rule and corrected trapezoid rule to pl...
presque 7 ans il y a | 1 réponse | 0