Answered
Problem solving system of differential equations using dsolve()
The input odes to the dsolve function can be a vector only when the number of indeterminates are equal to the number of odes. Ho...

4 years ago | 0

Answered
How to quickly find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix?
Here is a similar question for your reference to find the minimal number of rows in a sparse matrix to form a full-rank sub-matr...

4 years ago | 0

| accepted

Answered
Is there a way to programmatically "print" the window of the dsp.SpectrumAnalyzer to a JPG or PNG file?
Use the below code to get the spectrum analyzer window to a JPG or PNG file including the measurement data programmatically. sc...

4 years ago | 0

| accepted

Answered
niftiread niftiwrite cycle inappropriately changes image orientation
Hi Randolph, I have heard that the issue with niftiwrite function is known and the concerned parties may be investigating furth...

4 years ago | 2

Answered
how to copy circle for a new image using imfindcircle?
Use the code below to copy circle for a new image using 'imfindcircle'. theta=0:1:360; r=round(centers(1,1) + radii*sin(theta)...

4 years ago | 0

Answered
How to compute the scaled version of gray scale image
The ‘NumLevels’ property in ‘graycomatrix’ function scales the image to 8 gray scales as the default value of ‘NumLevels’ is 8. ...

4 years ago | 0

Answered
How to get the range of a complex Inequality
The range of complex inequality can be obtained by using the following syntax for ‘solve’ function. S = solve(a0>0, [kp,ki], 'I...

4 years ago | 0

Answered
how can i use 3d scatter interpolation
Use ‘scatteredInterpolant’ function to interpolate the 3d scattered data. The 3d scattered data can also be interpolated using D...

4 years ago | 0

Answered
Get data from basemap 'topographic'
1. In order to plot a rectangle on the matlab basemap ‘topographic’, use the below code. xRec = [44.56 44.51 44.51 44.56 44.56]...

4 years ago | 0

| accepted

Answered
Drawing a tangent line (concave line) for a curve
Considering the curve equation as f(x), find the derivative of the curve w.r.to the variable the curve depends on i.e. ‘x’. Eval...

4 years ago | 0

Answered
Plot animation of multivariable function
I considered a random function to plot the animation of a multivariable function. x = linspace(-2,2); y = linspace(-2,2); z =...

5 years ago | 0

Answered
How to convert an ideal filter to a non-ideal filter?
In the above code, the size of C is 3*3 due to the selection of the ‘shape’ in ‘conv2’ function as ‘same’. However, selecting th...

5 years ago | 0

| accepted

Answered
how to substitute sym variables in jacobian matrix with numeric values?
The ‘subs’ function works as expected. Please find the code shown below. Iscr = 1; Iph = 2; Vth = 5; n = 4; Vocr = 3; Im =...

5 years ago | 0

Answered
what is the code for converting .wav audio file to hex values and also the reverse of it
Use the following code to convert the .wav audio file to hex values and the reverse of it. [y,Fs] = audioread('RockGuitar.wav')...

5 years ago | 0

Answered
Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements
Hi Awais Ahmad, After creating the Simulink model, run the pulse_detector_v1_tb.mlx testbench file available from the link: htt...

5 years ago | 0

Answered
How do I edit Default Exciter = dipole in the Antenna Toolbox
Use the following code to design the reflectorCorner antenna with operating frequency 434 MHz. antenna = reflectorCorner; des...

5 years ago | 0

Answered
How to create a 3 variable Karnaugh Map
The following link might help in creating a 3 variable Karnaugh map in MATLAB. https://www.mathworks.com/matlabcentral/fileexch...

5 years ago | 0

Answered
Using the findpeaks function with threshold
The threshold value can be inputted by the user as shown below. prompt = 'What is the threshold value? '; threshold = input(pr...

5 years ago | 0

Answered
How to close the signalAnalyzer app from the command line?
As of now, closing the signal analyzer app from the command window is not supported for the available MATLAB releases. However,...

5 years ago | 2

| accepted

Answered
how do we plot enumerated data and real floating point data in the same plot/figure?
The y-axis values in the plot function do not support enumerated data types. Refer https://www.mathworks.com/help/matlab/ref/plo...

5 years ago | 1

| accepted

Answered
Did I implement the backwards-euler Methode correctly?
Hi Marchus, The backward euler method is implemented correctly, however as f is not a function of t, the plot is constant for i...

5 years ago | 0

| accepted

Answered
Hank and Tank code model
Hi MATLAB has few examples that are related to keynesian models. https://www.mathworks.com/help/econ/examples/modeling-the-un...

5 years ago | 0

Answered
how to generate an image given 2D points coordinates and the gray intensity value
Hi Luca To generate an image with the given 2D point coordinates and the gray intensity value, use the imshow function in MATLA...

5 years ago | 0

| accepted

Answered
Best way to plot spectogram of multiple single frequency inputs (0.05hz, 0.1hz, 0.15hz etc) and corresponding output data
Use the spectrogram function to plot the spectrogram of multiple single frequency inputs. Define the input signal with different...

5 years ago | 0

Answered
Save output variables from uitable in the workspace
Hi Joseba, To save the updated values of the editable table into the workspace in the newData variable, use the below command. ...

5 years ago | 0

| accepted

Answered
Numden on complex equation returns unexpected result
The given input to numden function is a symbolic expression. However, as it involves a complex number, the numden function handl...

5 years ago | 0

Answered
Is it possible to change stackedplots background color?
As of now, changing the background color in stackedplot is not supported in AppDesigner -> uifigure for the available MATLAB rel...

5 years ago | 1

| accepted

Answered
Problem combining Count and switch block in simulink
The issue occurred primarily because the Switch block is being used before the Counter block in your Simulink model. In order to...

5 years ago | 0

| accepted

Answered
Using nested loop to check for whole numbers inside a matrix
To check for whole numbers inside a matrix using nested loop, use the code as shown below. x = [1 2.5 4;3.2 6 9;5.2 6 7]; [rx,...

5 years ago | 0

Load more