Answered
Need to assign values to variable in a vector
The subs function helps in doing the symbolic substitution. The following snippet will do the substitution. x1=input("Please In...

2 years ago | 0

Answered
Simulink modeling from the command line
Refer to the following MATLAB Answer. Question 2 addresses the above query. https://in.mathworks.com/matlabcentral/answers/1011...

2 years ago | 0

| accepted

Answered
Input folders or files do not contain specified file extensions:
Here if you do not define the ReadFcn explicitly, the default function used is imread() which is not supported for .nii extensio...

2 years ago | 1

| accepted

Answered
Inserting Bounding Boxes when it is more than two together
A simple if condition before displaying the annotation will do if (size(bboxes,1) > 1) for ii = 1 : size(bboxes, 1) ...

2 years ago | 0

| accepted

Answered
alt key in live script
You can disable the toolbox mnemonics by executing the following command. com.mathworks.desktop.mnemonics.MnemonicsManagers.get...

2 years ago | 4

Answered
How to plot PWM signal with specific duty cycle and frequency ?
The following answer explains how to generate a square wave in Matlab with frequency,​amplitude,​voltage offset, and duty cycle....

2 years ago | 1

| accepted

Answered
rand(n,1)
It is difficult to reason why exactly three different pairs generated from the above information. Atleast from MATLAB R2012a on...

2 years ago | 0

Answered
Question of FFFT in Matlab
The frequency of the sine wave is defined as 128 Hz (f = 128) in the above code. Hence there will be two impulses (ideally, but ...

2 years ago | 0

| accepted

Answered
Editing y limits for multiple axes using property inspector
The properties of both the axes can be edited by using the property inspector. If the right axes property needs to be edited, f...

2 years ago | 0

| accepted

Answered
Audio Record Object Empty when trying to start/stop with buttons in AppBuilder
Here the recObj is local to the function RECORDButtonPushed and its scope is limited to that function. Hence it is not accessibl...

2 years ago | 1

Answered
Bug with conv2
The above output from conv2 with the argument as 'valid' is expected. If you are computing in the paper the kernel needs to be ...

2 years ago | 1

| accepted

Answered
Not defining backward loss leads to an 'Abstract classes cannot be instantiated' error. Why is that?
I think your MATLAB version is R2019a or earlier and you are referring to the documentation of R2019b. In MATLAB R2019a and ear...

2 years ago | 0

Answered
Error when building a array code
Hello, The error is generated since the right hand side of zm3(i,j+1) = rain(:,:,2+yr*38); is a matrix with dimension 141x71...

2 years ago | 0

Answered
How can I create a column matrix whose elements are unknown variables
If you know n, then you could define a column vector as vector = zeros(n,1); Later you can assign the values for each position...

2 years ago | 0

Answered
How to separate the elements of a table with their names?
I am not sure of getting rid of the for-loop. But the following code can achieve what you are looking for neatly. Assume T is ...

2 years ago | 0

Answered
Centered FFT & DFT: cannot devise required phase shift vector(s).
fftshift will shift the zero frequency components to the center of the spectrum.

2 years ago | 0

Answered
How to change vertical alignment on worldmap figure?
The following code will move the meridian (longitude) labels to ‘baseline’ position. load korea map_axis = worldmap(map, ref...

2 years ago | 0

| accepted

Answered
How to create a bounding box with a right angled triangle.
I assume that a bounding box is needed to be drawn over a right-angled triangle. x1 = [0 1 0]; y1 = [0 0 1]; polyin = poly...

2 years ago | 0

Answered
How to find cells corresponding to zero lag in an autocorrelation function
The zero lag produces the highest value in the autocorrelation output. Hence simply finding the maximum value of the autocorrela...

2 years ago | 0

| accepted

Answered
anyway to call checkbox in appdesigner programmatically?
I assume that you have already created a checkBox in app-designer, and you want to check or uncheck the checkBox programmaticall...

2 years ago | 1

Answered
Why doesn't audiowrite write metadata (title, etc) to wav file?
Refer similar question, https://in.mathworks.com/matlabcentral/answers/480095-audiowrite-function-is-not-saving-the-title-or-ar...

2 years ago | 0

Answered
Audiowrite function is not saving the title or artist information
The MATLAB function audiowrite correctly writes the title as well as Artist information to the file created. You can verify the ...

2 years ago | 1

| accepted

Answered
create gui using matlab
You can implement the GUI using MathWorks App Designer. Invoke App Designer by entering appdesigner in MATLAB Command Window an...

2 years ago | 0

Answered
Noise Power for the Band limited white Noise Block
The Noise Power Parameter Specify the height or the y-axis of the PSD (Power spectral density) of the white noise. Hence the uni...

2 years ago | 0

Answered
Reinforcement Learning Toolbox: Discount factor issue
In the Episode Manager you could view the discounted sum of rewards for each episode named as Episode Reward. This should be the...

2 years ago | 0

Answered
Trying to find best fit of the shape y = a/(x-b)+c. Getting warning of badly conditioned polynomial sometimes but not always.
Try scaling and shifting the input x such that the mean of x is zero and the standard deviation as one. This scaling and shiftin...

3 years ago | 0

Answered
can someone explain the error in this input for loop
If you can see the issue again, revert with the error message and the code you have used. Also correct the usage of fprintf comm...

3 years ago | 0

Answered
Wave Upward Zero Crossing Function
The variable len3 is defined in the following loop. if xDetrended(1,1)==0 & xDetrended(2,1)>0 len3=1; end if (xDetrended(1,...

3 years ago | 0

Answered
Communication Toolbox General CRC Generator
Since your data is an array of integers and the General CRC Generator block expects binary, you could use an integer to bit conv...

3 years ago | 0

Answered
how to Use cumsum for a random variables of times to reach a certain value
I understand that you have packet arrival times generated randomly and I assume you want to find the number of packet arrival in...

3 years ago | 0

| accepted