Answered
I am using the system identification tool box to create a greybox model. My error is The sizes of the matrices returned by the ODE function must be consistent with the input/o
Hi @Yilin, From what I understand, you are trying to create a linear ODE grey-box model using the state space matrices return...

2 months ago | 0

| accepted

Answered
How do I reduce categorical array containing alternate spellings and formats?
Hi, I believe that you’re trying to cluster a categorical array, based on the “EditDist” function metric as distance betwee...

2 months ago | 0

Answered
Mapping 1D vector to 2D area
Hi @Prasanna Routray, I believe that you're trying to want to obtain a reverse mapping, from xPoints data to yPoints data, usin...

2 months ago | 0

Answered
create a legend that different marks in one line
Hi, In case you’re trying to merge two labels in a given row of a legend object, while drawing multiple plots, you can try u...

2 months ago | 0

Answered
How to split a kinematic track into a for loop?
Hi, I believe that you’re trying to use a loop to interactively define the start and stop points of each trial based on the...

2 months ago | 0

Answered
Input arguments must be convertible to floating-point numbers
Hi, I understand that you’re trying to evaluate and solve symbolic expressions involving some variables, while applying “ma...

2 months ago | 0

Answered
in the "label" object draw a rectangle around it
Hi, Based on the description, I understand that you are trying to create a rectangular solid border around a label object, w...

2 months ago | 0

Answered
How to initialize the Hammerstein model linear block and avoiding that the nlhw function transform the linear block to polynomial form ?
Hi, While using the “idnlhw” function to construct a Hammerstein-Weiner model object, a state-space linear model is probably ...

2 months ago | 0

Answered
Simulating Levy walk in MATLAB. (Not Levy Flight)
Hi Alakesh, From what I understand, you are trying to simulate a Lévy walk in 2D, but in order to achieve a better simulation...

2 months ago | 0

Answered
How can I design a model button counter in Simulink?
Hi @none: I understand you’re trying to build a Simulink model involving a switching logic, consisting of a push button whi...

3 months ago | 0

Answered
Loop through a table using a specific condition and generate new table satisfying the particular condition
Hi George, I understand that you intend to loop through an existing MATLAB Table and generate a new table with unique IDsalon...

3 months ago | 0

| accepted

Answered
Is there a function to create the P-P plot in Matlab, to compare two cumulative distribution functions against each other?
Hi Sim, I understand that you’re trying to generate aPP (Probability-Probability) plot of two datasets, where a pp plot is ...

3 months ago | 1

Answered
When i remove the element wise divison of the RLC beacuse RLC is single array it gives me this error Index exceeds the number of array elements. Index must not exceed 1.
Hi Ehtisham, I understand that you’re trying to solve a series of equations for a given RLC circuit and a set of initial con...

3 months ago | 0

Answered
how to solve this error index?
Hi ramya,, I understand that you’re trying to plot 50 percentile plots of 3rd column data of five .csv files, onto a single...

3 months ago | 0

Answered
calling asianbylevy for asian options with a start average date
Hi David, I understand that you intend to price an Arithmetic European style Asian Option, with an underlying asset as a fu...

3 months ago | 0

Answered
Download data dictionary programmatically
Hi Harish, I understand you are unable to programmatically download the data dictionary associated to a Simulink model and s...

3 months ago | 0

Answered
Open a picture when an object is clicked.
Hi @David Cole, In order to create a clickable field next to your SImulink blocks to open an image, you can use annotations...

3 months ago | 0

| accepted

Answered
How to create dynamic options in system object block mask parameters
Hi @Jeremy, In order to dynamically assign properties of Block Mask Parameters in Simulink, I have assumed a case of two Dro...

3 months ago | 0

Answered
Writing data Dynamically in to .mat file using c++ - Append data to existing mat file
Hi Mahendrababu, The programming language C, typically uses file pointers to keep track of the current position in the file...

3 months ago | 0

Answered
Matlab running minimised using task scheduler influences image plots
Hi Jonathan, I am unable to reproduce this issue, in the latest R2024a release of MATLAB, using the commands specified in t...

4 months ago | 0

Answered
Force symbolic variable to be constant
Hi Jose, As of MATLAB R2024a, there is no direct functionality for treating a dependent variable or symbol as constant while...

4 months ago | 0

Answered
For loop assignment error
Hi Hugo, The issue seems be to be due to a mismatch in the dimensions of the following, while assigning values to the 2D matrix...

4 months ago | 0

Answered
powergui continuous or discrete, What Does "continuous" mean in a discrete world (Computer environment)
Hey, In Simulink, the continuous mode and discrete mode refer to the simulation time representation and solver used for the si...

1 year ago | 0

| accepted

Answered
Convert day of year to UTC format?
Hey Brandon, The date time format provided by you, seemed to in the ISO 8601 format. Breaking down the format: '2012-259': dat...

1 year ago | 2

Answered
Assigning Model Simulation parameters programmatically
Hey Omkar, Assuming that you are using the latest release r2023a and that your specified parameter values are in seconds, you c...

1 year ago | 0

| accepted

Answered
Performing Fourier Transform with csv file; "error using csvread"
Hey Snow, It seems like the currently open folder in your Matlab session is not the one containing the file that you're trying ...

1 year ago | 0

| accepted

Answered
I want to make a convolution for two functions
Hi Aya, We can use a following code snippet, to first perform operations to get m(t) in time-domain and then get y(t) using inv...

1 year ago | 0

Solved


Add two numbers
Given a and b, return the sum a+b in c.

1 year ago

Answered
How to have a non-overlapping pulse for buck-boost mode?
Hi Jeanrose, You could use a pulse generator block to produce a square wave of sufficient amplitude (usually 1, which is defau...

1 year ago | 0

| accepted

Answered
How to set and extract node voltage over time in simulink
Hey there, As per the snapshot provided by you, I tried to recreate the model using Foundations Library>Electrcial components, ...

1 year ago | 0

| accepted

Load more