Matlab Definition and 1000 Threads
-
M
MATLAB Guidance for strength of materials in matlab.
Hi, all I have to do a project but I need some guidance. I have to make MATLAB draw bending moment and shear force diagrams of a beam which have to be loaded with a distributed load, a single force, and a single moment. First I have to make MATLAB draw a beam like in the picture.- mech-eng
- Thread
- Guidance Materials Matlab Strength Strength of materials
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB What are setbeam() and plotbeam() in MATLAB for beam analysis?
Hi, there is an example of beams in matlab. Can somebody articulate? What is setbeam(EI, L, BC_Spec) I know it is not an array and also I do not know it is physical meaning. what is Load_Spec = [0 0.5 1.2]; and here beamf(Load_Spec) is assigned to y but what is plotbeam(y)- mech-eng
- Thread
- Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB Matlab for differential equations
Does MATLAB solve differential equations?- Mathmanman
- Thread
- Differential Differential equations Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
A
MATLAB Optimization using genetic algorithm in matlab
For my B.Eng project, I'm optimizing the thermal efficiency of a boiler using genetic algorithm in MATLAB. I'm finding it very tough to write my fitness function, constraint equations and upload my initial population which is a set of data from my case study plant. for boiler thermal...- amos.ngwoke
- Thread
- Algorithm Genetics Matlab Optimization
- Replies: 8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
V
MATLAB I need Matlab help comparing bode plots neatly
This definitely isn't a homework question as the work is already done, I'm just trying to make my presentation neater for some reports I'm turning in. I am comparing theoretical data collected from a filter, to the actual data collected. I want to overlay the two to make the comparison. I am...- Vagabond7
- Thread
- Bode Matlab Plots
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Potentiometer modeling by Matlab
I can't model the potentiometer in speed governor control system by MATLAB even I know the input of it is pu and the output is voltage but when I run the program it has an error occur I want to see what wrong it is. Help me please- latsany
- Thread
- Matlab Modeling Potentiometer
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
How to Design FP resonator from Bragg mirror in Matlab?
Homework Statement Below is a {MATLAB}code for Bragg mirror. How can I implement the code to create an FP resonator? Homework Equations The Attempt at a Solution %User input parameters num_layers = input('The Number of Layers in the structure = '); r_index1 = input('refractive...- RAND1234
- Thread
- Bragg Design Matlab Mirror Resonator
- Replies: 2
- Forum: Advanced Physics Homework Help
-
M
MATLAB Troubleshooting MATLAB Installation Errors: How to Resolve Common Issues
Hi, I tried to install MATLAB but came across with this problem. How can I figure out it?- mech-eng
- Thread
- Error Matlab
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
C
MATLAB Stellar structure equations in Matlab?
Does anyone have a Matlab file for solving the stellar structure equations that they wouldn't mind passing along? I'm trying to settle an argument with a friend that they can't really be used to describe nuetron stars and I don't have much programming experience. Thanks, Alex- ctcah
- Thread
- Matlab Stellar Structure
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
D
MATLAB Solving Matlab for Loop Issue with di Index Value
t = (0:0.0001:10); for ki = [0.625, 1.125] kp = 1.25; H = tf([0, 0, 2*kp, 2*ki], [1, 3, 2 + 2*kp, 2*ki]); step(H, t) for i = [1, 2] di = stepinfo(H) end hold on end legend('kp = 0.625', 'kp = 1.125'); I want the di loop to return d1 = all the data and d2 = all...- Dustinsfl
- Thread
- Loop Matlab
- Replies: 8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
MATLAB Export Standardized Matlab Data Points To Excel
Dear Experts! I currently have a sets of data with different time interval and I plotted it into MATLAB from excel. Is there a way for me export the files or calculate the mean, standard deviation etc so that I can calculate error etc. It would be great if I could do it in Matlab. I am...- jeeloong
- Thread
- Data Excel Matlab Points
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
What is causing the clumping in my piecewise function plot?
Homework Statement Hey there. I'm trying to plot a piecewise function in MATLAB and I'm having some decent success, but there's some things I'm wondering. Here's the function: http://gyazo.com/d3493a0c13096878acf5a501af8a7f66 Homework Equations The Attempt at a Solution My...- STEMucator
- Thread
- Function Matlab Piecewise function
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
S
Matlab: plotting one period of a discrete signal
I have a 3 rad/s sine wave that I am sampling every 2 seconds. The slow sampling has created an alias of -0.14 rad/s. I have plotted this over the top of the original continuous time signal, please see attachment. My problem is that I only want to plot the first period of the discrete signal...- Steve Collins
- Thread
- Discrete Matlab Period Plotting Signal
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
A
Matlab Simulink-Using PID controls?
Matlab Simulink--Using PID controls? I need to use Simulink to determine an approximate numerical solution to the equation of motion for a robotic arm (image below). The equation of motion for the system is J (\theta)'' = \tau - mgl cos (\theta). (An ordinary, 2nd order nonlinear differential...- annas425
- Thread
- Controls Matlab Pid
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
J
MATLAB Complex Fourier Series using Matlab
Hello, I have a problem synthesising the complex Fourier series using Matlab. The time domain periodic function is: -1, -1.0 ≤ t < -0.5 1 , -0.5≤ t <0.5 -1, 0.5 ≤ t < 1 The single non zero coefficient is: Cn = \frac{2}{\pi n}, Co is 0 (average is 0). f(t)= \sum Cn...- Jag1972
- Thread
- Complex Fourier Fourier series Matlab Series
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MatLab fplot help. Something may be wrong with my fplot?
Homework Statement The problem was "Plot the following equation with MatLab, for values of x from -3 to 6. Homework Equations y = x^4 - 4x^3 - 6x^2 + 15 The Attempt at a Solution I created a function. function r = graph(x) for i = 1:x r(i) = i^4 - 4*i^3 - 6*i^2 + 15; end...- sloan13
- Thread
- Matlab
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
F
Matlab continuous uniform distribution
Homework Statement Generate 100 data points from a continuous uniform distribution with mean = 10 and variance = 4 Homework Equations u = (a+b)/2 var = (b-a)^2 / 12 r = a + (b-a).*rand(100,1); The Attempt at a Solution points = 100 m1 = 10 v1 = 4 syms a b [a...- freezer
- Thread
- Continuous Distribution Matlab Uniform Uniform distribution
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
N
Matlab: Numerically Integrate and Plot Response of Underdamped System
Homework Statement Numerically integrate and plot the response of an underdamped system determined by m= 100 kg, k= 20,000 N/m, and c = 200 kg/s, subject to the initial conditions of x0 = 0.01 m and v0 = 0.1 m/s, and the applied force F(t)=150cos(5t). Then plot the exact response. Homework...- Northbysouth
- Thread
- Integrate Matlab Plot Response System
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
C
Matlab -understanding filter( )
Homework Statement For my code for the communication system if I have a channel implies response {.3,.6,-.3} h=[.3 .6 -.3] How do I get ych=filter(h,l,s) to work? I get an error when I run it. I get an error, Error: The press ion on the left of the equals sign is not a valid target for an...- cutesteph
- Thread
- Filter Matlab
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
M
MatLab: About the basic functions about the program.
Hi. I've been given an assignment, a starters assignment I should say, for Matlab. This is mostly about learning the basic functions of the program and it's my first ever experience with it. I hope I'm posting in the correct sub-forum. Homework Statement We're given a triangle ABC...- Mutaja
- Thread
- Functions Matlab Program
- Replies: 12
- Forum: Engineering and Comp Sci Homework Help
-
E
Is MATLAB's Randomization Function Affected by Appending Numbers to Student IDs?
Homework Statement Enter the following two commands, and copy and paste the output as your answer > rand("state",student_number0917); > rand(1) where student_number0917 is your student number with "0917" at the end and with "-" removed. For example, if your student number is 123-456-7...- emergentecon
- Thread
- Matlab
- Replies: 2
- Forum: Precalculus Mathematics Homework Help
-
N
In matlab how do I write u(n) in order to get the autocorrelation?
Homework Statement u(n) = .4s(n)+.7s(n) -.1s(n-2)+v(n) where v(n) is zero mean and has variance 0.003 and uncorrelated with s(n) I want the autocorrelation is E[u(n-k)u(n)] I can solve it easily by hand which is the follow so r(k) = 0.663 for k =0, 0.21 for k=1 , -0.04 for k=2 and the rest...- nikki92
- Thread
- Autocorrelation Matlab
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
A
MATLAB MATLAB Filter command for BSFC map
Hi all, I have made a BSFC plot in MATLAB with engine data tested on an eddie current dyno, The code I used for it is: >> NP=40; >> [RP TP]=meshgrid(linspace(min(RPM),max(RPM),NP),linspace(min(Torque),max(Torque),NP)); >> BSFC_IT=griddata(RPM,Torque,BSFC,RP,TP); >> NC=12; >>...- Alex91
- Thread
- Filter Map Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
D
Displacement of cantilevered beam matlab
Homework Statement Write a Matlab function to plot the displacement of a cantilevered beam under a point load. Annotate the figure’s axes and title the figure. In addition to creating the plot, the function should report (in the figure’s title!) the maximum deflection and angle between the...- DODGEVIPER13
- Thread
- Beam Displacement Matlab
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
D
Calculate and plot real and reactive power matlab
Homework Statement Write a Matlab function to compute and plot real and reactive power consumed (or supplied) by a known impedance (the value of complex impedance should be used as the function’s input) as a function of either current or voltage (use a character: V or I as a second input) for...- DODGEVIPER13
- Thread
- Matlab Plot Power Reactive power
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
E
Solving Recurrence Relations in Matlab: A Homework Challenge
Homework Statement Evaluate the following series ∑u(n) for n=1 → \infty in which u(n) is not known explicitly but is given in terms of a recurrence relation. You should stop the summation when u(n) < 10^(-8) u(n+1) = (u(n-1))^2 + (u(n))2 with u(1) = 0.5, u(2) = 0.6 Note 1:The lecturer...- emergentecon
- Thread
- Matlab Recurrence Relation
- Replies: 9
- Forum: Calculus and Beyond Homework Help
-
A
Find area under curve and energy of function (matlab)
Homework Statement For the 1st one you wouldn't really need MATLAB I guess to find the area under the curve, it is 0 and so is its energy. For the 2nd one I got A=1.73 and so E=2.99.Homework Equations area under curve = evaluate integral from t=t1 to t=t2. in this case t=-2 to t=5 since they...- asdf12312
- Thread
- Area Area under curve Curve Energy Function Matlab
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
H
MATLAB How to Plot Single Points in 3D Space Using MatLab?
This might be an unusual thread but is that i really can't figure out how to plot single points in 3D space using MatLab. I need to plot the points (1,0,0) , (0,1,0) and (0,0,1)- hitachiin69
- Thread
- Matlab Plotting Points
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
H
MATLAB MATLAB used in 1st year Engineering?
It is common for freshman students in engineering to use MATLAB? My son will be a freshman (Bio Engineering) in August and I'm tempted to encourage him to learn Octave or Scilab during the summer. He's in a Java class right now, so has some programming basics already. If he really won't...- hotvette
- Thread
- Engineering Matlab Year
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
Comparing Analytic and Approximate Solutions Using Euler's Method in Matlab
Homework Statement Hello, I am working on a problem involves my using the Euler Method to approximate the differential equation \displaystyle \frac{df}{dt} = af(t) - b[f(t)]^2, both when b=0 and when b is not zero; and I am to compare the analytic solution to the approximate solution when b=0...- Bashyboy
- Thread
- Euler's method Matlab Method
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
A
Matlab help fplot() with 3-input argument function?
matlab halp! fplot() with 3-input argument function?? Homework Statement heres da link: http://postimg.org/image/uqqr3q0k3/ don't really need to look at that though. Its just a function in another file, I have to call it but it takes 3 input variables, problem with fplot is it only uses a...- asdf12312
- Thread
- Argument Function Matlab
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
N
Use Matlab to plot x(t) for damped system
Homework Statement Plot x(t) for a damped system of natural frequency w_n= 2 rad/s and initial conditions x_0= 1 mm and v_0 = o mm/s, for the following values of the damping ratio: z= 0.01, 0.2, 0.6, 0.1, 0.4 and 0.8 Homework Equations The Attempt at a Solution I began by defining...- Northbysouth
- Thread
- Damped Matlab Plot System
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
J
MATLAB MatLab code for these Integrals.
How can I write proper language for these integrals in MatLab ? Your helps really appreciated. John Mark- John Mark
- Thread
- Code Integrals Matlab Matlab code
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
G
Electrical Engineering - State Space - Matlab
Homework Statement \dot{} I'm given the following circuit http://imagizer.imageshack.us/v2/800x600q90/43/bwka.png Homework Equations The Attempt at a Solution I come up with the transfer function to be G(s) = \frac{s}{2+\frac{1}{s}}. The question asks me to Plot step...- GreenPrint
- Thread
- Electrical Electrical engineering Engineering Matlab Space State State space
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
P
How Can MATLAB Simulate Particle Motion in a 3D Vector Field?
So, this is going to be pretty hard for me to explain, or try to detail out since I only think I know what I'm asking, but I could be asking it with bad wording, so please bear with me and ask questions if need-be. Currently I have a 3D vector field that's being plotted which corresponds to...- PropulsionMan
- Thread
- Field Matlab Physics Vector Vector field
- Replies: 1
- Forum: Introductory Physics Homework Help
-
K
How to increment a MATLAB for loop by an arbitrary value?
How to increment a MATLAB "for" loop by an arbitrary value? I am creating a Matlab program that calculates corresponding temperatures for Celsius, Kelvin, Fahrenheit, and Rankine scales. I want to write my code so that it can handle an arbitrary temperature increment (a user-inputted value)...- kal854
- Thread
- Loop Matlab Value
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
S
MATLAB Plotting atomic orbitals on matlab
Hi guys I've been having some trouble plotting the p(x) and d(xy) atomic orbitals on Matlab. I have been given that p(x) = x*e^-(x^2 + y^2 + z^2)^0.5 and d(xy) = x*y*e^-(x^2 + y^2 x^2)^0.5 Now I want to plot these orbitals on MATLAB using mesh or the surf command and then plot the...- Scientist94
- Thread
- Atomic Atomic orbitals Matlab Orbitals Plotting
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB Effective Ways to Self-Learn MATLAB: Recommendations and Tips from Experts
Hey PF! Does anyone recommend an effective way to self-learn matlab? What has worked for you? What have you heard that works for others? I realize MATLAB can be used for a variety of purposes, and as such it is difficult to learn the entire package, but I just want to get my hands dirty...- member 428835
- Thread
- Matlab
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
MATLAB Matlab question: How to pick specific value from column vector
Good afternoon, I have created a column vector with many values however I want to know a specific value found in that vector. Specifically I want to know the 99th value of my column vector. Is there a command I can enter into mat lab that will give me the value I seek without having to...- bmed90
- Thread
- Column Matlab Specific Value Vector
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
MATLAB Troubleshooting FFT code with MATLAB
ok I wrote my own FFT class and I now have MatLab on my computer. I am comparing my code to mat-lab. so my test i used it this : for (int y = 0; y < 100; y++) { double temp8 = (2D * (Math.Sin(2D * Math.PI * 4D * (double)y / 100D)))...- btb4198
- Thread
- Code Fft Matlab Troubleshooting
- Replies: 11
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
MATLAB Graphing 3D Z-Transform in MATLAB
Does anyone know how I might go about graphing the Z-Transform in 3D? It want it to look something like the picture below.- enceladus_
- Thread
- 3d Matlab Z-transform
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
4-point Gauss Quadrature with MATLAB
Homework Statement I need to evaluate a function using 4-point GQ. Homework Equations GQ theory The Attempt at a Solution I have got more of a programming issue in MATLAB. I am new to MATLAB. Actually this is for a numerical analysis course where we kind of learn MATLAB on the...- stvoffutt
- Thread
- Gauss Matlab
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
D
MATLAB Plotting Gaussian Curves with Matlab
Matlab rook here, Suppose I'd want to plot the Gaussian for 10 different values for n:function gauss(c,n) = plot_gaussian.m x=-1*c:0.1:c; gauss(x,j)=sqrt(j./pi)*exp(-1*j.*x.^2); for j=1:n plot(x,y) end And then I'll type gauss(3,10) to plot 10 curves in the interval [-3,3] Also, if I'd...- Dr_Pill
- Thread
- Curves Gaussian Matlab Plotting
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Ideas for engineering/physics based MATLAB program.
Homework Statement So, as part of a numerical methods module that I'm taking I have to write a report and MATLAB program which deals with some sort of engineering/physics based problem. The report essentially just outlines and discusses the problem. It's the initial idea which I'm looking for a...- SherlockOhms
- Thread
- Ideas Matlab Program
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
Q
MATLAB Help reading an Excel file with Matlab
Hi everyone, this is my first post on the physics forums. I am trying to use the readtable command in Matlab to make a table from an Excel file. Matlab is still new to me so I'm running into problems a lot. When I input T = readtable('myfile.txt'), I get an error that says "? Undefined function...- quantumspark
- Thread
- Excel File Matlab Reading
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
MATLAB Can Matlab Solve Improper Integrals?
Hello everyone I need to ask a tough question I have an integral I should plot in 3d from minus infinite to plus infinite it is known that this integral is hard but can be solved numerically I need it in MATLAB is it possible? Thank you- eahaidar
- Thread
- Improper integral Integral Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Should I take Matlab for Physics ?
Should I take "Matlab for Physics"? So this is one of those questions... Next semester my Physics department is offering a special course "Matlab for Physics". It's being taught by a well known and respected professor so I'm doubly sure the content covered will be relevant to research in...- denjay
- Thread
- Matlab Physics
- Replies: 8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
What Are the Functions of 'pix' and 'shg' in MATLAB?
what is the function of 'pix' and 'shg' in MATLAB ?- eltrinco
- Thread
- Function Matlab
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
H
Convergence Error in Matlab Code for Fluid Flow Simulation
Homework Statement My apologies if the error is an obvious one and many thanks in advance for any help given: I am trying to create a Matlab code that simulates Lifting Line Theory in order to provide an estimate of the lift and drag of a 3D wing. My hope is to later use this as part of...- HACRS4
- Thread
- Code Lifting Line Matlab
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
1
MATLAB Plotting Beam Emittance with MATLAB Code
Hi, I want to write a very simple code to plot the beam emittance knowing x,y,z and vx,vy,vz of each particle. I have generated with a tracking code a very simple beam (cone distribution with 1° divergence) and I want to compare the emittance of this beam with the one calculated by a...- 1Keenan
- Thread
- Beam Code Matlab Matlab code Plotting
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX