
Mohammad Sami
Statistics
RANK
113
of 257.907
REPUTATION
946
CONTRIBUTIONS
2 Questions
339 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
94
RANK
of 17.770
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Add Array in a Cell in a For Loop
Your current code is creating a nested cell array. You can change it as follows. % for testing % i = 1; x_wing = 1; y_wing ...
25 Tage ago | 1
| accepted
Is there a way to get the redirect url after a https / api request?
You can use the matlab.net.http interface to follow the redirects. https://www.mathworks.com/help/matlab/ref/matlab.net.http.re...
etwa ein Monat ago | 2
| accepted
How do I get the final URL from a redirect link? (like requests.get from python)?
You can use the matlab.net.http interface to follow the redirects. https://www.mathworks.com/help/matlab/ref/matlab.net.http.re...
etwa ein Monat ago | 0
Hi, everyone! I got an error while runnig this code . ""Error setting property 'AlturaactualEditField' of class 'app2': Cannot convert double value 3.79215 to a handle "
You need to assign it to the value of editfield rather then the edit field itself app.AlturaactualEditField.Value = math(cont);...
etwa 2 Monate ago | 0
| accepted
Comparing two differently-sized arrays
The best way to do what you are requesting is to convert your arrays to timetables and then either use the synchronize function ...
3 Monate ago | 0
Looking for a function minimizer subject to nonlinear constraints with absolute function tolerance.
You can try setting the 'TolFun' parameter in the optimset. You can refer to the following documentations for more details htt...
3 Monate ago | 0
MATLAB app designer, how to update value of a property in declared callback function
You can try the following. configureCallback(app.arduino,"terminator",@app.readSerialData)
4 Monate ago | 0
How to declare variable in App Designer
Do you mean you want to set the value of A equal to the value of edit field ? app.A = app.EditField.Value;
4 Monate ago | 0
How to set defaults for GridLayout?
In this case I believe the only way to change the default column spacing is to edit the code shipped by matlab.
5 Monate ago | 0
Static Java methods won't execute with parfor loop
The dynamic java class path is only modified in the process calling the javaaddpath. So for parallel you will have to add your j...
6 Monate ago | 1
| accepted
How to change automatically generated uibutton properties in another function?
You can store all your buttons as an array in the app property orientationButtons. function create_buttons(app) % % make b...
6 Monate ago | 0
| accepted
How to change training and plotting options when training a deep network?
From matlab documentation, you can only use this option if you specified validation data as well. https://nl.mathworks.com/help...
6 Monate ago | 0
How to write our own Loss function in Deep neural network layers.
You can first check if the loss function is already available in Matlab here. https://www.mathworks.com/help/deeplearning/ug/de...
7 Monate ago | 0
| accepted
Replace stale / repeating data with NaN in a table
You can try this. Var1 = [ 3 , 2, 5, 4, 4 , 4, 4, 6, 2, 3 , 5, 5 ,5 ,5 ]; i = Var1(2:end) == Var1(1:end-1); i = [false i]; V...
8 Monate ago | 0
How to use parpool for independent expressions
You can use the parfeval function to make these calculations on a worker thread. x = 1; y =2; z=3; p=parpool('local',4) Fs...
8 Monate ago | 1
| accepted
This is a part of a code and I want to add something to it, description below
In your code Heff(:,P==0) = []; %Delete User Row This will actually delete columns not rows in Heff. Not sure if that is what ...
8 Monate ago | 0
| accepted
How to save output of double loop?
You should use the fullfile function to create the filepath. Your call to imwrite function is in the outer for loop, hence it wi...
8 Monate ago | 1
| accepted
How to make a colourful interactive GUI spectrum slider?
While there is no slider object which have the spectrum as the background, you can however achieve this effect by layering uisli...
8 Monate ago | 0
How to import and evaluate multiple files in matlab?
I am assuming all your data files have the same format. You should convert your current code into a function and call it 3 times...
8 Monate ago | 0
Plot two functions with different pause rates at same time.
You can try something like plotting j every few steps. frames = 239; trunk = 2987; hold on lastjplotted = 0; for i = 1:tr...
8 Monate ago | 0
| accepted
Onehotencode function is giving more columns which are filled with zeros than the number of categories.
Because you are converting the entire matrix in to a categorical matrix, the categories for the entire matrix are common. If you...
8 Monate ago | 1
| accepted
Bring components to the front in app designer
If you only wish to display the image and not interact with it (eg zoom) then perhaps you can use uiimage to display your image ...
9 Monate ago | 0
accessing tall cell arrays of type char
You will need to use gather function after you have completed all the operations on the data. a = tall({'aa' 'bb' 'cc'; 'dd' 'e...
10 Monate ago | 0
Saving data in a GUI callback function
With app designer you don't need guidata and hobject to store your data. Create properties in your app and then you can access ...
10 Monate ago | 0
| accepted
matlab app numeric box wont update real time
include the drawnow command in your loop to force an update to the UI. https://www.mathworks.com/help/matlab/ref/drawnow.html ...
10 Monate ago | 0
| accepted
Subtract element one from element two in a 1x101 row vector.
You can use the subset from 1:end-1 and 2:end to calculate without using the for loop. t = rand(1,101); tsub = t(2:end) - t(1:...
10 Monate ago | 0
Confusing warning during compilation: Warning: MATLAB preference entry "SMTP_Username" has been removed.
This is the correct behaviour for security reasons. Otherwise this information will be included from the previously set values i...
10 Monate ago | 0
Delete outliers in each column of a matrix
You can simplify your code like this. % generate test data initmatrix = rand(100,100); initmatrix(12,99) = 1000; initmatrix(...
10 Monate ago | 0
imwrite, what it does with fractions and negative values
You can change to using random integer function instead of rand function. Also change the image format to png instead of jpg. ...
10 Monate ago | 0
Plotting data with 5 dimensions
How about you use the stacked chart as you intended and then just change the x axis to display the value of column D. data = [6...
11 Monate ago | 1
| accepted