photo

Kartik Saxena


Last seen: 4 months ago Active since 2023

Followers: 0   Following: 0

Programming Languages:
C++, MATLAB
Spoken Languages:
English
Pronouns:
He/him

Statistics

  • Knowledgeable Level 2
  • 3 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
Different Sample time for RL environment
Hi, When creating a custom environment in MATLAB for use with the Reinforcement Learning Toolbox, you can define a 'step' funct...

5 months ago | 0

| accepted

Answered
How to solve system of coupled ode's which are dynamically increasing in every time step using ode23t?
Hi, While calling the 'ode23t' function as given below: [t, y] = ode23t(@odefun, tspan, y0); we can dynamically update the si...

5 months ago | 0

Answered
Fuel Cell Thermal Management system
Hi, To develop a controller for thermal management in a fuel cell system using Simulink, you can approach the problem by augmen...

6 months ago | 0

Answered
Help needed with finding good convergence values for X1, to X7
Hi, To find good convergence values for 'X1' to 'X7', you can try adjusting the initial guesses and the convergence tolerance. ...

8 months ago | 0

Answered
How to represent the 3-D geometry of an object by faces and vertices for Hexahedral Mesh
Hi, MATLAB provides functions for working with meshes, such as 'stlwrite' for exporting STL files. You can convert your hexahed...

8 months ago | 0

Answered
PPO Agent training - Is it possible to control the number of epochs dynamically?
Hi, Given below is the code snippet depicting the logic/pseudo algorithm you can refer to for this purpose: % Assume env is yo...

8 months ago | 0

| accepted

Answered
Solving nonlinear equations using matrix
Hi, Based on your problem, I'm adding a sample code snippet to solve this kind of problems, you can refer to it in order to des...

8 months ago | 0

Answered
Modal analysis - Stiffness Matrix - Simulink vehicle suspension model
Hi, In order to perform a general Modal Analysis, we can follow the following guidelines: 1. Linearize Your Model First, you ...

8 months ago | 0

Answered
How to I use the dielectric functions to control the relative permeability?
Hi, If you're trying to simulate the effects of magnetic materials without direct support for magnetic properties, you might ne...

8 months ago | 0

Answered
Setting Arguments using VarFun & RSIndex
Hi, Refer to the following code snippet to get an idea of how to do s: % Set RSI lookback period n = 5; % Define the rsind...

9 months ago | 0

Answered
Warning: Unable to find explicit solution. in dsolve
Hi, From the code and the error, it seems that you are trying to solve a rather complex second-order differential equation with...

9 months ago | 0

Answered
how can I get numerical simulation plot for a system of fractional order equations? If possible please provide an example.
Hi, Simulating a system of fractional order equations involves using numerical methods that can handle the non-integer order de...

9 months ago | 0

Answered
optimization and sensitivity analysis
Hi, To find the values of 'pa' and 'pb' that maximize the equation "pi = (pa + pb) * na * nb", where 'na' is a function of 'pa'...

9 months ago | 0

Answered
How to define the state disturbance loading coefficient matrix for a diffuse cyclic term in a state space model?
Hi, In order to enforce that the two disturbance variances are identical in a time series state space model with a diffuse stat...

10 months ago | 0

Answered
Can System Identification Toolbox do transfer function estimation based on measured FRF, without input / output data?
Hi, One approach I can think of, to approximate the result to a '2DOF' vibration model using the measured frequency response da...

10 months ago | 0

Answered
Can't write H5T_STD_U32LE instead it automaticallly converts to H5T_STD_U8LE
Hi, From the warning "Conversion from uint32 to datatype H5T_STD_U8LE may clamp some values", I understand that the data you ar...

10 months ago | 0

Answered
Robot arm PD controller code
Hi, Here are a few resources which might be helpful for this purpose. https://www.mathworks.com/company/newsletters/articles/t...

10 months ago | 0

Answered
determining the number of range to obtain the number of cycles using rainflow counting
Hi, If you want to get the stress ranges associated with a specific number of load cycles, such as 4 cycles, you can sum the co...

10 months ago | 0

Answered
Effects of linear model estimates
Hi, The 'fitlm' function in MATLAB does not directly provide standardized coefficients, but you can calculate them manually. He...

10 months ago | 0

Answered
How to simulate overconstrained simscape model?
Hi, If you want to prescribe a torque to the rotor of a Permanent Magnet Synchronous Motor (PMSM) without affecting the angular...

10 months ago | 0

Answered
Using PID Block Values in Mitsubishi PLC
Hi, The exact context of 'P', 'I', 'D' values in Simulink is: 'P' : Proportional gain, provided from a source external to the ...

10 months ago | 0

Answered
Structure Member Array Index Selection using Selector
Hi, I understand that you want to define Simulink block programmatically through your code. The following example from MathWor...

11 months ago | 0

Answered
Scaled Mode Shapes in Modal Analysis of a Simulated System and a Wind Turbine Blade
Hi, I understand that you want to know the basis on which mode shapes are scaled in 'Modal Analysis of a Simulated System and a...

11 months ago | 0

Answered
Agent in Workspace after training as the trained one?
Hi, In MATLAB, when you are training a reinforcement learning agent using functions like `train`, the variable in the workspace...

11 months ago | 0

Answered
Alternative of sim for Simulink model that allows code generation
Hi, I understand that you require an alternate for 'sim' command that allows code generation. You can use Simulink Coder to ge...

11 months ago | 0

Answered
Defining a formula for a linear mixed effects model
Hi, I understand that you want to run a linear-mixed effects model with two additional grouping variables. You can refer to th...

11 months ago | 0

Answered
How to set the number of independent variables of differential equations automatically?
Hi, I understand that you want to identify the number of independent variables automatically. To automate the process of creat...

11 months ago | 0

Answered
How can I extract the number of test cases contained by a test file?
Hi, I understand that you want to extract the number of test cases present in all the Test Suites. To calculate this, you can ...

11 months ago | 0

Answered
how to generate this dataset using matlab?
Hi, Based on your description, it seems like you are trying to generate a design matrix `X` for a categorical variable `Z` that...

11 months ago | 0

Answered
Where is the rigid-body mass placed and how are the nodal forces calculated in the "Reduced-order Flexible Solid"?
Hi, The Simscape Reduced-Order Flexible Solid block allows you to model the dynamics of a flexible body by providing the mass a...

11 months ago | 0

Load more