I do not respond to emails or personal messages, unless you want to be my Sugar Baby :)

Answered

How to select different colors and legend for the bar plot??

2nd Part of Question (Pattern Face) This code is computation intesive and is just for display purpose. (considering that max va...

How to select different colors and legend for the bar plot??

2nd Part of Question (Pattern Face) This code is computation intesive and is just for display purpose. (considering that max va...

10 days ago | 1

Answered

Dealing with NaN values in FFT

what if you remove NaNs from dataset Suppose X = [1 2 3 NaN 3 2 1]; X(isnan(X)) = [] X = 1 2 3 3 2 ...

Dealing with NaN values in FFT

what if you remove NaNs from dataset Suppose X = [1 2 3 NaN 3 2 1]; X(isnan(X)) = [] X = 1 2 3 3 2 ...

13 days ago | 0

Answered

Equalizing the size of arrays in a cell

Suppose my variable name is y if data is row vector z = cellfun(@(x) [x zeros(1,100-length(x))],y,'uni',0); if data is column...

Equalizing the size of arrays in a cell

Suppose my variable name is y if data is row vector z = cellfun(@(x) [x zeros(1,100-length(x))],y,'uni',0); if data is column...

20 days ago | 0

| accepted

Answered

datatip showing incorrect value

https://www.mathworks.com/matlabcentral/answers/557128-inaccurate-data-in-datatips-of-matlab-plot/?s_tid=mlc_lp_leaf https://ww...

datatip showing incorrect value

https://www.mathworks.com/matlabcentral/answers/557128-inaccurate-data-in-datatips-of-matlab-plot/?s_tid=mlc_lp_leaf https://ww...

21 days ago | 0

Answered

Combine fig files into one fig file?

R2020a close all open('Deney 1_1.fig') open('Deney 1_2.fig') open('Deney 1_3.fig') % f1 = figure(1); f2 = figure(2); f3 ...

Combine fig files into one fig file?

R2020a close all open('Deney 1_1.fig') open('Deney 1_2.fig') open('Deney 1_3.fig') % f1 = figure(1); f2 = figure(2); f3 ...

21 days ago | 1

| accepted

Answered

How to read Audio File into Vector?

[y, Fs] = audioread('sound.wav'); sound_duration = length(y)/Fs; t = 0:1/Fs:sound_duration; t = t(1:end-1); %% soundsc(y,Fs...

How to read Audio File into Vector?

[y, Fs] = audioread('sound.wav'); sound_duration = length(y)/Fs; t = 0:1/Fs:sound_duration; t = t(1:end-1); %% soundsc(y,Fs...

22 days ago | 1

| accepted

Answered

Binary Mask and gray scale image

I = imread('circle.jpg'); I = rgb2gray(I); M = I<125; figure,subplot(121),imshow(I) subplot(122),imshow(M) To access Imag...

Binary Mask and gray scale image

I = imread('circle.jpg'); I = rgb2gray(I); M = I<125; figure,subplot(121),imshow(I) subplot(122),imshow(M) To access Imag...

22 days ago | 0

Question

RECORD SYSTEM AUDIO IN MATLAB (NO MICROPHONES)

How to record system audio in MATLAB (for example: Song playing on Youtube) without third party app... Actually my goal is to u...

27 days ago | 1 answer | 0

Answered

Change Y-Axis position to desired origin?

Scale Up data hold on ax = gca; ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; origin = (0-20); n= ["-240-260";...

Change Y-Axis position to desired origin?

Scale Up data hold on ax = gca; ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; origin = (0-20); n= ["-240-260";...

28 days ago | 1

Question

Cost Matrix Input for Multiple Sensor Fusion

I have two sensors on a single platform (car) which are detecting a target (another car). Suppose % Sensor 1 data X1 = 100; Y1...

29 days ago | 0 answers | 0

Answered

How to move the scroll bar in TextArea using codes?( MATLAB App Designer)

https://www.mathworks.com/matlabcentral/answers/337890-i-am-using-appdesigner-i-would-like-to-programmatically-scroll-to-the-bot...

How to move the scroll bar in TextArea using codes?( MATLAB App Designer)

https://www.mathworks.com/matlabcentral/answers/337890-i-am-using-appdesigner-i-would-like-to-programmatically-scroll-to-the-bot...

1 month ago | 0

| accepted

Answered

rotation of graph node labels

https://www.mathworks.com/matlabcentral/answers/477770-is-it-possible-to-change-the-position-of-graph-plot-node-labels

rotation of graph node labels

https://www.mathworks.com/matlabcentral/answers/477770-is-it-possible-to-change-the-position-of-graph-plot-node-labels

1 month ago | 0

Answered

How to start a third party application with Matlab?

open is the command. Suppose that i want to open a word document (which is in my MATLAB path) then open('Test document.docx') ...

How to start a third party application with Matlab?

open is the command. Suppose that i want to open a word document (which is in my MATLAB path) then open('Test document.docx') ...

1 month ago | 0

Answered

How to pass name-value-pair arguments to templateTree() as a struct?

Daddy Views T_T= templateTree('Surrogate','off','Prune','on','QEToler',1e-10); opts = {'Surrogate','off','Prune','on','QETol...

How to pass name-value-pair arguments to templateTree() as a struct?

Daddy Views T_T= templateTree('Surrogate','off','Prune','on','QEToler',1e-10); opts = {'Surrogate','off','Prune','on','QETol...

1 month ago | 0

Answered

Plotting in MatLab App Builder - no x values?

Select the 2nd Option

Plotting in MatLab App Builder - no x values?

Select the 2nd Option

1 month ago | 0

| accepted

Question

Memory Usage of Figure

I have a figure containing 20 tabs where each tab contains 4 subplots with 2 line plots on each axes. Now i want to find out t...

1 month ago | 1 answer | 0

Answered

How to make 2 matrix out of 1 one matrix??

Aneg = (A<0) .* A Apos = (A>0) .* A

How to make 2 matrix out of 1 one matrix??

Aneg = (A<0) .* A Apos = (A>0) .* A

1 month ago | 1

Answered

How do you remove the grid layout in App Designer?

select all the components (you have to select them 1 by 1 using mouse and shift key) drag them out of canvas as shown below I...

How do you remove the grid layout in App Designer?

select all the components (you have to select them 1 by 1 using mouse and shift key) drag them out of canvas as shown below I...

1 month ago | 0

| accepted

Answered

Time-shift after fft & filter?

As you have taken fft first and then fftshift, so if you want to do inverse of this, you need inverse of fftshift first as it is...

Time-shift after fft & filter?

As you have taken fft first and then fftshift, so if you want to do inverse of this, you need inverse of fftshift first as it is...

2 months ago | 0

| accepted

Answered

How to show calculations value into uitable on the GUI?

Ok it is also very strange for me that set(handles.uitable,'Data',data) is not setting the uitable data while this handles....

How to show calculations value into uitable on the GUI?

Ok it is also very strange for me that set(handles.uitable,'Data',data) is not setting the uitable data while this handles....

2 months ago | 1

Answered

How to fix 'Error using contains First argument must be a string array, character vector, or cell array of character vectors.'

There are 6 fields in structure i.e. name, folder, data, bytes, isdir and datenum three of them are str and two of them are num...

How to fix 'Error using contains First argument must be a string array, character vector, or cell array of character vectors.'

There are 6 fields in structure i.e. name, folder, data, bytes, isdir and datenum three of them are str and two of them are num...

2 months ago | 0

| accepted

Answered

improve visibility of a plot

You need to Change ylim of axes turn the grid on turn minor grid on change the grid alpha for example grid on grid minor...

improve visibility of a plot

You need to Change ylim of axes turn the grid on turn minor grid on change the grid alpha for example grid on grid minor...

2 months ago | 0

Answered

Euler 's Method for falling velocity ode..

Mass = 100/6*pi*0.04^3; g=9.8; A=0.25*pi*0.04^2; U=0.0001; dt = 0.01; for t=0:dt:15-dt Error is in this line as the U size...

Euler 's Method for falling velocity ode..

Mass = 100/6*pi*0.04^3; g=9.8; A=0.25*pi*0.04^2; U=0.0001; dt = 0.01; for t=0:dt:15-dt Error is in this line as the U size...

2 months ago | 1

| accepted

Answered

How to store index values in the form of arrays using for loop?

rng default M = zeros(randi([3 6]),randi([3 6])) [u,v] = size(M) inc =1; for i = 1:u for j = 1:v indices(inc,:...

How to store index values in the form of arrays using for loop?

rng default M = zeros(randi([3 6]),randi([3 6])) [u,v] = size(M) inc =1; for i = 1:u for j = 1:v indices(inc,:...

2 months ago | 0

| accepted

Answered

image processing problem in Salt and Pepper noise

You are feeding a coloured image which is three dimensional ( RGB) while medfilt2 needs 2D data. For example I = imread('camer...

image processing problem in Salt and Pepper noise

You are feeding a coloured image which is three dimensional ( RGB) while medfilt2 needs 2D data. For example I = imread('camer...

2 months ago | 0

Answered

Error in 'From Spreadsheet ' Block in Simulink

Because the sheet you are feeding is row vector (i.e. it has 1 row and 4948 columns), while MATLAB requires column vector (i.e. ...

Error in 'From Spreadsheet ' Block in Simulink

Because the sheet you are feeding is row vector (i.e. it has 1 row and 4948 columns), while MATLAB requires column vector (i.e. ...

2 months ago | 0