Answered

deleting a part of a column - date to date??

clearvars close all clc % lets create the date column (I only use 1 hour with increment of 1 minute), but this should works...

deleting a part of a column - date to date??

clearvars close all clc % lets create the date column (I only use 1 hour with increment of 1 minute), but this should works...

21 jours ago | 0

| accepted

Answered

How to create a confusion matrix.

Lets use the cifar10 demo included in Matlab for your question clearvars close all clc load('Cifar10Labels.mat','trueLabel...

How to create a confusion matrix.

Lets use the cifar10 demo included in Matlab for your question clearvars close all clc load('Cifar10Labels.mat','trueLabel...

21 jours ago | 0

Answered

How to detect the black line from a captured image?

If you print it out and make a photo, then black is not pure black any more but some kind of grayish or with some kind of color ...

How to detect the black line from a captured image?

If you print it out and make a photo, then black is not pure black any more but some kind of grayish or with some kind of color ...

21 jours ago | 0

Answered

plot Datetime on x Axes

There are mainly 2 possibilities You can use datetick() to format your x axis ticks to date or time values You can define your...

plot Datetime on x Axes

There are mainly 2 possibilities You can use datetick() to format your x axis ticks to date or time values You can define your...

21 jours ago | 0

Answered

Run a script for all subfolders

You can use the asterisk (*) as wildcard to generate a file pattern and the dir command to get a struct of all the matching file...

Run a script for all subfolders

You can use the asterisk (*) as wildcard to generate a file pattern and the dir command to get a struct of all the matching file...

21 jours ago | 1

| accepted

Answered

How to write this matlab code?

In Matlab, you could write something like B = rand(8760, 30); % matrix B of size 8760x30 with random values P = rand(30, 1); %...

How to write this matlab code?

In Matlab, you could write something like B = rand(8760, 30); % matrix B of size 8760x30 with random values P = rand(30, 1); %...

21 jours ago | 0

Answered

Help!!! How to browse text file data to another function

It seems that you access the value of the button, which is not what you intend to do. What you probably want to do is to share d...

Help!!! How to browse text file data to another function

It seems that you access the value of the button, which is not what you intend to do. What you probably want to do is to share d...

21 jours ago | 0

Answered

i want to generate a sequence of n numbers

You can create sequences with the colon operator (:), for exapmle v = [4:2:100]; creates v = [4, 6, 8, ... , 100] with values ...

i want to generate a sequence of n numbers

You can create sequences with the colon operator (:), for exapmle v = [4:2:100]; creates v = [4, 6, 8, ... , 100] with values ...

21 jours ago | 0

| accepted

Answered

Plots combining into one

In line 32 of your code there is a (second) "hold on" which acts on the active axes. If you want to have two figures with one ax...

Plots combining into one

In line 32 of your code there is a (second) "hold on" which acts on the active axes. If you want to have two figures with one ax...

environ un mois ago | 0

| accepted

Answered

Extracting Data from Tall Arrays using Logical Indexing

I think you mentioned everything that you need for this task. Try this as a starting point: clearvars, close all clc % some...

Extracting Data from Tall Arrays using Logical Indexing

I think you mentioned everything that you need for this task. Try this as a starting point: clearvars, close all clc % some...

environ un mois ago | 0

Answered

what does this line mean

ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Her...

what does this line mean

ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Her...

environ un mois ago | 0

Answered

I have a set of nonlinear equations (run by rk4 method). How can I compute the Jacobian for those?

Assume you have the set of nonlinear eqations and the vector of independent variables defined in Matlab, then you can use the j...

I have a set of nonlinear equations (run by rk4 method). How can I compute the Jacobian for those?

Assume you have the set of nonlinear eqations and the vector of independent variables defined in Matlab, then you can use the j...

environ un mois ago | 0

Answered

Write value to gauge in MATLAB design app

In the inspector, look for the label of the gauge. Originally it is labeled as "Gauge". You also see this on the code page insid...

Write value to gauge in MATLAB design app

In the inspector, look for the label of the gauge. Originally it is labeled as "Gauge". You also see this on the code page insid...

environ un mois ago | 0

| accepted

Answered

Get every possible combination of an array

This could be a starting point: clearvars, close all clc arr = [-1 1 -1 1 1 1 1 1 -1]; num_arr_elements = numel(arr); ...

Get every possible combination of an array

This could be a starting point: clearvars, close all clc arr = [-1 1 -1 1 1 1 1 1 -1]; num_arr_elements = numel(arr); ...

environ un mois ago | 0

| accepted

Answered

how process sequence of the images in a loop without overwriting

Have a look at your first for loop. Here you are generating a char called fileName which is overwritten in every loop count. fur...

how process sequence of the images in a loop without overwriting

Have a look at your first for loop. Here you are generating a char called fileName which is overwritten in every loop count. fur...

environ un mois ago | 0

Answered

Deleted on request by my prof. Sorry

I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least...

Deleted on request by my prof. Sorry

I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least...

environ un mois ago | 0

| accepted

Answered

Data loading in MATLAB

Hi, have a look at uigetfile and uiopen which open a file selection dialog box. This should solve your issues. Regards, Benni...

Data loading in MATLAB

Hi, have a look at uigetfile and uiopen which open a file selection dialog box. This should solve your issues. Regards, Benni...

environ 2 mois ago | 0

| accepted

Answered

How to plot data from different folders

You can get the file information (name, folder, date, ...) of files within subfolders using the dir command and wildcards. e.g. ...

How to plot data from different folders

You can get the file information (name, folder, date, ...) of files within subfolders using the dir command and wildcards. e.g. ...

presque 2 ans ago | 1

| accepted

Answered

How to use a double index with a restriction under a for loop along with indicator function to calculate the occurrence of a given state

Sorry, i do not understand your condition and explanation for "if abs (x(i)- x(i-j))= j then S(x)=1". x is a vector. Do you want...

How to use a double index with a restriction under a for loop along with indicator function to calculate the occurrence of a given state

Sorry, i do not understand your condition and explanation for "if abs (x(i)- x(i-j))= j then S(x)=1". x is a vector. Do you want...

presque 2 ans ago | 0

Answered

Z must be a matrix, not a scalar or vector

You calculate Z (or Q2) using variables that you do not provide us. so it is not possible to give an adequate answer. Is Q2 a ma...

Z must be a matrix, not a scalar or vector

You calculate Z (or Q2) using variables that you do not provide us. so it is not possible to give an adequate answer. Is Q2 a ma...

presque 2 ans ago | 0

Answered

Moving average on window of latest inputs with Exponential Weighting method

One possibility is to use the discrete filter block with denominater = [1] and Numerator are the exponential weights. If you do ...

Moving average on window of latest inputs with Exponential Weighting method

One possibility is to use the discrete filter block with denominater = [1] and Numerator are the exponential weights. If you do ...

presque 2 ans ago | 0

Answered

how i can use nntool with a scipt

Use nnstart instead of nntool ("nntool is no longer recommended"). Within nnstart you can choose your tool (nftool, nprtool, ...

how i can use nntool with a scipt

Use nnstart instead of nntool ("nntool is no longer recommended"). Within nnstart you can choose your tool (nftool, nprtool, ...

presque 2 ans ago | 0

Answered

How can I define these on matlab?

When f is a function, then you can not "define" something like f(low) = ... because the stuff in brackets is passed to t...

How can I define these on matlab?

When f is a function, then you can not "define" something like f(low) = ... because the stuff in brackets is passed to t...

presque 2 ans ago | 0

Answered

Use of loops to print the contents of a cell array with varying number of rows

Use a struct array instead of cell array and then disp inside an arrayfun: clearvars close all clc system(1).Title ...

Use of loops to print the contents of a cell array with varying number of rows

Use a struct array instead of cell array and then disp inside an arrayfun: clearvars close all clc system(1).Title ...

presque 2 ans ago | 0

Answered

Deriving the time-domain response of an equation, from a tf

Try <https://de.mathworks.com/help/symbolic/ilaplace.html ilaplace>. Before that you have to convert the tf object to sym object...

Deriving the time-domain response of an equation, from a tf

Try <https://de.mathworks.com/help/symbolic/ilaplace.html ilaplace>. Before that you have to convert the tf object to sym object...

presque 2 ans ago | 0

Answered

I don't get the answer that i want?

What is the purpose of your code? You prompt for iii (3xi) and loop through iiii (4xi); Within the loops nothing changes, right?...

I don't get the answer that i want?

What is the purpose of your code? You prompt for iii (3xi) and loop through iiii (4xi); Within the loops nothing changes, right?...

presque 2 ans ago | 0

Answered

Is there a script function or variable to determine if running on desktop?

From the documentation: USED = desktop('-inuse') % returns whether or not the Desktop is currently in use. It does not sta...

Is there a script function or variable to determine if running on desktop?

From the documentation: USED = desktop('-inuse') % returns whether or not the Desktop is currently in use. It does not sta...

presque 2 ans ago | 0

Answered

Im ploting a graph where my x axis is in time format. How do I adjust the intervals of the x axis to be 15 minutes? Start at 00:00:00 ending at 23:45:00

You can get the char array containing your requested date values by charArray = datestr(0:minutes(15):hours(23.75),'HH:MM:ss...

Im ploting a graph where my x axis is in time format. How do I adjust the intervals of the x axis to be 15 minutes? Start at 00:00:00 ending at 23:45:00

You can get the char array containing your requested date values by charArray = datestr(0:minutes(15):hours(23.75),'HH:MM:ss...

presque 2 ans ago | 0

Answered

How to make a softer plot using a moving average every ''x'' skips?

If you have signal processing toolbox than you can use moving average filter or more advanced filtering techniques as described ...

How to make a softer plot using a moving average every ''x'' skips?

If you have signal processing toolbox than you can use moving average filter or more advanced filtering techniques as described ...

presque 2 ans ago | 0

Answered

How to concatenate variables from the workspace with a constant part in their name?

You can use the cell returned by the who command and pass it to the "eval" function to get the values of the variables. You coul...

How to concatenate variables from the workspace with a constant part in their name?

You can use the cell returned by the who command and pass it to the "eval" function to get the values of the variables. You coul...

presque 2 ans ago | 0