Answered
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...

1 year ago | 1

| accepted

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Answered
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. ...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

Answered
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 ...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Answered
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'...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Answered
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)

1 year ago | 0

| accepted

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

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Answered
How to generate a Gaussian random variable?
You can use the function randn to generate the random variable as desired. a = 2; % standard deviation b = 0; % mean nrow = 1...

1 year ago | 0

Answered
Could anyone help me how to simplify the following code.
I am not sure why you are creating a nested cell array. However you can do it like this. B = arrayfun(@(x,y)cell(x,y),ones(15,1...

1 year ago | 0

| accepted

Answered
if statement for two arrays
I cannot comment on the chemical engineering side. However assuming that your data have multiple columns and you only want to re...

1 year ago | 0

Answered
Is there a Layer to perform L2 Normalization in CNN?
In matlab you can train a SSD Network using the trainSSDObjectDetector Function in computer vision toolbox. Some documentation ...

1 year ago | 0

Answered
Configure multiple lines of same Line Properties in a single line?
I think the best you can do is as follows. lines = line([0 0 0 5; 5 5 0 5],[10 0 0 0; 10 0 10 10],'linewidth',3,'color','r','l...

1 year ago | 0

| accepted

Answered
Share one callback with multiple elements and pass on the respectively number in the callback
Yes you can assign the same callback to multiple objects. The above code you shared is fine. However you can access the value ...

1 year ago | 1

| accepted

Answered
Synchronize sensor data from multiple sensors
The easiest way to do this is to import your data as timetables and then use the built in synchronize function. Details and exam...

1 year ago | 0

Answered
Store .txt files from different subfolders
You can use the dir function to list all the txt files in the folder and its subfolders. mytopleveldir = "C:\path\to\my\topleve...

1 year ago | 0

Answered
Problem accessing member in OOP
You need to change this to a handle class instead of a value class. classdef LoginDialog < handle

1 year ago | 0

Answered
Plotting data at a fast rate in app designer
Similar to how you are storing UIAxes in the app properties you need to store the plot and the heatmap in the properies as well....

1 year ago | 0

Answered
Transparency violation error. 'save' in 'parfor' loop
How about you define two save functions function mysave1(sp2,CSname,record) save([sp2,'\',CSname,'_rec'],'record'); end fu...

1 year ago | 1

| accepted

Answered
Code source for mathworks tutoriel video (Face Recognition with MATLAB)
It's published on file exchange. you can get it from there. https://www.mathworks.com/matlabcentral/fileexchange/68985-real-tim...

1 year ago | 0

Load more