Réponse apportée
how to check if a 3D point is inside a 3D cone
1) Define a unit vector, U, which points along the axis of the cone. 2) Define vector VR which points from the cone vertex, V...

plus de 7 ans il y a | 2

Réponse apportée
ode45 System of Equations Difficulties - Launch Vehicle Simulation
The ODE solver has a hard time dealing with discontinuities. If any part of the equation set contains discontinuities, or even ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Simulink: Signal for specified timesteps
Use a triggered subsystem to generate the desired signal. The trigger signal is based on time. <</matlabcentral/answers/uplo...

plus de 7 ans il y a | 0

Réponse apportée
Simulink: is there something like a “pre-build” callback function?
In the Simulink model configuration parameters, there is a tab for "Simulation Target\Custom Code". Here you can specify "Inclu...

plus de 7 ans il y a | 0

Réponse apportée
Simulink 'To Workspace' block inactivated when additional simulation parameters are provided
I have noticed a similar issue using simstate. see the link. <https://www.mathworks.com/matlabcentral/answers/398441-matlab-...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
ploting differential equation 2 order
Here is how to do this: y0=[0 0] tspan=[0,100] w=0.1 odefun=@(t,y) [y(2);cos(w*t)+y(2)+3*y(1)]; [t1,y1]=ode45(odef...

presque 8 ans il y a | 0

Réponse apportée
How to find the inverse of a 2x2 matrix using gaussian elimination (not using rref or lu)?
The inverse of a 2x2 is very easy to calculate: <</matlabcentral/answers/uploaded_files/118098/MatlabAnswers20180518.JPG>> ...

presque 8 ans il y a | 1

Réponse apportée
How to define time vectors using different sampling rates and plot.
You have the right idea. The convention is startValue:stepSize:EndValue t=0:0.1:300 will give 3001 samples at 0.1 s...

presque 8 ans il y a | 0

Réponse apportée
Bug Tracker for Simulation Models
In the past, I have used spreadsheets and database programs (MS Access) for issue/bug tracking in simulations. This does requir...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How can people who are bad at math and have no programming aptitude learn MATLAB? (Long question)
One Guru who I highly admire lives by the saying "There is no teaching, there is only learning". His philosophy is that the bur...

presque 8 ans il y a | 2

Réponse apportée
while loop simulink running
for c=1:10 sim('SimulinkModelName') end This will run the specified Simulink model 10 times with c=1 to 10.

presque 8 ans il y a | 0

Réponse apportée
How to make all the buttons of same size in matlab guide
Right-click on the pushbutton and open the property inspector. There you can set the exact height and width of the button (in t...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How can I evaluate the next state to take a decsion in Simulink?
Here is my thought: <</matlabcentral/answers/uploaded_files/116641/MatlabAnswers20180508.JPG>> This used duplicate control...

presque 8 ans il y a | 0

Réponse apportée
matlab simulink simstate issue
I notice the same thing. If I use this, then SimState is not saved: set_param('mysim','SaveFinalState','on','FinalStateNam...

presque 8 ans il y a | 0

Réponse apportée
Timeseries names and tscollection always empty of datas
When you save data as a time series, Matlab creates a structure which contains your output data. You select the name (e.g. "MyO...

presque 8 ans il y a | 0

Réponse apportée
S-function Restart Capability
I do this sort of thing all the time. You can do anything in an S-function, all you have to do is code it. The S-function ca...

presque 8 ans il y a | 0

Réponse apportée
Smoothing Numerical Differentiation Result
The attached file contains some higher-order methods for computing numerical derivatives. You can start with this. For very we...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
For loop and if statement in MATLAB
First of all, when calculating the masses you have to MULTIPLY the volume by the density. You should always verify this using...

presque 8 ans il y a | 0

Réponse apportée
Unable to meet integration tolerances without reducing the step size below the smallest value allowed
It's very hard to evaluate without all of the functions. The first thing I would check is the output of the interpolation funct...

presque 8 ans il y a | 1

Réponse apportée
Find propeller rotation axis using point cloud
This problem is similar to ones that I have worked in my career in missile development. You have inspection data from aerodynam...

presque 8 ans il y a | 1

Réponse apportée
Mass spring system: given code unable to run and returning errors
The code works just fine for me. Perhaps you have a variable that is ghosting one of your variables. Try clearing the workspac...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Help!! I have no idea what this question is asking, nor how to solve it...
You have a couple errors in your code. First, your calculation of the area is wrong. Area is pi*radius^2, or pi*diameter^2/4...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to write a program that will randomly return any one of the given statements
First, I agree with Birdman, use a single list of values, not N different variables. I would solve this problem based on crea...

presque 8 ans il y a | 0

Réponse apportée
When I first learned programming ...
College, FORTRAN IV, on a PDP-11 series mainframe. In my freshman year (California Polytechnic University, Pomona), punching ca...

presque 8 ans il y a | 1

Réponse apportée
How to split signal in simulink?
I'm not sure if this is the answer to your question, but Here is how to access a signal from the previous calculation iteration,...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Numerical Integration with Infinity as the upper limit
f(x) = 8*e^(-x/10) dx Integral f(x) = -80*e^(-x/10) + C

presque 8 ans il y a | 0

Réponse apportée
How can I use calculated value
I think that the reason that no one has offered an answer to your question for the last 20 hours is, in part, because the quest...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to compute Newton Raphson coding on Matlab?
Here is how I would code it: xguess = 0; % initial guess emax = 1e-7; % Maximum error imax = 1000; % maxim...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Create a vector 't' and vector 'f' where 'f' is a mathematical function to plot.
How about this: t = 0:.01:1; f = t.^2+3.*t-15; figure; plot(t,f,'b'); grid;

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to convert two 3D coordinates to Euler angles?
According to the documentation for function vrrotvec, the output of this function is a rotation vector, not a rotation matrix. ...

presque 8 ans il y a | 0

Charger plus