Risposto

How do i find the RGB values of color image in range 1 to 255

If the image is stored in MATLAB as a three dimensional array, which is the usual, then the red/green/blue channel is the third ...

How do i find the RGB values of color image in range 1 to 255

If the image is stored in MATLAB as a three dimensional array, which is the usual, then the red/green/blue channel is the third ...

circa un anno fa | 0

Risposto

How to create these shapes in Matlab

Where is the m-file referenced in the problem statement? That would probably help on some of the coding structure questions. Y...

How to create these shapes in Matlab

Where is the m-file referenced in the problem statement? That would probably help on some of the coding structure questions. Y...

oltre un anno fa | 1

| accettato

Risposto

Measurement of properties from Tiff image

If you are using the Image Processing Toolbox then you are probably trying to use the regionprops function with the "Area" prope...

Measurement of properties from Tiff image

If you are using the Image Processing Toolbox then you are probably trying to use the regionprops function with the "Area" prope...

oltre un anno fa | 0

Risposto

Not able to use the if condition as desired in simulink

You need to use the "if action" subsystem along with the "if". See the example in the documentation: https://www.mathworks.com...

Not able to use the if condition as desired in simulink

You need to use the "if action" subsystem along with the "if". See the example in the documentation: https://www.mathworks.com...

oltre un anno fa | 0

| accettato

Risposto

How to copy 30K images from folder to another according to the names in train and test text listes

Use copyfile to copy a file to a new location. You could probably use arrayfun to more quickly add the full file path to the fi...

How to copy 30K images from folder to another according to the names in train and test text listes

Use copyfile to copy a file to a new location. You could probably use arrayfun to more quickly add the full file path to the fi...

oltre un anno fa | 0

Risposto

Finding average data from a large data matrix

An index vector over the available columns would work well here. Cannot be sure without a complete example of the data. Then p...

Finding average data from a large data matrix

An index vector over the available columns would work well here. Cannot be sure without a complete example of the data. Then p...

oltre un anno fa | 0

| accettato

Risposto

Coalesce data from 1000 monte Carlo simulations with different data file lengths?

With the data import tool you can generate a function like this. It needs some editing to handle some of the odd formatting of ...

Coalesce data from 1000 monte Carlo simulations with different data file lengths?

With the data import tool you can generate a function like this. It needs some editing to handle some of the odd formatting of ...

oltre un anno fa | 0

Risposto

Avoid a "loop for" to add multiple "datetime" elements to a cell array

If you can make is an N by 1 cell array and do the assignment using parenthesis indexing and num2cell, then convert that to the ...

Avoid a "loop for" to add multiple "datetime" elements to a cell array

If you can make is an N by 1 cell array and do the assignment using parenthesis indexing and num2cell, then convert that to the ...

oltre un anno fa | 0

Risposto

Create Integral, Differential, timer and counter blocks from basic blocks in simulink

You can use a Memory block, subtraction block, and gain block to approximate a differentiator, implementing the equation dx/dt =...

Create Integral, Differential, timer and counter blocks from basic blocks in simulink

You can use a Memory block, subtraction block, and gain block to approximate a differentiator, implementing the equation dx/dt =...

oltre un anno fa | 0

Risposto

How to make the flow diagram with if or any hint in Simulink?

A Stateflow chart is usually the best way to model a state diagram in Simulink. Try following the Stateflow Onramp training too...

How to make the flow diagram with if or any hint in Simulink?

A Stateflow chart is usually the best way to model a state diagram in Simulink. Try following the Stateflow Onramp training too...

oltre un anno fa | 0

Risposto

How to get the equation of irradiance varying in time for a PV model under partial shading conditions?

Simulink has a 2D lookup table block with various options for interpolation, extrapolation, and fitting. With the two inputs be...

How to get the equation of irradiance varying in time for a PV model under partial shading conditions?

Simulink has a 2D lookup table block with various options for interpolation, extrapolation, and fitting. With the two inputs be...

oltre un anno fa | 0

Risposto

Hold the value of a signal

You can use the signal builder block to define any type of piecewise continuous signal you want.

Hold the value of a signal

You can use the signal builder block to define any type of piecewise continuous signal you want.

oltre un anno fa | 0

Risposto

How to pass an input value to a Simulink block from M-file?

Your M file can put the data into the base workspace as a variable with a known name. Then your Simulink model can use the From...

How to pass an input value to a Simulink block from M-file?

Your M file can put the data into the base workspace as a variable with a known name. Then your Simulink model can use the From...

oltre un anno fa | 0

| accettato

Risposto

How to change the color of each pixel in a masked image?

See if this helps. There is probably a faster way to do it with color mapping functions in the Image Processing Toolbox but it ...

How to change the color of each pixel in a masked image?

See if this helps. There is probably a faster way to do it with color mapping functions in the Image Processing Toolbox but it ...

oltre un anno fa | 0

Risposto

I gave the initial condition correctly still the program not working.

circshift returns a vector of the same length as its input. So, j2, j5, j8, and j19 are vectors and not scalar values as the li...

I gave the initial condition correctly still the program not working.

circshift returns a vector of the same length as its input. So, j2, j5, j8, and j19 are vectors and not scalar values as the li...

oltre un anno fa | 0

Risposto

How can I merge two structs?

Due to the need to merge it might be easiest to use struct2table, table2timetable, make sure it is merged well as a time table, ...

How can I merge two structs?

Due to the need to merge it might be easiest to use struct2table, table2timetable, make sure it is merged well as a time table, ...

oltre un anno fa | 1

Risposto

Displacements and velocity from acceleration integration (accelerometer data)

The Simulink Onramp training course is a good place to start: https://www.mathworks.com/learn/tutorials/simulink-onramp.html?...

Displacements and velocity from acceleration integration (accelerometer data)

The Simulink Onramp training course is a good place to start: https://www.mathworks.com/learn/tutorials/simulink-onramp.html?...

oltre un anno fa | 0

Risposto

GUI window to manually register two images?

You can try the registrationEstimator app included with the Image Processing Toolbox.

GUI window to manually register two images?

You can try the registrationEstimator app included with the Image Processing Toolbox.

oltre un anno fa | 0

Risposto

how to run a simulation at different times

You can use the Signal Builder block to configure how you want a signal to change over time. I assume you are simulating the mo...

how to run a simulation at different times

You can use the Signal Builder block to configure how you want a signal to change over time. I assume you are simulating the mo...

oltre un anno fa | 0

Risposto

Browsing the subsystem inside model using mscript

You can use open_system to open a Simulink model to some subsystem inside the model. The second parameter to open_system should...

Browsing the subsystem inside model using mscript

You can use open_system to open a Simulink model to some subsystem inside the model. The second parameter to open_system should...

oltre un anno fa | 0

| accettato

Risposto

Load array into Simulink model from file without timestamps

If you define your matrix as a Simulink.Parameter in a data dictionary and link to that data dictionary from your model, that wo...

Load array into Simulink model from file without timestamps

If you define your matrix as a Simulink.Parameter in a data dictionary and link to that data dictionary from your model, that wo...

oltre un anno fa | 0

Risposto

How can I convert double to const real_T of a sfunction?

If x is a constant you cannot change it. You would need to supply a more complete example, it is hard to tell what you are tryi...

How can I convert double to const real_T of a sfunction?

If x is a constant you cannot change it. You would need to supply a more complete example, it is hard to tell what you are tryi...

oltre un anno fa | 0

Risposto

Simulink code generation for tcpclient

Looks like code generation support for tcpclient was added in R2019B. You may just have a configuration issue in your R2020A te...

Simulink code generation for tcpclient

Looks like code generation support for tcpclient was added in R2019B. You may just have a configuration issue in your R2020A te...

oltre un anno fa | 0

Risposto

Displacements and velocity from acceleration integration (accelerometer data)

Integration naturally has some error when integrating a sampled signal because the integration algorithm has to make assumptions...

Displacements and velocity from acceleration integration (accelerometer data)

Integration naturally has some error when integrating a sampled signal because the integration algorithm has to make assumptions...

oltre un anno fa | 0

Domanda

Does buildtool offer parallel task execution

Very little information is available on the new buildtool and buildplan features in R2022B. I cannot install R2022B at this tim...

oltre un anno fa | 0 risposte | 1

Risposto

How to change simulink variable from matlab script?

Here is a link to documentation on working with model workspace variables: https://www.mathworks.com/help/simulink/ug/change-...

How to change simulink variable from matlab script?

Here is a link to documentation on working with model workspace variables: https://www.mathworks.com/help/simulink/ug/change-...

oltre un anno fa | 1

| accettato

Risposto

The Premultiply Convention in Geometric Transformations does not support C/C++ code generation?

This is just a notational thing right? Why would it affect how the code is generated and executed? The code generation and exe...

The Premultiply Convention in Geometric Transformations does not support C/C++ code generation?

This is just a notational thing right? Why would it affect how the code is generated and executed? The code generation and exe...

oltre un anno fa | 0

Risposto

How to find the correlation between 14 subjects

xcorr2 is the MATLAB function for 2D cross correlation

How to find the correlation between 14 subjects

xcorr2 is the MATLAB function for 2D cross correlation

oltre un anno fa | 0

Risposto

Loop through ,mat files and find a specific column with conditions

If you have MAT files you load them using the load function. No need to use fopen or fread.

Loop through ,mat files and find a specific column with conditions

If you have MAT files you load them using the load function. No need to use fopen or fread.

oltre un anno fa | 0

Risposto

Non-compatibility of Microsoft Visual C++ 2022 with CUDA 11.6/11.8 toolkit on MATLAB R2022a

The GPU Coder support for VS 2022 is not yet in R2022A or R2022B yet, so that might be the problem with the combination of produ...

Non-compatibility of Microsoft Visual C++ 2022 with CUDA 11.6/11.8 toolkit on MATLAB R2022a

The GPU Coder support for VS 2022 is not yet in R2022A or R2022B yet, so that might be the problem with the combination of produ...

oltre un anno fa | 0

| accettato