Answered

Solving Equation (Updated!)

Hello, You didn't use the 'vpasolve' function correctly. The first argument of the function 'vpasolve' should be the equation...

Solving Equation (Updated!)

Hello, You didn't use the 'vpasolve' function correctly. The first argument of the function 'vpasolve' should be the equation...

3 years ago | 0

Answered

how to plot(or view) graphs directly on simulink workspace instead of double clicking scope

You do not need to double click the scope to open the plot. In the scope window, you can select File->Open At Start Of Simulatio...

how to plot(or view) graphs directly on simulink workspace instead of double clicking scope

You do not need to double click the scope to open the plot. In the scope window, you can select File->Open At Start Of Simulatio...

3 years ago | 0

Answered

How to read CMYK image

'imread' doesn't support CMYK jpg images. But, it does support CMYK tiff images. So, you can use some third party tools to conve...

How to read CMYK image

'imread' doesn't support CMYK jpg images. But, it does support CMYK tiff images. So, you can use some third party tools to conve...

3 years ago | 0

Answered

function output dimension in Simulink

Hi Stefano, The error occurs because your MATLAB function provides the output of a variable-size but, as defined in the <http...

function output dimension in Simulink

Hi Stefano, The error occurs because your MATLAB function provides the output of a variable-size but, as defined in the <http...

3 years ago | 1

| accepted

Answered

Direction of data/axes using heatmap

Hi Jack, You can use the <https://www.mathworks.com/help/matlab/ref/heatmap.html#bvh0gj7-1-yvalues yvalues> property of heatm...

Direction of data/axes using heatmap

Hi Jack, You can use the <https://www.mathworks.com/help/matlab/ref/heatmap.html#bvh0gj7-1-yvalues yvalues> property of heatm...

3 years ago | 0

Answered

Is there a way to reset MatLab/Simulink to initial condition when first loaded?

Hi Elliot, Check out <https://www.mathworks.com/matlabcentral/answers/1093-how-do-i-reset-matlab-to-its-launched-state this> ...

Is there a way to reset MatLab/Simulink to initial condition when first loaded?

Hi Elliot, Check out <https://www.mathworks.com/matlabcentral/answers/1093-how-do-i-reset-matlab-to-its-launched-state this> ...

3 years ago | 0

Answered

i am trying to develop MPC with 2 inputs and 1 output for this i need to include disturbance model but i am getting an error , how will i solve this. I am using state space model

Hi Cifha, Check out <https://www.mathworks.com/help/mpc/examples/control-of-a-multi-input-single-output-plant.html this> exam...

i am trying to develop MPC with 2 inputs and 1 output for this i need to include disturbance model but i am getting an error , how will i solve this. I am using state space model

Hi Cifha, Check out <https://www.mathworks.com/help/mpc/examples/control-of-a-multi-input-single-output-plant.html this> exam...

3 years ago | 0

Answered

I want to learn how to implement WSN in SIMULINK. Can anyone suggest some tutorial?

Hi Akash. You can check out <http://cdn.intechopen.com/pdfs-wm/39337.pdf this> pdf and <https://www.mathworks.com/matlabcentr...

I want to learn how to implement WSN in SIMULINK. Can anyone suggest some tutorial?

Hi Akash. You can check out <http://cdn.intechopen.com/pdfs-wm/39337.pdf this> pdf and <https://www.mathworks.com/matlabcentr...

3 years ago | 0

Answered

PWM signal generator and pulse rise time

Hi Maria, The simulink->discontinuities->rate_limiter block may be useful. You can set separately rising rate and falling rat...

PWM signal generator and pulse rise time

Hi Maria, The simulink->discontinuities->rate_limiter block may be useful. You can set separately rising rate and falling rat...

3 years ago | 1

| accepted

Answered

Making an image based off RGB values of other image?

I hope your intention is to compare the images in the middle region where they are varying. I performed the logic operation and ...

Making an image based off RGB values of other image?

I hope your intention is to compare the images in the middle region where they are varying. I performed the logic operation and ...

3 years ago | 0

Answered

idnlhw command (Hammerstein-Wiener model) for MIMO system? How to set Orders and B and F matrixes for MIMO system?

For the ith output of the jth input, if the polynomial vector is for eg.- pij=[1 2 3], you can define the B like B={p11 p1...

idnlhw command (Hammerstein-Wiener model) for MIMO system? How to set Orders and B and F matrixes for MIMO system?

For the ith output of the jth input, if the polynomial vector is for eg.- pij=[1 2 3], you can define the B like B={p11 p1...

3 years ago | 0

Answered

What stage to add noise in FMCW radar system?

Hi Aimee, The receiver receives the signal corrupted by noise and performs the estimation on the corrupted signal itself. So,...

What stage to add noise in FMCW radar system?

Hi Aimee, The receiver receives the signal corrupted by noise and performs the estimation on the corrupted signal itself. So,...

3 years ago | 0

Answered

Include a Gif in Java GUI

Hi, Check out <https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated-gif-images-in-matlab this> ML ...

Include a Gif in Java GUI

Hi, Check out <https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated-gif-images-in-matlab this> ML ...

3 years ago | 0

| accepted

Answered

use imline() to draw a draggable line with fixed length

Hello Yinan, You can use the <https://www.mathworks.com/help/images/ref/imroi.addnewpositioncallback.html addNewPositionCallb...

use imline() to draw a draggable line with fixed length

Hello Yinan, You can use the <https://www.mathworks.com/help/images/ref/imroi.addnewpositioncallback.html addNewPositionCallb...

3 years ago | 0

| accepted

Answered

How to filter out peaks in a signal in Simulink?

Hello Darshan, You cannot filter the signal without some delay. You can choose the low pass filter appropriate for your purpo...

How to filter out peaks in a signal in Simulink?

Hello Darshan, You cannot filter the signal without some delay. You can choose the low pass filter appropriate for your purpo...

3 years ago | 0

| accepted

Answered

Fill the region of rotating bounding box with nearest pixel value

Hi Prashant You can design the appropriate mask and then use the functions:- <https://www.mathworks.com/help/matlab/ref/conv2...

Fill the region of rotating bounding box with nearest pixel value

Hi Prashant You can design the appropriate mask and then use the functions:- <https://www.mathworks.com/help/matlab/ref/conv2...

3 years ago | 0

Answered

Can I Download Wavelet Toolbox on Mac?

Hello, You may not have access to the wavelet toolbox as you are using the student version. You can contact your University a...

Can I Download Wavelet Toolbox on Mac?

Hello, You may not have access to the wavelet toolbox as you are using the student version. You can contact your University a...

3 years ago | 0

Answered

IIR Filter with given transfer function

Hello, From what I understand, you have the numerator and denominator in terms of 's' and the sampling frequency 'fs'. You wa...

IIR Filter with given transfer function

Hello, From what I understand, you have the numerator and denominator in terms of 's' and the sampling frequency 'fs'. You wa...

3 years ago | 0

Answered

Calculate Running average of large data set

Hello Benjamin, You can use the <https://www.mathworks.com/help/matlab/ref/movmean.html movmean> function to calculate the mo...

Calculate Running average of large data set

Hello Benjamin, You can use the <https://www.mathworks.com/help/matlab/ref/movmean.html movmean> function to calculate the mo...

4 years ago | 1

| accepted

Answered

Running calculations over columns

Hi, If you don't want to change the function, you can use the following for loop code to compute the desired output. out...

Running calculations over columns

Hi, If you don't want to change the function, you can use the following for loop code to compute the desired output. out...

4 years ago | 1

| accepted

Answered

Fast convolution of an large image and small mask

Hi, A possible solution to the problem can be to zero pad the mask image, find its fft using 'fft2', multiply it with the ima...

Fast convolution of an large image and small mask

Hi, A possible solution to the problem can be to zero pad the mask image, find its fft using 'fft2', multiply it with the ima...

4 years ago | 0

| accepted

Answered

Split imprecise checkerboard pattern

Hi Nassim, I tried finding the checkerboard lines and I could easily do it using edge+hough. i1=imread('chess.png'); ...

Split imprecise checkerboard pattern

Hi Nassim, I tried finding the checkerboard lines and I could easily do it using edge+hough. i1=imread('chess.png'); ...

4 years ago | 0

| accepted

Answered

how to use contours to compare two images?

Hello Hasan, You can use the function 'imcontour' to observe and compare the contours of the two images. But, before that, yo...

how to use contours to compare two images?

Hello Hasan, You can use the function 'imcontour' to observe and compare the contours of the two images. But, before that, yo...

4 years ago | 0

Answered

Calculating the Percent White Area from Stacked Images

Hi Sarah, In the code you mentioned, I have assumed that in your second line of code, you are binarizing I and not IBW and yo...

Calculating the Percent White Area from Stacked Images

Hi Sarah, In the code you mentioned, I have assumed that in your second line of code, you are binarizing I and not IBW and yo...

4 years ago | 0

Answered

How can I do inverse FFT? I have only frequency domain signal.

I understand that the voltage signal you want to take IFFT of is a constant signal. If you just do ifft(input_V); you sh...

How can I do inverse FFT? I have only frequency domain signal.

I understand that the voltage signal you want to take IFFT of is a constant signal. If you just do ifft(input_V); you sh...

4 years ago | 0

Answered

How can I do IFFT? only using frequency domain signal

I understand that the voltage signal you want to take IFFT of is a constant signal. If you just do ifft(input_V) you sh...

How can I do IFFT? only using frequency domain signal

I understand that the voltage signal you want to take IFFT of is a constant signal. If you just do ifft(input_V) you sh...

4 years ago | 0

Answered

RMS of a current

Hi Marino, Select the correct RMS block from the library: 'DSP System Toolbox/Statistics'. Check the 'Running RMS' option in ...

RMS of a current

Hi Marino, Select the correct RMS block from the library: 'DSP System Toolbox/Statistics'. Check the 'Running RMS' option in ...

4 years ago | 0

| accepted

Answered

How do I write in a function to close the screen if a certain button is pressed? PTB

Hi Andrew, You can make a small uicontrol object like a pushbutton and use delete(gcbf) in callback. Check the code given below...

How do I write in a function to close the screen if a certain button is pressed? PTB

Hi Andrew, You can make a small uicontrol object like a pushbutton and use delete(gcbf) in callback. Check the code given below...

4 years ago | 0

| accepted