Question

How to zip mat files if they are less than a certain size in a folder?

Hello Dear Community, I have a folder and I have a lot of mat files in it. Each mat file contains a struct with fields: nam...

7 months ago | 1 answer | 0

Answered

how to extract specific numbers from string?

Hello Lola, You can convert to datetime object and use the properties like below: mdate = '19800101'; tmp_date = date...

how to extract specific numbers from string?

Hello Lola, You can convert to datetime object and use the properties like below: mdate = '19800101'; tmp_date = date...

7 months ago | 0

| accepted

Answered

Please how i can set the indexes of a vector or matrix in Matlab (exactly like the function set index in python)

Hello, I wrote some codes for you and I am going to share some links so that you can read in documentation and it will help. ...

Please how i can set the indexes of a vector or matrix in Matlab (exactly like the function set index in python)

Hello, I wrote some codes for you and I am going to share some links so that you can read in documentation and it will help. ...

7 months ago | 1

| accepted

Answered

solving Linear differential equation

Hi there! There are 2 ways of doing this. It depends on your B vector according to Ax = B equation system. Your solutions below...

solving Linear differential equation

Hi there! There are 2 ways of doing this. It depends on your B vector according to Ax = B equation system. Your solutions below...

7 months ago | 0

Question

How to change Heatmap's Grid (Edge) appereance and behavior?

Hi Dear Community, Today I'm dealing with a heatmap chart to make it look visually beautiful as much as possible. Here below I...

8 months ago | 1 answer | 0

Answered

How to extract data from .mat file that contains table

Hi, Here is my answer for your question. Please read my comments near each line. table_loaded = load('C:\Users\hingec\Downl...

How to extract data from .mat file that contains table

Hi, Here is my answer for your question. Please read my comments near each line. table_loaded = load('C:\Users\hingec\Downl...

8 months ago | 0

| accepted

Answered

Double sum with upper limits

Maybe something like that would help: d = rand(67,120); sum_of_cos_s = 0; result = 0; for s = 1:67 for j = 1:120 ...

Double sum with upper limits

Maybe something like that would help: d = rand(67,120); sum_of_cos_s = 0; result = 0; for s = 1:67 for j = 1:120 ...

8 months ago | 0

Answered

Programmatically testing whether a variable is an optimoptions object

Hi, Maybe something like this helps? metaClass = metaclass(opts1); if contains(metaClass.Name,'optim.options') disp('Thi...

Programmatically testing whether a variable is an optimoptions object

Hi, Maybe something like this helps? metaClass = metaclass(opts1); if contains(metaClass.Name,'optim.options') disp('Thi...

8 months ago | 0

Answered

Use of MatLab Licence

As far as I know if you have "Software Maintenance Service(SMS)" you can.

Use of MatLab Licence

As far as I know if you have "Software Maintenance Service(SMS)" you can.

8 months ago | 0

Answered

MATLAB AS EXCEL ADD ON

Have you checked the below links? Create Excel Add-Ins Create an Excel App from Matlab Code

MATLAB AS EXCEL ADD ON

Have you checked the below links? Create Excel Add-Ins Create an Excel App from Matlab Code

8 months ago | 0

Answered

how to find out distance between two points.

Here you can use this: NodeNumbersMatrix = [... 2 1 3 2 4 3 5 2 6 2 7 3 8 3 9 ...

how to find out distance between two points.

Here you can use this: NodeNumbersMatrix = [... 2 1 3 2 4 3 5 2 6 2 7 3 8 3 9 ...

8 months ago | 1

Question

How to get missing functions in Matlab 2018b about table and timetable operations?

Hello dear community! I have just realized that the functions below listed do not exist in my Matlab 2018b version with all to...

8 months ago | 1 answer | 0

Answered

Add specific date time column to every table inside a cell

Easiest and fastest way to do it using a cellfun and converting them to a timetable. Here is one line to do it all: NewCellAr...

Add specific date time column to every table inside a cell

Easiest and fastest way to do it using a cellfun and converting them to a timetable. Here is one line to do it all: NewCellAr...

8 months ago | 1

| accepted

Answered

Create a plot with a drop down menu in an App

I think you don't even need to define callback functions for your dropdowns. They are already properties of your app object. B...

Create a plot with a drop down menu in an App

I think you don't even need to define callback functions for your dropdowns. They are already properties of your app object. B...

9 months ago | 0

| accepted

Question

How to extract event start and finish indices by finding rising edges and falling edges of an array?

Hi dear community, I have a state array doesn't matter what value inside it but for example I only want to find array == 6 as ...

9 months ago | 1 answer | 0

Answered

Hello! How can i make a condition run many times?

Basically, it can be done as follows with a while block: some_condition_to_be_fullfilled = 0; while some_condition_to_be_fu...

Hello! How can i make a condition run many times?

Basically, it can be done as follows with a while block: some_condition_to_be_fullfilled = 0; while some_condition_to_be_fu...

10 months ago | 0

Answered

Remove or Undo GridLayout with App Designer.

Hi, Go to Canvas Tab, remove the tick on the "Show Grid" box.

Remove or Undo GridLayout with App Designer.

Hi, Go to Canvas Tab, remove the tick on the "Show Grid" box.

10 months ago | 0

Answered

Delete entire rows based on one condition

Hi, Try this: data = num2cell(randi(5000,240,7)); % sample random data in a cell array my_Table = cell2table(data); % conver...

Delete entire rows based on one condition

Hi, Try this: data = num2cell(randi(5000,240,7)); % sample random data in a cell array my_Table = cell2table(data); % conver...

11 months ago | 0

Answered

How to require a custom class type with addRequired?

Variable out is not defined in the function bar. Also bar is already a built-in function. Use another function name instead.

How to require a custom class type with addRequired?

Variable out is not defined in the function bar. Also bar is already a built-in function. Use another function name instead.

11 months ago | 0

Answered

unable to perform assignment because the left and right sides have a different number of elements.

Hi, It is because you defined dx = 3 as 1x1 double. Your function y_dot gives 2x1 double as result. So it is not possible to c...

unable to perform assignment because the left and right sides have a different number of elements.

Hi, It is because you defined dx = 3 as 1x1 double. Your function y_dot gives 2x1 double as result. So it is not possible to c...

11 months ago | 0

| accepted

Answered

Draw vertical lines on a plot

There is a built-in function for that. For vertical lines use xline and for horizonal lines use yline. Here is sample code: ...

Draw vertical lines on a plot

There is a built-in function for that. For vertical lines use xline and for horizonal lines use yline. Here is sample code: ...

11 months ago | 0

| accepted

Answered

Control Design without using s ”acker , place.

Basically you can check below link and videos how a state-space model created in Simulink. state space

Control Design without using s ”acker , place.

Basically you can check below link and videos how a state-space model created in Simulink. state space

11 months ago | 0

Answered

Mathematical symbols in matlab

Hi, Check this: how-to-insert-latex-equation-into-static-text-plot-in-gui You should be writing in latex format.

Mathematical symbols in matlab

Hi, Check this: how-to-insert-latex-equation-into-static-text-plot-in-gui You should be writing in latex format.

11 months ago | 0

| accepted

Answered

How can I classify data based on two columns??

Your error caused from the line for loop. You have 19 elements but m+1 will be 20. for m = 1:length(lines)-1 ... end Th...

How can I classify data based on two columns??

Your error caused from the line for loop. You have 19 elements but m+1 will be 20. for m = 1:length(lines)-1 ... end Th...

11 months ago | 0

Answered

Strange histogram from point cloud

Basically, you can decrease Histogram's 'BinCounts' property or increase 'BinWidth' property. You can define them with 'Name',...

Strange histogram from point cloud

Basically, you can decrease Histogram's 'BinCounts' property or increase 'BinWidth' property. You can define them with 'Name',...

11 months ago | 0

Answered

how to plot wind rose plot?

Hi, Have you tried this function from FEX? wind-rose

how to plot wind rose plot?

Hi, Have you tried this function from FEX? wind-rose

11 months ago | 0

Answered

Matlab coding for equation below and output as matrix

Hi, Look at this piecewise function definition: piecewise

Matlab coding for equation below and output as matrix

Hi, Look at this piecewise function definition: piecewise

11 months ago | 0

Answered

How to find an exact sequence of values?

Try Loren's findpattern2. Here is link: findpattern create vector x numbers of ones and run findpattern2. e = ones(1,x); fo...

How to find an exact sequence of values?

Try Loren's findpattern2. Here is link: findpattern create vector x numbers of ones and run findpattern2. e = ones(1,x); fo...

11 months ago | 0

| accepted

Answered

merge parts of arrays of cell array into matrix using loop

Try this: solution = repmat({rand(6,300)},1,6); cC0_ges = reshape(cell2mat(cellfun(@(x) x(1,1:20), solution,'uni',false))...

merge parts of arrays of cell array into matrix using loop

Try this: solution = repmat({rand(6,300)},1,6); cC0_ges = reshape(cell2mat(cellfun(@(x) x(1,1:20), solution,'uni',false))...

11 months ago | 0

| accepted

Answered

Trouble reading data from .mat file

Hi, Try this: fid = fopen('1.mat'); values = fread(fid); fclose(fid); It seems only file created 'MATLAB 5.0 MAT-file,...

Trouble reading data from .mat file

Hi, Try this: fid = fopen('1.mat'); values = fread(fid); fclose(fid); It seems only file created 'MATLAB 5.0 MAT-file,...

11 months ago | 0