Community Profile

photo

Mohammad Sami


Last seen: 3 days ago
170 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
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...

4 days 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...

13 days 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...

18 days 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...

18 days 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

19 days 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...

19 days 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...

26 days 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');

1 month 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');...

1 month 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. ...

1 month ago | 0

Answered
Referring to specific input in loop
If you want to have variable number of arguments, perhaps you want to use varargin instead in your function signature. function...

1 month ago | 0

| accepted

Answered
Example of MatLab code that can read XGMML (.gr.gz) extension file?
This file appears to be a text file which gzip compressed. You can extract the file with function gunzip and then perhaps load ...

1 month ago | 0

| accepted

Answered
How to alternatively cut a signal into segments of different sizes
You can use reshape to extract the signals % Incorrect : prb2 = reshape(prb,14*2048,2,[]); % Correction prb2 = reshape(prb,14...

1 month ago | 0

| accepted

Answered
How to generate 500 random string keys in matlab?
You can use the randi function to generate integers corresponding to the ascii values you want to allow in your random string. ...

1 month ago | 0

Answered
How to make an Edit Text Field box in App Designer to recognize a vector input
The text field are designed to take in string inputs. It will return you whatever data is entered as string. If you want to int...

1 month ago | 0

| accepted

Answered
calling a c function with calllib doesn't work with pointers
It will not return you 3 different values, it will return you pointer to an array containing 3 double values. Also you need to ...

1 month ago | 1

| accepted

Answered
Change dimensions of 2d data
You can use the imresize function to scale the image up or down. a = rand(3281,3164); b = imresize(a,0.91024);

1 month ago | 0

Answered
save workspace variable dynamically
I am not exactly sure what is it you are trying to do, but I assume you want to save a file where the variable names are the tic...

1 month ago | 0

| accepted

Answered
How can I input time series image data in the Deep Learning Toolbox?
For working with sequence of images, you can use the sequence folding layer. An example is included in the documentations. http...

1 month ago | 1

| accepted

Answered
Calling a functions fieldname without saying its name.
You can use the function fieldnames and a for loop %s = somestruct f1 = fieldnames(s) for i = 1:length(f1) fn1 = f1{i}; ...

1 month ago | 0

| accepted

Answered
How to use "hold", or similar function, with Geobubble?
geobubble allows for size and color to be specified as variables. You can concatenate your data in one table, and use the size a...

1 month ago | 1

Answered
Auto Image Reading and Resizing
If you have deep learning toolbox, this can be easily acheieved with the augmented Image Data Store. https://www.mathworks.com/...

1 month ago | 0

Answered
How can I vectorize these for loops?
What you are trying to do is 2D convolution. There is a function conv2 that will allow you to do this. m = ones(50); filter = ...

2 months ago | 1

| accepted

Answered
Updating values in array based on index vector
One of the ways is to convert your subscript to linear index and then do the assignments. ind = sub2ind(size(A),x,y); A(ind) =...

2 months ago | 1

| accepted

Answered
How to Automatically Shorten an Array so the number of Rows/Columns is divisible by 3
you can just calculate how many vectors you need to delete. somevector = rand(10000,1); s = 3; shortvector = somevector((end-...

2 months ago | 0

| accepted

Answered
How to save (serialize) MATLAB variables to a byte string?
There is an undocumented function called "getByteStreamFromArray" which converts a matlab object to bytestream. To convert it b...

2 months ago | 1

| accepted

Answered
How to calculate it in Matlab?
You have two options. First option is to use symbolic sum "symsum" if you have symbolic math toolbox. syms y; N = 10; F1 = s...

2 months ago | 0

Answered
How can I reflect a signal on Y-Axis?
You can multiply the reflection matrix with 2xn matrix of x,y coordinates. x = [0 1 2 3 4 5]; y = [0 1 2 3 4 5]; reflectionma...

2 months ago | 0

| accepted

Answered
text on image position
What if you used the limits of your axes and then create a relative x and y position. axes(handles.axes1); imagesc(v(:, :, z))...

2 months ago | 0

Answered
deep learning_alexnet
You have specified the image as single channel in your code. just change it to 3 channels (RGB). imageInputLayer([imageSize 1]...

2 months ago | 0

| accepted

Load more