Respondida
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, ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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: ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

Respondida
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. ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

Cargar más