Réponse apportée
How to import and evaluate multiple files in matlab?
I am assuming all your data files have the same format. You should convert your current code into a function and call it 3 times...

presque 3 ans il y a | 0

Réponse apportée
Plot two functions with different pause rates at same time.
You can try something like plotting j every few steps. frames = 239; trunk = 2987; hold on lastjplotted = 0; for i = 1:tr...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Onehotencode function is giving more columns which are filled with zeros than the number of categories.
Because you are converting the entire matrix in to a categorical matrix, the categories for the entire matrix are common. If you...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Bring components to the front in app designer
If you only wish to display the image and not interact with it (eg zoom) then perhaps you can use uiimage to display your image ...

presque 3 ans il y a | 0

Réponse apportée
accessing tall cell arrays of type char
You will need to use gather function after you have completed all the operations on the data. a = tall({'aa' 'bb' 'cc'; 'dd' 'e...

presque 3 ans il y a | 0

Réponse apportée
Saving data in a GUI callback function
With app designer you don't need guidata and hobject to store your data. Create properties in your app and then you can access ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
matlab app numeric box wont update real time
include the drawnow command in your loop to force an update to the UI. https://www.mathworks.com/help/matlab/ref/drawnow.html ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Subtract element one from element two in a 1x101 row vector.
You can use the subset from 1:end-1 and 2:end to calculate without using the for loop. t = rand(1,101); tsub = t(2:end) - t(1:...

presque 3 ans il y a | 0

Réponse apportée
Confusing warning during compilation: Warning: MATLAB preference entry "SMTP_Username" has been removed.
This is the correct behaviour for security reasons. Otherwise this information will be included from the previously set values i...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Delete outliers in each column of a matrix
You can simplify your code like this. % generate test data initmatrix = rand(100,100); initmatrix(12,99) = 1000; initmatrix(...

presque 3 ans il y a | 0

Réponse apportée
imwrite, what it does with fractions and negative values
You can change to using random integer function instead of rand function. Also change the image format to png instead of jpg. ...

presque 3 ans il y a | 0

Réponse apportée
Plotting data with 5 dimensions
How about you use the stacked chart as you intended and then just change the x axis to display the value of column D. data = [6...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
App designer Tab children automatic resize work on one tab but not the other on app Window resize
Are you using a uigridlayout inside the second tab ? The best way to ensure the desired resizing behaviour is to use uigridlayou...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to link x-axis of two plots in one single plot if they have diferent sizes
This Matlab example describes how you can overlay a second Axes object on top of another axes object. https://www.mathworks.com...

presque 3 ans il y a | 0

Réponse apportée
Help: Index that Falls above the lower variation limit if more than 50% of the data points in the following 20 point window are also above?
You should create a logical array which is true for a point which is above the limit. Then we use a moving sum with a kf = 20 an...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Error using ismember function: Input A of class cell and input B of class cell must be cell arrays of character vectors, unless one is a character vector.
I suggest you keep your logic simple. just append the loop number in your filename, thereby avoiding the complicated logic altog...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Different RMSE in Regression Learner App everytime I start a new Session
The partitions would be randomly initiated. You can set a random number seed before you begin, to try and get the same results. ...

presque 3 ans il y a | 0

Réponse apportée
read a variable in an app designer interface from a Matlab script
If you want to be able to access your app inside the script, first create and assign your app to a variable, then you can access...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Multithread inside class method
You can use a combination of parfeval and data queue object to run your TCP server in parallel. You can write a function that re...

presque 3 ans il y a | 0

Réponse apportée
Mean of values before and after a specific element
If you have Matlab version greater then R2017a, you can use filloutliers or you can replace the invalid values with NaN an then ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Reading file in subfolders with readtable
use the function fullfile to get the fullpath to the file. fullpath = fullfile(pname,fname); DAT = readtable(fullpath, 'Variab...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
what is the difference between readtable () and datastore() ?
readtable is meant for reading a single file. Datastore are designed for reading multiple files of the same data format. They ar...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Tabluate data using common terms in varaible names
You can specify the rownames property of the table. a = array2table(zeros(4,4),'RowNames',{'ab' 'ac' 'ad' 'ae'},'VariableNames'...

environ 3 ans il y a | 0

Réponse apportée
Show video in App designers
Do you need to get the frames of the video for some reason. If not I propose you use uihtml to display the video instead. The e...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
is there a way to change a certain line using sprintf in textbox in app designer
uihtml supports html. So you will need to generate your text in html format. Then you can set this text as HTML Source a = uiht...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
how to sort the rows in an cell array.
You can try this out. B = {[5,6] [1,2] [5,8]}; [~,i] = sort(cellfun(@(x)sum(x.*power(10,[length(x):-1:1]-1)),B)); B = B(i)

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Import data and plot
Since your filename has a space try put it in double quotes. a = readtable("spectre libs.txt");

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to substract in table
You can use varfun to subtract the first value in the column from the rest of the values. out = varfun(@(x)x-[0;repelem(x(1),le...

environ 3 ans il y a | 0

Réponse apportée
Merging calculated solution elements cell arrays into a single column cell array
You can try using cell2mat to convert the cells into a matrix. a = num2cell(randi(3,[3 1 108])); b = cell2mat(a); b = permute...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
how to generate cell array based on the size of it.
I am bit confused what you mean by should not have 3 by leaving 2 and should not have 2 by leaving 1. I assume you just want t...

environ 3 ans il y a | 0

| A accepté

Charger plus