Community Profile

photo

Mohammad Sami


Last seen: 2 days ago
190 total contributions since 2014

Mohammad Sami's Badges

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

View details...

Contributions in
View by

Answered
About Plotting using App designer
You have to edit the function and provide an additional input to the function. The added input variable is the uiaxes that you w...

3 days ago | 0

| accepted

Answered
Using variables from other callbacks
You dont have to use setappdata, getappdata in app designer. You can store the values that you want to be available in your app...

3 days ago | 0

| accepted

Answered
Is it possible to track changes to the script in matlab?
It is recommended that you use source control to keep track of changes to your code. Git is a popular option for source control....

4 days ago | 0

| accepted

Answered
Can third party extract code from standalone desktop app developed using app designer matlab?
You have two options. You can compile your code using the Matlab compiler, which will prevent the users from being able to see...

4 days ago | 0

| accepted

Answered
Transform table to combine data
You can use the function unstack to accomplish this. Read documentation for more details if true U = unstack(T,'NX','...

9 days ago | 0

| accepted

Answered
findpeak for every column of a matrix
You can use size(y_p,2) to find how many columns there are in your data. Thereafter you can either use a for loop or arrayfun t...

13 days ago | 0

| accepted

Answered
When I use “regressionLayer”, how to replace the default “lossfunction” of matlab, namely MSE
You can try creating your own custom regression layer. An example can be found here https://www.mathworks.com/help/deeplearnin...

16 days ago | 1

| accepted

Answered
How to sort a struct
You can try like this. % a = somestruct; [~,index] = sortrows([a.Var3].'); a = a(index);

17 days ago | 0

| accepted

Answered
Can anyone explain how to do concatenation of flatten outputs from CNN with the outputs from DNN?
Try using the concatenation Layer, introduced since R2019a. https://www.mathworks.com/help/releases/R2020a/deeplearning/ref/nne...

17 days ago | 0

Answered
Java Static Libraries defined in javaclasspath.txt are not loaded in the parallel pool
After some search on the forum. It seems that if javaclasspath.txt is located in the "preference directory" it will be loaded co...

18 days ago | 0

| accepted

Question


Java Static Libraries defined in javaclasspath.txt are not loaded in the parallel pool
I have placed the file javaclasspath.txt file in my Matlab working folder. User\Documents\MATLAB\javaclasspath.txt This loads t...

18 days ago | 1 answer | 0

1

answer

Answered
Plotting graph from table using app designer
First in your app in the design view, you will need to add an UIAxes to the app. Thereafter you can plot on it. Add a callback ...

18 days ago | 0

| accepted

Answered
Text reader to numbers
Assuming the pattern shown in your picture. Ignore line 1, line 2& line 3 form a repeating pattern. I would suggest read the en...

18 days ago | 0

Answered
Changing data headers in a table (looped)
What is discouraged is dynamic evaluation of a commands which is a security risk. (Risk of code injection) Dynamic referencing ...

19 days ago | 0

| accepted

Answered
Is it possible to accelerate the speed of saving data into files with parallel way?
Is there a reason why you want to use a for loop to write this ? You can write the entire matrix to file in one go using writem...

19 days ago | 0

Answered
select/save part of database into another database
I assume you are able to read the excel directly using the readtable function. % excelfilepath = 'C:\...'; % DBA = readtable(e...

23 days ago | 0

| accepted

Answered
Train images using DNN using Label as CSV file
From your question it seems like you want to do transfer learning. Matlab documentation provide a detailed guide on how to do tr...

23 days ago | 0

Answered
Find string corresponding to another string within a text file
Station name is a char / string. however you are using str2double. This will ofcourse give you a nan output. You can remove the...

23 days ago | 1

| accepted

Answered
calling python function from Matlab
Moved to answer According to the docs, a missing string value will translate to none in python. https://www.mathworks.com/help...

25 days ago | 1

Answered
Changing the format of mat file
If you have a 3D matrix, you can use the function permute to move the dimensions. edc = rand([3 4 5]); cde = permute(edc,[3 2 ...

25 days ago | 0

| accepted

Answered
APP DESIGNER. How can I use a variable generated by one function in another funcion?
You need to create an app property dicom_files to store the values in. Change to code view, click the property button, click p...

1 month ago | 1

| accepted

Answered
Error when using convolution2dLayer between connected maxPooling2dLayer and maxUnpooling2dLayer
You convolution layer is changing the number of channels in the output after the max pooling. This causes the input size mismat...

1 month ago | 0

| accepted

Answered
3D plot from tables in timeline
Based on my understanding each file 'data1.txt' is from one particular time Different number of rows means, you are missing cer...

2 months ago | 0

| accepted

Answered
Filling out an empty column in an existing table based on conditions matching other columns
% t1 = yourtable logic1 = startsWith(t1.column3varname,'fast') & startsWith(t1.column4varname,{'boat' 'car' 'airplane'}); logi...

2 months ago | 0

| accepted

Answered
How do I convert this for loop in to while loop with same sequence of number.
x = 0; while x <= 50 disp(x); x = x + 2; end

2 months ago | 0

Answered
Why the user was asked to install Matlab runtime for my standalone application?
You may have distributed the compiled exe rather then the installer. When compiling an App three directories are generated. for...

2 months ago | 0

| accepted

Answered
how to do normalization of a matrix
You can use the function normalize and specify which dimension you want to normalize. From the documentation "N = normalize(A...

2 months ago | 0

| accepted

Answered
How to rename multiple files in a folder with variable names depending on their names in another folder?
You dont need the *. you can do as follows. match = regexp(oldnames,'3\d{3}','match');

2 months ago | 0

| accepted

Answered
How to turn on the grids of axes upon start?
Use the function grid to turn off the grid. You can do this in the startup function as Rik mentioned grid(handles.axes1,'off');...

2 months ago | 0

Answered
Fastest way to replace multipe substrings with a single new string?
After some experimentations I think that if you tokenize your sentences, you can use a hashmap to lookup the words to replace. ...

2 months ago | 0

Load more