Answered
Finding the value of a signal before and at the time of the event in Simulink? Other than using "ToWorkspace' block of simulink.
Use the event to trigger an enabled subsystem. Theh output of an enabled subsystem only changes when or while it is triggered, ...

4 years ago | 0

| accepted

Answered
How to extract color parameters of each rice grain and then how should I compare them?
You will have to decide how to separate them based on your intended purpose. See the documentation on the regionprops function ...

4 years ago | 0

Answered
Help me to enhance the white vein in this image. Thank you
See the article "Image Filtering and Enhancement" in the MATLAB documentation for the Image Processing Toolbox. Specifically th...

4 years ago | 0

Answered
methods for differentiation between trees and grass
That is a very complicated problem. See the example Semantic Segmentation Using Deep Learning in the Computer Vision Toolbox fo...

4 years ago | 1

Answered
How to add a parameter value to the icon of an S-function block
In the Icon and Ports tab, set Run initialization to on, then anything you define in the mask workspace in the Initialization ta...

4 years ago | 0

Answered
How to convert a cell array that contains inside durations to a duration array
Not very elegant but the brute force way to copy from your cell array to a duration array: A = All_Time_msg_dist_Max{1}; f...

4 years ago | 0

| accepted

Answered
ploting or showing a 41*41*50 matrixt
Typing "doc plot" will give you documentation on a host of plotting options that MATLAB has. You can use the contour function t...

4 years ago | 0

Answered
Calculating the frequency of data
If you can do it manually, I like ginput. You use the mouse to select the points of interest and ginput returns the x and y val...

4 years ago | 0

| accepted

Answered
How to add measured frequency response function to Simulink as a transfer function block?
See the System Identification Toolbox documentation article "Frequency-Response Models", maybe the spa function. Also if you ...

4 years ago | 0

Answered
How to save column values as Mat file in for Loop
Some possible changes are in bold text below. Hard to be sure without all the data and code. dataDirectory='C:\Users\DELL\Do...

4 years ago | 0

| accepted

Answered
how to add timestep iteration and show all iteration in plot
You can use a for loop, using your t0, dt, and tf variables in a vector notation to define the values of the time variable t: ...

4 years ago | 0

| accepted

Answered
Embedded coder parameter handling
You must use a variable in your model somewhere in order for embedded coder to generate references to it in your code. Otherwis...

4 years ago | 0

| accepted

Answered
Mex Unknown Function Definition
Can you write a C function with your desired name and argument list, and pass that function to mex? See the documentation on me...

4 years ago | 0

| accepted

Answered
Basic Slider Switch question
Looks like you can only connect the Slider Switch to one block. But if that was a Constant block connected to a Data Store Writ...

4 years ago | 0

| accepted

Answered
Code Generation Order for Initialization code in Simulink
You could put the initialization code for one or both blocks in a System Initialize Custom Code block. If you know Blocks A and...

4 years ago | 0

Answered
need to generate the square pulses with delay
In the Simulink Sources library, there are Continuous Pulse Generator and Discrete Pulse Generator blocks. Maybe use one for th...

4 years ago | 0

Answered
How to force use <stdbool.h> in embedded coder? - MISRA violation
In the Model Settings, Code Generation, Custom Code section, try adding the #include statement. You might have to try multiple ...

4 years ago | 0

Answered
Disabling Data Logging in Simulink
In the Model Settings in Simulink, go to the Data Import/Export option and remove the check marks on data that you do not want t...

4 years ago | 0

Answered
Solving equation to model air pollution from traffic over time
That is a partial differential equation, so you could look at the pdeval function or the Partial Differential Equations Toolbox ...

4 years ago | 0

Answered
How to add measured frequency response function to Simulink as a transfer function block?
Yes, Simulink has transfer function blocks. You will need to select transfer function coefficients that match your response cur...

4 years ago | 0

Answered
How to solve a noise added differential equation?
I would model the differential equation in Simulink. Integrator blocks will you enter initial values for x(0) and xdot(0). Sol...

4 years ago | 0

| accepted

Answered
list MATLAB functions with a script
Open the file in the MATLAB editor and use the Analyze button to create a Code Analyzer Report.

4 years ago | 0

Answered
How can I use matlab to get the location in latitude and longitude of a certain point or area in an entire aerial image to be tested? Thanks.
See the example "Create an Interactive Map for Selecting Point Features" in the MATLAB documentation and the geoshow function. ...

4 years ago | 0

Answered
The function that makes the calculations for my code doesn't work
The variable fh appears to be defined in only one case of the switch statement. But it is used after the switch statement regar...

4 years ago | 0

| accepted

Answered
Is it possible to solve difference equation in MATLAB?
Yes it is. Reorder terms so y(k) is on one side of the equation. Write a for loop in MATLAB to solve this numerically after yo...

4 years ago | 0

Answered
Assigning random numbers to an variable
The rand function is for uniformly distributed random numbers, while randn is for normally distributed random numbers. Both fun...

4 years ago | 0

Answered
How to create a series of dimples over a plane
Not sure what you are doing overwriting the Y variable output from meshgrid and then using it as a counter later on. Try simpli...

4 years ago | 0

Answered
How can I link a Simulink library to a data dictionary?
Just like linking a data dictionary with a model, you go to Model Explorer, go to the External Data tab in the properties, and s...

4 years ago | 0

Answered
Is Matlab capable for Read and plot large netCDF files?
The ncread function accepts additional parameters if you want to read just a portion of the file, or downsample the data as you ...

4 years ago | 0

Answered
Decreasing the size of a row in a uitable
Looks like you can just change the ColumnName property directly: >> uit.ColumnName ans = 6×1 cell array {'Last...

4 years ago | 0

Load more