Questions tagged [matlab]

Use of Matlab to solve engineering problems.

Matlab is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. It can be programmed to numerically solve many engineering problems using its core functions and/or the available specialized toolboxes.

116 questions
2
votes
1 answer

How to import a CATIA assembly into SimMechanics

I need to import an assembly from CATIA into SimMechanics but in CATIA, the .stl file format is available only for part files and not for assembly files. How can I do this? Is it possible to convert between the .CATProduct and .stl file formats?
1
vote
0 answers

Temperature distribution

First of all I am just a starter in Matlab, so the program is not optimized. For now I just want to get it running. This is a 3D heat problem with boundary conditions. Fixed temperature from the north, insulated from the bottom, and we have…
0
votes
1 answer

Genetic Algorithm (GA) MATLAB

I want to find the point that a two variable function has a maximum using a genetic algorithm in MATLAB. The following code implements my function. The initial function has no minus sign. function f = coveragefn(x) p(1) = x(1)^2 -…
0
votes
1 answer

How I can separate a matrix into two matrices in Matlab?

I want to separate into two matrices in Matlab like this: $$ Q=Sq^{T}Sq $$ for example this matrix: $$ Q=\Biggm[\matrix{92.316 &31.78&240.417\cr 31.78 &194.66 &275.47\cr 240.417 &275.47 &938.99}\Biggm] $$
0
votes
1 answer

Optimization with GA (genetic algorithm)

I want to optimize the below function with GA(genetic algorithm): $$ \min_{l_{x_1},l_{x_2},l_d}||S_QS(z)||_2 $$ $S_Q$ and S(z) are defined as: $$ S_Q=\Biggm[\matrix{6.6549 &-0.806&6.883\cr -0.806 &12.146 &6.818\cr 6.883 &6.818…
0
votes
0 answers

Plotting S parameters on Matlab

I have equations for S11 and S21 parameters for a bandpass filter which are obviously frequency dependent. I know there are commands like sparameters() and rfplot() used specifically for plotting S parameter in Matlab. But I can't find the equations…
JOHN
  • 11
  • 1
0
votes
1 answer

Is more requested MATLAB or Python in companies (for engineers)?

My question is not exactly on MATLAB vs Python in terms of features (about which there are plenty of topics yet). It's a specific question for engineers who have a certain experience with some companies: have you been requested to work more with…
Kinka-Byo
  • 111
  • 4
0
votes
1 answer

Is Matlab old versions usable with Win 10 on core i3

About Matlab (a software very useful for engineerinng, too), Is "Matlab 2008" or "Matlab 2012a" usable on laptop with core "i3" with "Win 10 Home"?
0
votes
1 answer

i have problem with cartesian coordinates pendulum EOM in matlab

I made my code like this, function DK = pendulum_cartesian(t,K) g = 9.8; l = sqrt(K(1)^2 + K(2)^2); DK = zeros(4,1); DK(1) = K(3); DK(2) = K(4); DK(3) = ( (-K(1)*K(3)^2) - (K(1)*K(4)^2) + K(1)*K(2)*g )/(l^2); DK(4) = ( (-K(2)*K(3)^2) -…
-1
votes
1 answer

Matlab Polynomial Curve Fitting with Known Relationship

So, I have this matlab problem, and I'm totally lost. Below, you will find my attempt. We are supposed to fit a polynomial curve to the data, but I'm a bit confused as to how the to get a polynomial to match the known relationship. I've got polyfit…