Matlab Definition and 1000 Threads
-
P
What specs should I look for in a laptop
After completing my sophomore year at college as a Physics major and I realized that the laptop I currently have is not able to keep up with the demand I put it under for school. The laptop I currently have has a <2 hour battery life and has been known to crap out (didn't know how else to...- ParticleGinger6
- Thread
- Computer science Laptop Mathematica Matlab Physics
- Replies: 7
- Forum: Computing and Technology
-
MATLAB MATLAB Code For Analyzing Experimental Data
Hi! I'm working on MATLAB code to analyze dat for a specific project, but I'm curious if it could made useful for more general purposes. Here's a bit of background on the project: I'm an REU student and I was assigned to analyze data for a recently conducted experiment. The experiment took...- person123
- Thread
- Code Data Experimental Experimental data Matlab Matlab code
- Replies: 12
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
I Calculate the exit force of a bullet leaving the barrel
So, Basic premise is I have 1 input and one output, Energy friom the gunpower burning is input, and the output is the force which pushes the bullet after it is reduced by the friction. m = 12.96 g s = 0.6985 m (barrel lenght) E = 6734 J k = 0.5 (friction coeffcient) I am sorry for lack of...- JJ_Badoo
- Thread
- Bullet Force Kinamatics Matlab
- Replies: 2
- Forum: Classical Physics
-
A
MATLAB Divergence of a vector field in MATLAB
If within a volume v ,there exists 10 velocity fields at different points then can anyone please suggest how to compute ##\int_v(\nabla•v)## within the volume?? using matlab For exm if the velocity vector field be ##v=x\hat x+y\hat y+z\hat z## and for x=1 to 10,y=1 to 10 and z= 1 to 10 the 10...- Apashanka
- Thread
- Divergence Field Matlab Vector Vector field
- Replies: 16
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
F
Use a MATLAB Workspace to get the unknown values in an AC circuit
The plot of part b is attached below. I got a warning on part a , I don't know where is my mistake . Please check my work . Part A clc; clear all; %parta f=800; t=0:10e-6:0.005; xc=10^(-6); xl=40e-3; for i=1:(0.005)/(10e-6) w=2*f*pi; zeq=xl*j*w+50; is(i)=2*(1600*t(i)*pi)...- Fatima Hasan
- Thread
- Ac Ac circuit Circuit Matlab
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
K
MATLAB Spring mass impact system in Matlab - How to correct it?
I am new to Simulink and I wanted to start practicing using a spring mass damper system. My first tutorial was this: Later, I wanted to model a spring system where a mass moving at a known velocity hits the spring. The governing equation and a similar modeling method given in the previous...- k.udhay
- Thread
- Impact Mass Matlab Simulink Spring System Velocity
- Replies: 7
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
F
Find the real power consumed using MATLAB Simulink
My work is attached below. I want to confirm my answer. Any help would be greatly appreciated !- Fatima Hasan
- Thread
- Matlab Power Simulink
- Replies: 12
- Forum: Engineering and Comp Sci Homework Help
-
M
Non trivial solution to Schrödinger equation for 1-D infinite well
Hello, I am trying to find the solution of Schrödinger equation on matlab. However, when I apply boundary conditions, MATLAB only gives me the solution with both coefficients 0. I want to find the solution : Asin(n*pi*x/L) You can see my code below. Could you please tell me where is my mistake...- MrMuscle
- Thread
- Infinite Infinite well Matlab Schrödinger Schrodinger equation
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Book for Matlab to Solve Differential Equations
Guys I am looking for a textbook about Matlab where In a simple language it will be described how to use this program for solving differential equations. I am more or less aware about calculus but if I have to solve such equations in future – only with this program. So which book could you offer...- Eagle9
- Thread
- Book Matlab
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
I Generating Irrational Ratios in Wave Simulations
I am trying to write an algorithm that generates two random numbers in a given interval such that their ratio is an irrational number. I understand that all numbers stored on a computer are rational, so it is not possible to have a truly irrational number in a simulation. So, instead I am...- roam
- Thread
- Code Irrational Irrational number Irrational numbers Matlab Number theory Numbers
- Replies: 6
- Forum: General Math
-
R
I Re-scaling of exponentially distributed numbers
For simplicity, let ##N=1##. The following histograms show my results. The generated random numbers are initially exponentially distributed. But after re-scaling they become almost uniformly distributed. What is the cause of that, and is there a solution? P.S. Here is my code in Matlab...- roam
- Thread
- Distributed Exponential distribution Matlab Numbers Random
- Replies: 8
- Forum: Set Theory, Logic, Probability, Statistics
-
Creating a vectorized statement in MatLab to output a 5x5 Hilbert matrix
My first attempt was: V=zeros(5,5) a=1; i=1:5; j=1:5; V(i:j)=a./(i+j-1) I figured to create a 5x5 with zeros and then to return and replace those values with updated values derived from the Hilbert equation as we move through i and j. This failed with an error of : Unable to perform assignment...- chopnhack
- Thread
- Hilbert Matlab Matrix Output
- Replies: 10
- Forum: Calculus and Beyond Homework Help
-
MATLAB Indexing error in MATLAB coding project
Hello, I am working on a MATLAB project for my intro to MATLAB course. My project evaluates certain parameters of a spring mass system and graphs the result along with a little mock animation. inputs the user is allowed to change: Initial Position at time =0 Initial Velocity at time=0 Mass of...- cookiemnstr510510
- Thread
- Coding Error Matlab Project
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
D
Need help with Matlab Function of Differential Equations
WHAT HAPPENS IS That I need to model the example of A Protein G example, using a function f in Matlab, but when I execute the script, the graphics I get do not correspond to those of the example. The problem is that I can not understand what the model seeks to represent, besides that I do not...- Dionisio Mendoza
- Thread
- Differential Differential equations Function Matlab
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
MATLAB MATLAB GUI derivative calculator
Hello! Happy Sunday, I am trying to create a MATLAB GUI that can take an input ( i am starting out with just one variable) and take its derivative and display the result. I have attached pictures of what my GUI looks like, and also the code I wrote so far. Let me also describe my method: I have...- cookiemnstr510510
- Thread
- Calculator Derivative Gui Matlab
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB MATLAB- Creating Symbolic Equation Question
Hello All! I am finding some inconsistencies with my textbook and MATLAB. I am in the section of symbolic mathematics. I follow the textbook word for word and I am getting some errors. When I am trying to create an entire equation and give it a name like: ideal_gas_law=sym('P*V=n*R*Temp') I get...- cookiemnstr510510
- Thread
- Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB logical functions and selection structures
Hello All, I have a question regarding a MATLAB homework problem. I am learning about logical functions and selection structures. Here is the question: The height of a rocket (in meters) can be represented by the following equation: height=(2.13*t^2)-(0.0013*t^4)+((0.000034*t^(4.751)) create a...- cookiemnstr510510
- Thread
- Functions Matlab Structures
- Replies: 13
- Forum: Engineering and Comp Sci Homework Help
-
MATLAB Asking about a command in matlab
Hello all: I want to ask about the command "javac" in MATLAB ? Any one here knows a useful link on this command other than mathworks ? Any one have some personal experience about this command ? Best H- hagopbul
- Thread
- Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
L
MATLAB How Can I Retain Image Quality While Showing Axes in MATLAB?
There is an original image test1.jpg. The problem is to show axes in the image and retain image quality. I am running the following code: img = imread('test1.jpg'); % define variables imgsize1 = size(img,1); % size on screen imgsize2 = size(img,2); xreal = 1; % meter yreal = 1; %...- Leonid92
- Thread
- Image Matlab Quality
- Replies: 7
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
L
MATLAB How to transform a plot to use a logarithmic scale?
I wrote the following code in MATLAB: t = [0:0.001:0.1]; noise = randn(1,size(t,2)); a = 15*10^9; b = 15*10^(-3); c = 7*10^8; y = a*exp(-t/b)+c+noise*100000000; fun = @(p,t)p(1)*exp(-t/p(2))+p(3); p0 = [15.5*10^9, 14*10^(-3), 6*10^8]; p = lsqcurvefit(fun, p0, t, y); t_fit = [0:0.0001:0.1]; y_fit...- Leonid92
- Thread
- Fitting Logarithmic Logarithmic scale Matlab Plot Scale Transform
- Replies: 9
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Java Why is this Java code not working?
Hello all: I am reading a comutacomputa physics book and trying a code from it in MATLAB it is not working and due to my lack of knowledge in this field I can't see where is the mistake hope you can take a look import java.lang .*; public class Motion { static final int n = 100000, j =...- hagopbul
- Thread
- Code Java Matlab Matlab code
- Replies: 7
- Forum: Programming and Computer Science
-
C
MATLAB_Quantum Well_Finite Difference Method
Homework Statement Hi, I am new to MATLAB and have an assignment where I have to construct a Hamiltonian matrix, apply boundary conditions, then find corresponding eigenvalues and eigenvectors for the electron in a box problem. I am stumped where to start. From our class we learned that you...- csc
- Thread
- Difference Finite difference method Matlab Method Particle in a box Quantum mechanics Quantum well
- Replies: 3
- Forum: Introductory Physics Homework Help
-
V
Finding the projection on matlab
Homework Statement Let u = (3, -8, 5, 5) and v = (-9, -4, -7, 2). Find ||u − projvu||. Homework EquationsThe Attempt at a Solution >> u=[3 -8 5 5] u = 3 -8 5 5 >> v=[-9 -4 -7 2] v = -9 -4 -7 2 >> proj_u_v = dot(u,v)/norm(v)^2*v proj_u_v = 1.2000...- ver_mathstats
- Thread
- Matlab Projection
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
S
Large datasets - how to handle / alternatives
Hello, I am trying to do the following: I have two inputs that are very large files - I extract the first column of each so I have two vectors of ~2-5mil by 1. This is timing information. The goal is to extract the indices of each vector where the time in one vector is within a certain...- SKT_90
- Thread
- Code Matlab
- Replies: 22
- Forum: Programming and Computer Science
-
L
MATLAB To what extent is the fit to experimental data good?
I have experimental spectrum in which y-axis is intensity values, and x-axis is frequency values. Int - array of experimental intensities (y-axis). w - array of frequencies (x-axis). I know the view of theoretical function that must describe the obtained spectrum. I explicitly set the function...- Leonid92
- Thread
- Confidence interval Data Experimental Experimental data Fit Matlab
- Replies: 12
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
V
Matlab Plotting Points and a Cubic Polynomial that passes through them
Homework Statement We were given a tutorial to complete which I did complete. Now the question is: By modifying the appropriate lines in your script file, find the values of a, b, c, and d so that the cubic polynomial y = ax3 + bx2 + cx + d passes through the (x, y) pairs (-1, 3), (0, 8)...- ver_mathstats
- Thread
- Cubic Matlab Plotting Points Polynomial
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
MATLAB How can attenuation be removed using SCIPY or MATLAB?
Dear Sirs, I have a signal which has an attenuation of 20dB per decade, how do I remove this attenuation using SCIPY? Alternatively how to do it in MATLAB if there are no SCIPY users here? I'm a SCIPY/MATLAB novice fyg. Thank you for your kind assistance Abim- Abimbola1987
- Thread
- Attenuation Matlab Numpy Python
- Replies: 23
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
F
MATLAB Limiting Map Boundaries in Matlab for Scientists
Hello everyone. I have generated a world map by plotting coastlat and coastlon. I have done it because I want to plot some data that I have over said map. The problem is that my data goes only from 70N to 40 S and from 45E to 125W, thanks to that, I have a figure which looks like in the adjoint...- Frank Einstein
- Thread
- Map Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB How do I get Matlab to show the first 10 terms of a series?
I have attached a picture of what I want Matlab to do. I basically want Matlab to show the list of independent variable 'n' and then another column showing the terms when n=0...10. Some of the outputs are in variable form and others in numerical form. My attempt so far is stated below. I have no...- majormuss
- Thread
- Matlab Series Terms
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
MATLAB MatLab: Understanding the Size Command
I have a little bit confusion that how size command work.can body explain please?. For Example A=[1 2 3;4 5 6;7 8 9]; size(A) =3 *3 but size(A,1)=3 and size(A,2)=3 and size(A,3)=1 why is size(A,3)=1?- robax25
- Thread
- Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
K
MATLAB MATLAB - solving equation with Bessel function
Hello, i am trying to solve this equation for x besselj(0,0.5*x)*bessely(0,4.5*x)-besselj(0,4.5*x)*bessely(0,0.5*x) ==0; I tried vpasolve, but it gave me answer x=0 only. fzero function didnt work, too. What function can solve this equation? Thanks- kravky
- Thread
- Bessel Bessel equation Bessel function Function Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB Issue in EMG signal using matlab with arduino
Hello I'm working on project for "design & implementation of EMG data acquisition" for now I completed the design and connected the output of the system to arduino uno to read the emg signal in real time with MATLAB 2017b using arduino support package. the problem is that the signal looks as...- Mo_Tuk
- Thread
- Adc Arduino Matlab Sampling frequency Signal
- Replies: 9
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Code: Stationary Schrodinger EQ, E Spec, Eigenvalues
Hello everyone, For weeks I have been struggling with this quantum mechanics homework involving writing a code to determine the energy spectrum and eigenvalues for the stationary Schrodinger equation for the harmonic oscillator. I can't find any resources anywhere. If anyone could help me get...- Baynie
- Thread
- Code Eigenvalues Harmonic oscillator Matlab Matlab code Schrödinger Schrodinger equation
- Replies: 1
- Forum: Advanced Physics Homework Help
-
K
MATLAB Matlab plotting and defining range
how do you define x to be from minus pi to plus pi in matlab? i tried: x = -pi : piBut when i said plot (x,y) Matlab says: "Error using plot Data must be numeric, datetime, duration or an array convertible to double" (i already defined y interms of x, that function is ok) so i culd not...- ketanco
- Thread
- Matlab Plotting Range
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Need help defining an anonymous function in Matlab
How can a step function be defined as an anonymous function in Matlab? for example for x ==3 return 1, for all other x return x. Thanks- Atlas3
- Thread
- Function Matlab
- Replies: 18
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Matlab function plotting. A continuous step function
i could use a bit of tutelage with Matlab. I have a rather simple equation I would like to plot. I want to create a rational series of primes divided by their corresponding W value from the equation I have. P are primes 2,3,5,7,11,13... I am still working on this. Thanks- Atlas3
- Thread
- Continuous Function Matlab Plotting Step function
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
D
How to use the window functions on a signal in MATLAB?
Homework Statement I am suppose to write a program that compares the FFT (Fast Fourier Transform Diagrams) of a sampled signal without the use of a window function and with it. The window function should be as long as the signal and the signal should have N points, N chosen as to not cause...- diredragon
- Thread
- Fft Fourier transform Functions Matlab Matlab code Signal Signal processing Window
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
M
Exporting a matrix to Microsoft Access: Error using database/
Hello! Below is the code for the following task: matrix "Q" with a dimension of 3*2 was obtained using a matrix of cells "A"; then the matrix "Q" is exported to Microsoft Access with the same dimension (3 rows, 2 columns). (!) The difficulty is that only the first row of the matrix is written...- Margarett
- Thread
- Database Error Matlab Matrix
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB LMI in Matlab scaling to improve condition number?
A=[ 8147 6324 9575 9572 9058 0975 9649 4854 1270 2785 1576 8003 9134 5469 9706 1419]; D=diag([T^(-3)*L^2 T^(-3)*L^2 T^(-1)*L T^0*L^0]); I have matrix A whose first two columns are of the units T^3/L^2, third columns unit is T/L, and the last...- ytht100
- Thread
- Condition Matlab Scaling
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB High pass filtering FFT2 matlab
I am having a slight issue with my code and honestly cannot understand what I am doing wrong. I am currently trying to using a high pass filter in the frequency domain to form the following image. So my approach so far after numerous of attempts which I won't list as I believe I am on the...- Taylor_1989
- Thread
- Image processing Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
L
MATLAB Can I know the reconstruction of phase shift interferometry in Matlab
I want to know the reconstruction of phase shift interferometry by angular spectrum method in matlab- Leena Thomas
- Thread
- Interferometry Matlab Phase Phase shift Shift
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
N
Gas pressure regulator model in Simscape
Hello, I want to develop a pressure regulator model in simscape. The model will be the springloaded direct acting system and the aim is to target outlet pressure, temperature and flow rate by giving input parameters as pressure, temperature, spring stiffness, length and preload, lever(it is...- NarsimhaReddy
- Thread
- Gas Matlab Mechancal engineering Model Pressure Pressure regulator Regulator Simulink
- Replies: 1
- Forum: Mechanical Engineering
-
R
Plotting Free Body Diagram for Scalar Triple Product in MATLAB
Homework Statement [/B] The scalar triple product computes the magnitude of the moment of a force vector about a specified line. It is M = ( r×F ) ⋅n , where is the position vector from the line to the point of application of the force and is a unit vector in the direction of the line. Prompt...- raviyank
- Thread
- Matlab Matlab code Product
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
J
Modify Fibonacci Function to Return nth Number - Matlab Homework
Homework Statement Modify the function so that instead of returning all n numbers, it only returns the nth number. Homework EquationsThe Attempt at a Solution I'm not sure how to return only the nth number of the fibonacci sequence. Please help.- Joon
- Thread
- Matlab Sequence
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
T
MATLAB Numerical approximation of the area under curve
I am very new too Matlab and how it all works but I am having trouble understanding at what axis the numerical integration is occurring from on the graph that I plotted. So I am currently doing an experiment in gamma ray spectroscopy and due to issue with the software we found it hard to...- Taylor_1989
- Thread
- Approximation Area Area under curve Curve Data analysis Experiemnt Matlab Numerical Numerical approximation Spectrocopy
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB Solving Chromatography PDE with MOL and ode15s
Hello all I am using the method of lines to solve the following PDE: ## \frac {\partial C} {\partial t} + F\frac {\partial q} {\partial t} + u \frac {dC} {dz} = D_{ax} \frac{\partial^2 C} {\partial z^2} ## ## \frac {\partial q} {\partial t} = k (q^{*}-q) ## With these initial conditions: ##...- msanx2
- Thread
- Chromatography Matlab Partial differential equations Pde
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Finding the bandwidth of a parallel RLC circuit (+MATLAB)
Homework Statement The attempt at a solution Constructing the total impedance of the circuit as follows, $$\frac{1}{Z_T}=\frac{1}{Z_R}+\frac{1}{Z_C}+\frac{1}{Z_L}$$ where $Z_R=R$, $Z_C=-j\frac{1}{\omega C}$ and $Z_L=j\omega L$. $$\frac{1}{Z_T}=\frac{1}{R}+j\omega C+\frac{1}{j\omega L}$$...- ItsTheSebbe
- Thread
- Bandwidth Circuit Matlab Matlab code Parallel Rlc Rlc circuit
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
MATLAB Compare MatLab vs Mathematica for CFD | Ric
I know a little bit of MatLab (for example I can solve simple, well conditioned, systems of 1st and 2nd order ODE), but I know nothing about Mathematica. I don't know whether or not start to learn how to code in Mathematica or keep studying MatLab. For example, for CFD (computational fluid...- dRic2
- Thread
- Mathematica Matlab
- Replies: 12
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MATLAB Matlab toolboxes essential for every physicist
I was looking forward to buy Matlab student license sometime this year. Anyone who has already bought a license knows that a number of toolboxes are available. Here is the site. I am not buying Simulink at this moment. So, please leave out anything related to Simulink. Other than the basic...- Wrichik Basu
- Thread
- Matlab Physicist
- Replies: 8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
N
Inertia tensor of cone around its apex
Im trying to calculate the principals moments of inertia (Ixx Iyy Izz) for the inertia tensor by triple integration using cylindrical coordinates in MATLAB. % Symbolic variables syms r z theta R h M; % R (Radius) h(height) M(Mass) % Ixx unox = int((z^2+(r*sin(theta))^2)*r,z,r,h); % First...- Noxuz
- Thread
- Cone Inertia Inertia tensor Matlab Moment of inertia Tensor
- Replies: 4
- Forum: Advanced Physics Homework Help