Réponse apportée
Read and sort data in a text file
You can use the readtable function. It will autodetect the variable types. tab = readtable('myfile.txt'); tab = sortrows(tab,{...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
MATLAB Runtime licensing for a commercial product
From Matlab Website https://www.mathworks.com/products/compiler.html#encrypted-royalty-free https://www.mathworks.com/company/...

plus de 5 ans il y a | 0

Réponse apportée
Compiling large nested folder structure
You need to add the folder and sub folders to the path before compiling. Example add folder b and all its sub folders to the pa...

plus de 5 ans il y a | 0

Réponse apportée
How to get rid of two consecutive double quotes from my string?
if true % remove double quotes somestr = regexprep(somestr,'"',''); Numarray = char(somestr) - '0'; end

plus de 5 ans il y a | 0

Réponse apportée
Image resizing using augmentedImageDatastore
The last argument to split each label is not spelled correctly. It's splitEachLabel(___,'randomized').

plus de 5 ans il y a | 0

Réponse apportée
how to read imge from my subfolder ?
You need to include the folder name as well. % currentfilename = fullfile(d(i).folder,d(i).name); image{i} = imread(fullfile(d...

plus de 5 ans il y a | 1

Réponse apportée
How to use values from .mat file (nested struct) dependent to the variable name of value
There are quite a few options. One option is to use the structfun to apply a function to each field of the function as follows. ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Change table of structs into columns of data in a table
Based on your example data this will work. All structs must have the exact same fields, otherwise this will fail flattened = st...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
read each line of a text file and storage each into an array
The easiest way would be to read the entire file, then use string functions to extract what you need. The following should woul...

plus de 5 ans il y a | 0

Réponse apportée
Help with a for loop
Since you have an array you can use array2table function. In your for loop change ch to a cell array. ch{i} = h.invoke('Ge...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
run mp4 in app designer
If you have MATLAB R2019b and later you can easily use uihtml to play any video using html. https://www.mathworks.com/help/ma...

plus de 5 ans il y a | 0

Réponse apportée
What is the the good practice for exchanging data in App Designer?
No public / private properties are not the same as global variables. They are only available in the non static functions define...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Explanation Alexnet in deep learning ?
This code is for transfer learning. That is when you already have a pretrained model that you wish to use for another purpose. T...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to press button continuously?
If you want to update the figure rather then create new figures, you need to explicitly update the CData property of existing im...

plus de 5 ans il y a | 0

Réponse apportée
Multi-input imagedatastore
You can save the labels as a text file and then create a tabularTextDatastore to read them back. Something like this could work...

plus de 5 ans il y a | 0

Réponse apportée
Invalid training data. Responses must be nonempty when using networkTrain on CNN
If you have image processing toolbox, you may perhaps use denoisingImageDatastore https://www.mathworks.com/help/releases/R2020...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
how can i feed the pre-recorded video to the following code instead of live video(from webcam)/ or how can i save the live video in a 'disk'
You can use the VideoReader to read a video file. v = VideoReader('xylophone.mp4'); while hasFrame(v) frame = readFrame...

plus de 5 ans il y a | 0

Réponse apportée
How to load a set of images which have the same name in different subfolders for further image processing
You can use the dir function to get the list of all the files in the folder and subfolder listofallpngfiles = dir(fullfile(pwd,...

plus de 5 ans il y a | 0

Réponse apportée
How to dynamically define limits for multiple plots from user input in app designer?
Instead of having a while loop you can simply have numeric edit fields with callbacks and an ok button with callback. Once the ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
State button callback- break while loop?
You can try something like this. app.STOPButton.Enable = true; app.STOPButton.Value = 0; while(somecondition) % do somet...

plus de 5 ans il y a | 1

Réponse apportée
How to handle stiffness parameter using Try and Catch?
You can perhaps try a for loop over the various parameters. % assuming you have 5 parameters needed for your function % and yo...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to save matrix using fprintf in .txt file?
You can try using readmatrix and vertcat functions. I am assuming the default options would work in your case. files = {'f1.t...

plus de 5 ans il y a | 0

Réponse apportée
remove rows with empty variables within timetable
You can use the rmmissing function. It will remove all rows where any of the columns are missing. b = rmmissing(a);

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I plot four columns of data from a text file?
Minimal code is as follows. f = 'somefile.txt'; fid = fopen(f,'r'); out = textscan(fid,'%f %f %f %f'); out = horzcat(out{:})...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Image rotation along the frame
You have to crop the image to get rid of the black border. If you want to get the same size as the input image the you have to r...

plus de 5 ans il y a | 0

Réponse apportée
How can I run Python Functions in MATLAB?
I keep getting errors when using InProcess mode. However managed to succesfully load the modules using OutOfProcess mode, with p...

plus de 5 ans il y a | 0

Réponse apportée
How to group the rows of a matrix based on a grouping variable ?
Assuming that the folder depth is the same. you can use get the subfolder name like this. s = ["Users\MyUserName\Desktop\MyProj...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to redirect standard input and standard output using .Net System.Diagnostics.Process
You can try this. You may have to choose the option on how to decide when xfoil.exe has finished reading. process = System.Diag...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Add a new item to existing list and save it and Dot indexing is not supported for variables of this type
You need to load and save Items from a .mat file if you wish your changes to be persisted across runs. Otherwise the items will ...

plus de 5 ans il y a | 0

Réponse apportée
How to load my pre trained model and use it to predict an image
The variable gregnet can be saved and loaded from a .mat file like any other variables. save('mynet.mat','gregnet1'); file =...

plus de 5 ans il y a | 2

Charger plus