Community Profile

photo

Mohammad Sami


Last seen: Today
253 total contributions since 2014

Mohammad Sami's Badges

  • Knowledgeable Level 4
  • Pro
  • 6 Month Streak
  • Revival Level 2
  • First Answer
  • Speed Demon
  • Solver

View details...

Contributions in
View by

Answered
Unevenly Map Data to an RGB Map?
You can use the colormapeditor GUI to interactively create the colour map. https://www.mathworks.com/help/matlab/ref/colormap...

ongeveer 5 uur ago | 0

Answered
Passing varibales between two callback in GUI
Use the function setappdata and getappdata instead. An example is shown here in the documentation. https://www.mathworks.com/h...

ongeveer 6 uur ago | 0

Answered
Invalid training data. The output size (8) of the last layer does not match the number of classes (6).
Your final layer has 8 outputs, however your image data store only has 6 labels / classes. If you expect there to be 8 classes, ...

ongeveer 6 uur ago | 0

Answered
Unable to run two function simultanously under App Designer
MATLAB is single threaded, if you wish to run tasks in parallel, you have to use parpool from parallel computing toolbox.

ongeveer 18 uur ago | 0

Answered
How to randomize the order of training images of a CNN?
if isShuffleable(Train_imds) newds = shuffle(Train_imds); disp('Shuffling successful.') else disp('Datastore is ...

1 dag ago | 0

| accepted

Answered
strange cell array to matrix
Use the function readtable (or readmatrix) to load your file. opts = delimitedTextImportOptions('NumVariables',2,'Delimiter',';...

1 dag ago | 0

Answered
Problem allocating 24 workers using parpool
Perhaps you can try core = feature('numcores'); pool = parpool('local',core); disp(['Pool has been started with Num Workers '...

1 dag ago | 0

Answered
Copy files, save the content, and change files name from code
From your question i assume the names in cell array are without the extensions. ext = '.dat'; %Cell_Array_A %Cell_Array_B f...

1 dag ago | 0

Answered
Import series of CSV files and perform data crunching
You need to set the NumHeader Lines to ignore the first 6 lines. folderwcsv = 'somepath'; csvs = dir(fullfile(folderwcsv,'*.cs...

1 dag ago | 0

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

3 dagen ago | 0

| accepted

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

5 dagen ago | 0

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

8 dagen ago | 0

Answered
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

8 dagen ago | 0

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

10 dagen ago | 0

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

11 dagen ago | 1

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

11 dagen ago | 0

| accepted

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

11 dagen ago | 0

| accepted

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

11 dagen ago | 0

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

12 dagen ago | 1

| accepted

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

12 dagen ago | 0

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

12 dagen ago | 0

| accepted

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

12 dagen ago | 0

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

13 dagen ago | 0

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

14 dagen ago | 0

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

15 dagen ago | 0

| accepted

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

15 dagen ago | 0

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

16 dagen ago | 0

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

16 dagen ago | 0

| accepted

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

16 dagen ago | 0

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

16 dagen ago | 0

| accepted

Load more