DISCLAIMER: Any pieces of advice or opinions posted here are of my own, and in no way reflect that of MathWorks.

Answered

how do you separate time data from signal data, plot the signal, followed by the removal of the trend without using the inbuilt ‘detrend’ function

well .... how about removing the mean to begin with? plot(t, a - mean(a));

how do you separate time data from signal data, plot the signal, followed by the removal of the trend without using the inbuilt ‘detrend’ function

well .... how about removing the mean to begin with? plot(t, a - mean(a));

3 días ago | 0

Answered

2nd Order ODE by ode45

You can walk through this: https://www.mathworks.com/help/matlab/ref/ode45.html I guess this is what you work on - read, under...

2nd Order ODE by ode45

You can walk through this: https://www.mathworks.com/help/matlab/ref/ode45.html I guess this is what you work on - read, under...

3 días ago | 0

Answered

FFT to covert time domain to frequency domain

Take a look at this page: https://www.mathworks.com/help/matlab/ref/fft.html where you can find some examples that you can uti...

FFT to covert time domain to frequency domain

Take a look at this page: https://www.mathworks.com/help/matlab/ref/fft.html where you can find some examples that you can uti...

3 días ago | 0

Answered

Newton-Raphson iteration method in Matrices

I had a quick look though ... you are having lots of errors. MATLAB has a fantastic bug finder as you can see. The areas hi...

Newton-Raphson iteration method in Matrices

I had a quick look though ... you are having lots of errors. MATLAB has a fantastic bug finder as you can see. The areas hi...

3 días ago | 0

| accepted

Answered

RSA keys generation using matlab

Hope this helps you: https://www.mathworks.com/matlabcentral/fileexchange/53457-rsa-public-key-encryption-and-signing-32bit

RSA keys generation using matlab

Hope this helps you: https://www.mathworks.com/matlabcentral/fileexchange/53457-rsa-public-key-encryption-and-signing-32bit

3 días ago | 0

Answered

Index position 2 exceeds array bounds

I had a look at it quickly - you were obviously failing in importing the pressure and the flowrate. xlsread(filename, 3, hRange...

Index position 2 exceeds array bounds

I had a look at it quickly - you were obviously failing in importing the pressure and the flowrate. xlsread(filename, 3, hRange...

3 días ago | 0

| accepted

Answered

How do I make my variables save from my function?

You're doing well! Try this: x = [1 1]; [f, grad, gradTwo] = Rosen(x) You should prepare the three variables that recieve t...

How do I make my variables save from my function?

You're doing well! Try this: x = [1 1]; [f, grad, gradTwo] = Rosen(x) You should prepare the three variables that recieve t...

3 días ago | 0

| accepted

Answered

Do we have the facility to create a network topology for cloud and fog environment in matlab

I am not an expert in this filed though I have ever introduced this product to a customer who wanted to model a rail network. h...

Do we have the facility to create a network topology for cloud and fog environment in matlab

I am not an expert in this filed though I have ever introduced this product to a customer who wanted to model a rail network. h...

3 días ago | 1

Answered

How to place a uicalendar inside a panel

How about using AppDesigner? There is a function available that looks able to meet your want. https://jp.mathworks.com/help/mat...

How to place a uicalendar inside a panel

How about using AppDesigner? There is a function available that looks able to meet your want. https://jp.mathworks.com/help/mat...

3 días ago | 0

Answered

How can I take out months rows from each year.

I guess your date is not read as string. tableData = readtable('yourExcel.xlsx'); tableData.Time = string(tableData.Time); Th...

How can I take out months rows from each year.

I guess your date is not read as string. tableData = readtable('yourExcel.xlsx'); tableData.Time = string(tableData.Time); Th...

12 días ago | 0

Answered

How to position two figures on one app-designer gridlayout position?

app.UIAxes.Visible = 'off'; Try this. It worked with my app where a push botton call this line so it can disappear.

How to position two figures on one app-designer gridlayout position?

app.UIAxes.Visible = 'off'; Try this. It worked with my app where a push botton call this line so it can disappear.

12 días ago | 0

Answered

Discretize countries into regions

One thought would be .... clustering algorithms. How about using geographical data (longitude and latitude) as an input vector ...

Discretize countries into regions

One thought would be .... clustering algorithms. How about using geographical data (longitude and latitude) as an input vector ...

12 días ago | 0

Answered

how to derive 1D heat conduction

https://jp.mathworks.com/products/pde.html?s_tid=srchtitle PDE toolbox would help you out!

how to derive 1D heat conduction

https://jp.mathworks.com/products/pde.html?s_tid=srchtitle PDE toolbox would help you out!

12 días ago | 0

Answered

How can I shade confidence intervals on a loglog plot?

x = -10:0.1:10; % between intersections yy1 =x.^2; %lower function yy2 = -(x.^2-16); % upper function x = [x,x]; % rep...

How can I shade confidence intervals on a loglog plot?

x = -10:0.1:10; % between intersections yy1 =x.^2; %lower function yy2 = -(x.^2-16); % upper function x = [x,x]; % rep...

12 días ago | 0

Answered

How can I take out months rows from each year.

d = ['190101'; '190201'; '190301']; % sample data d_datetime = datetime(d, 'InputFormat', 'yyMMdd'); % change format to datet...

How can I take out months rows from each year.

d = ['190101'; '190201'; '190301']; % sample data d_datetime = datetime(d, 'InputFormat', 'yyMMdd'); % change format to datet...

12 días ago | 1

Answered

Matlab: a function y where y is the 𝑛-th Chebyshev polynomial of the first kind evaluated at xy is the 𝑛-th Chebyshev polynomial of the first kind evaluated at xy is the 𝑛-th Chebyshev polynomial of the first k

https://jp.mathworks.com/matlabcentral/fileexchange/56566-chebyshev-polynomial I came across this but not sure if it works.

Matlab: a function y where y is the 𝑛-th Chebyshev polynomial of the first kind evaluated at xy is the 𝑛-th Chebyshev polynomial of the first kind evaluated at xy is the 𝑛-th Chebyshev polynomial of the first k

https://jp.mathworks.com/matlabcentral/fileexchange/56566-chebyshev-polynomial I came across this but not sure if it works.

12 días ago | 0

Answered

Why matlab crashes when I try to use a numpy Python package? (2019a)

https://www.youtube.com/watch?v=aJGmnPfJBuo Have you ever tried this ? - calling MATLAB from the anaconda prompt?

Why matlab crashes when I try to use a numpy Python package? (2019a)

https://www.youtube.com/watch?v=aJGmnPfJBuo Have you ever tried this ? - calling MATLAB from the anaconda prompt?

16 días ago | 0

Answered

Why matlab crashes when I try to use a numpy Python package? (2019a)

Read the documentation for R2019a. You might have counted on the latest. It might be a cause of the problem. Sometimes, there...

Why matlab crashes when I try to use a numpy Python package? (2019a)

Read the documentation for R2019a. You might have counted on the latest. It might be a cause of the problem. Sometimes, there...

17 días ago | 0

Answered

how to plot smooth line plot?

How about increasing the number of data by using interpolation?: https://jp.mathworks.com/help/matlab/ref/interp1.html?s_tid=do...

how to plot smooth line plot?

How about increasing the number of data by using interpolation?: https://jp.mathworks.com/help/matlab/ref/interp1.html?s_tid=do...

17 días ago | 0

Answered

Clustering based on threshold values.

There are various methods available:https://jp.mathworks.com/discovery/cluster-analysis.html

Clustering based on threshold values.

There are various methods available:https://jp.mathworks.com/discovery/cluster-analysis.html

17 días ago | 0

Answered

Clustering based on threshold values.

Is this a question about how to classify the data based on threshold? if condition "classification description" else ...

Clustering based on threshold values.

Is this a question about how to classify the data based on threshold? if condition "classification description" else ...

18 días ago | 0

Answered

How to find rng No. of a trained network ?

You should have taken a note or fixed the seed number before the training. As far as I know, there is no ways to find out what ...

How to find rng No. of a trained network ?

You should have taken a note or fixed the seed number before the training. As far as I know, there is no ways to find out what ...

18 días ago | 1

Answered

MATLAB code for flood model

You should define your (mathematical expression) model first, then code follows. What kind of model do you want to convert into...

MATLAB code for flood model

You should define your (mathematical expression) model first, then code follows. What kind of model do you want to convert into...

18 días ago | 1

Answered

Phase Shift between 0 and pi

I wonder if you have a good understanding on FFT :-) Remember that the signals are discrete and thus the m shift in the time do...

Phase Shift between 0 and pi

I wonder if you have a good understanding on FFT :-) Remember that the signals are discrete and thus the m shift in the time do...

18 días ago | 0

Answered

How to train neural network using newff with a custom loss function?

Which version are you using? Looks like there is no such a function. This might be a help: https://www.mathworks.com/matlabcen...

How to train neural network using newff with a custom loss function?

Which version are you using? Looks like there is no such a function. This might be a help: https://www.mathworks.com/matlabcen...

18 días ago | 0

Answered

Fourier Transform: IFFT Not Giving Original Image -- All Values Off By Same Constant

Why not using fft2?: https://jp.mathworks.com/help/matlab/ref/fft2.html I would say it is educational to write it from scratch...

Fourier Transform: IFFT Not Giving Original Image -- All Values Off By Same Constant

Why not using fft2?: https://jp.mathworks.com/help/matlab/ref/fft2.html I would say it is educational to write it from scratch...

18 días ago | 0

Answered

Creating a simple 2D contour plot from data files(xlsx or txt).

Here the function for 'contour': https://jp.mathworks.com/help/matlab/ref/contour.html?s_tid=doc_ta Give me detail if possib...

Creating a simple 2D contour plot from data files(xlsx or txt).

Here the function for 'contour': https://jp.mathworks.com/help/matlab/ref/contour.html?s_tid=doc_ta Give me detail if possib...

18 días ago | 0

Answered

How do I find if a value exists already in cell array's column, and then select the column & row to store some output data based on whether its existing or new?

There are many useful functions for preprocessing the data: https://jp.mathworks.com/help/matlab/preprocessing-data.html?s_tid=...

How do I find if a value exists already in cell array's column, and then select the column & row to store some output data based on whether its existing or new?

There are many useful functions for preprocessing the data: https://jp.mathworks.com/help/matlab/preprocessing-data.html?s_tid=...

18 días ago | 0

| accepted

Answered

Why matlab crashes when I try to use a numpy Python package? (2019a)

This might be useful: https://jp.mathworks.com/matlabcentral/answers/410406-import-numpy-to-matlab

Why matlab crashes when I try to use a numpy Python package? (2019a)

This might be useful: https://jp.mathworks.com/matlabcentral/answers/410406-import-numpy-to-matlab

18 días ago | 0

Answered

For Loop /Array question

How about this?: X = zeros(50, 50); [m, n] = size(X); % m x n = 50, 50 for i = 1:m % Row for j = 1:n % Column ...

For Loop /Array question

How about this?: X = zeros(50, 50); [m, n] = size(X); % m x n = 50, 50 for i = 1:m % Row for j = 1:n % Column ...

18 días ago | 0

| accepted