質問

Perform AND operations with multiple matrices

Hi all, I am performing AND operations with multiple matrices, where I have a cell array M={1x3} containing three matrices of a...

2年以上 前 | 3 件の回答 | 0

質問

Obtain single equation from a system of equations stored as an anonymous function

Hi all, I would like to ask if it is possible to use some sort of notation or other trick, such that I can obtain one of the t...

2年以上 前 | 1 件の回答 | 0

質問

How to reshape an array in a specific manner

Hi all, I was trying to reshape an array in a specific manner, however I couldn't accomplish that. Here is the example: I hav...

2年以上 前 | 2 件の回答 | 0

質問

Access previous iteration in while loop to derive stopping criterion for differential equation correction-prediction method

Hi all, I have been trying to write a prediction-correction method for matrix differential equations, however I have been unsu...

2年以上 前 | 1 件の回答 | 0

質問

ODE45 stop when steady state occurs in a periodic function

Hi all, I have a typical set of equations for a forced spring-mass-damper system, which I have managed to solve successfully. ...

2年以上 前 | 1 件の回答 | 0

質問

Too many input arguments for Max function in 2018b

Hi all, I am using the function 'max' in its newest format for 2018b, as shown here, and I have the following code: A = randi...

2年以上 前 | 1 件の回答 | 0

質問

Find zeros of numeric function

Hi all, I have a numeric function which for the sake of simplicity resembles the following: x = linspace(1:100) ; y = sin(x...

2年以上 前 | 1 件の回答 | 0

質問

ODE45 calculating the total energy in the system and checking the solver

Hi all, I have a simple code written for a 3 degree of freedom damped cart-mass system. My aim is that besides by solving for ...

2年以上 前 | 1 件の回答 | 0

質問

Convergence with fsolve?

Hi all, I was trying to solve a system of equations using fsolve that I havent' been succesfull in doing so. So I have the fol...

3年弱 前 | 0 件の回答 | 0

質問

Simscape custom component to have one parameters unit change depending on the input of another parameter

Hi all, I am creating a custom simscape block and it all works fine, except the units. The equation is Torq = D1*w + D2*w^PE a...

3年弱 前 | 0 件の回答 | 1

回答済み

How to dynamically size arrays in Simscape custom component?

Have you tried writing right next to your inputs something like: inputs (Size = Variable). I do not know if it works but it is s...

How to dynamically size arrays in Simscape custom component?

Have you tried writing right next to your inputs something like: inputs (Size = Variable). I do not know if it works but it is s...

3年弱 前 | 0

質問

Simscape/Simulink algebraic loop causing trouble?

Hi all, I have created a 2 degree of freedom model of an engine driving a propeller with a 'flexible crankshaft' modelled in s...

3年弱 前 | 0 件の回答 | 0

回答済み

How to make a new Simscape model in ".ssc" File.

Well.. I was running into the exact same problem as @Yji Ito and @Chris Matthews run into. After experimenting I managed to get ...

How to make a new Simscape model in ".ssc" File.

Well.. I was running into the exact same problem as @Yji Ito and @Chris Matthews run into. After experimenting I managed to get ...

3年弱 前 | 1

| 採用済み

質問

Simulink 'To File' Block: How to save simulation outputs as distinct vectors

Hi all, How is it possible to save in simulink a bunch of simulation outpus in the same .mat file (using the 'To File' block),...

3年弱 前 | 1 件の回答 | 0

回答済み

Loading Files of Similar Names into Script

Hi there, Would the code below help? Essentially you can use sprintf function to create a cell array with all the file names...

Loading Files of Similar Names into Script

Hi there, Would the code below help? Essentially you can use sprintf function to create a cell array with all the file names...

3年弱 前 | 0

| 採用済み

質問

Simulink error: The data abscissae must be distinct and strictly monotonic.

Hi all, I have constructed a simulink model, where within the model I have a MATLAB function block as you can see. Within that ...

3年弱 前 | 1 件の回答 | 0

回答済み

Solver for nonlinear second order ODE has large residuals when mass matrix becomes state dependent

I ended up solving the above equation with sufficiently low residuals, by choosing a sufficiently small tspan and running the od...

Solver for nonlinear second order ODE has large residuals when mass matrix becomes state dependent

I ended up solving the above equation with sufficiently low residuals, by choosing a sufficiently small tspan and running the od...

3年弱 前 | 1

| 採用済み

質問

Solver for nonlinear second order ODE has large residuals when mass matrix becomes state dependent

Hi all, I currently have a nonlinear second order ODE that when I try to solve with any of MATLAB's ODE solvers, I get unaccep...

3年弱 前 | 2 件の回答 | 0

質問

ode45 unexpected behaviour for initial conditions = 0

Hi all, I have a code where I am using it to solve the following differential equation: In specific, the above is a 4x4 sys...

3年弱 前 | 1 件の回答 | 0

質問

How to determine convergence of ode45

Hi all, I was wondering how it is possible to determine convergence of ode45 for a simple damped mass-spring system. So here i...

3年弱 前 | 0 件の回答 | 0

質問

How to extract the value of dydt from ode45 function

Hi all, I have written a code of a damped mass-spring system, that takes as inputs the relevant mass, damping, stiffness and ex...

3年弱 前 | 1 件の回答 | 0

質問

Change from set notation to dot notation

Hi all, Just in order to keep uniformity in my code, I would like to know if its possible to change the below expression fro...

約3年 前 | 1 件の回答 | 0

回答済み

ODE45 Multiple Degrees of Freedom

I have found the problem, and as I suspected, it was in the function. the correct function is: (i still don't fully understand...

ODE45 Multiple Degrees of Freedom

I have found the problem, and as I suspected, it was in the function. the correct function is: (i still don't fully understand...

約3年 前 | 0

質問

ODE45 Multiple Degrees of Freedom

Hi all, I am having difficulty in modelling a 3DOF system usng ODE45 as I am not getting the correct result. Therefore I woul...

約3年 前 | 3 件の回答 | 0

質問

ode45 does not return the right answer for internal combusion engine pressure profile

Hi all, I have been getting plenty of practice the last few days with ODE45 and there is one problem I am trying to solve that...

約3年 前 | 0 件の回答 | 0