Community Profile

photo

Ameer Hamza


Last seen: Today

Hong Kong Polytechnic University

3.718 total contributions since 2016

3.1416

Contact

Ameer Hamza's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Scavenger Finisher
  • Master
  • 6 Month Streak
  • Thankful Level 2
  • CUP Challenge Master
  • Promoter
  • Commenter
  • 5-Star Galaxy Level 2
  • Explorer
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • First Submission
  • Knowledgeable Level 4

View all

Contributions in
View by

Answered
How to solve 3 interconnected equations?
If you have symbolic toolbox, you can use solve() syms M S R Rv = rand(10, 1); eq1 = M == S*3; eq2 = S == R+M; sol = so...

etwa eine Stunde ago | 0

Answered
How to put a preview figure window in a main figure window
You can create a second smaller axes x=0.01*rand(100,1); ax1 = axes(); [~,edges] = histcounts(log10(x)); histogram(x,10.^edg...

etwa eine Stunde ago | 0

Answered
Reading the arranged file name
natsort() from FEX is exactly made for such cases: https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-file...

etwa 2 Stunden ago | 0

Answered
solve linear equation system with partially unknown coefficient matrix
One approach is to find a least square solution using fmincon() x = rand(4, 1); y = rand(4, 1); A = @(a) [a(1) a(2) 0 a(3);...

etwa 2 Stunden ago | 0

Answered
3input vs 1 output Interpolation Problem
You need to use scatteredInterpolant() data = readtable('Data.xlsx'); idx = find(isnan(data.X), 1); data(idx:end, :) = []; ...

etwa 2 Stunden ago | 0

Answered
Undefined function or variable 'dumphex'.
dumphex is not a MATLAB's function. Some other similar functions are available on FEX: https://www.mathworks.com/matlabcentral/f...

etwa 3 Stunden ago | 0

Answered
How to write the codes for this?
If you want to find value of 'b' for each value of 't' then try this tv = [89;132;202;263;321;362;421;473;575;663]; syms b t ...

etwa 4 Stunden ago | 1

Answered
How to synchronize non timeseries data?
By synchronize, if you mean having the same x-values for both datasets, then use intep1(): https://www.mathworks.com/help/matlab...

etwa 4 Stunden ago | 0

Answered
ODE45 solving for three variables
You need to write as a function or a function handle dydt = @(t, y) [y(2); y(3); -24*y(1)-26*y(2)-9*y(3)]; y0 = [1 -4 -14]; t...

etwa 7 Stunden ago | 0

Answered
break up filtered EMG data into epochs
Try something like this t = linspace(0, 10, 1000); eeg_signal = rand(size(t)); % eeg-signal grps = ceil((t+eps).'/1.5); ee...

etwa 8 Stunden ago | 0

| accepted

Answered
Sorting an array without sort() command
What you described is called selection sort. This FEX package have code for all commonly know sorting algorithms, including the ...

etwa 8 Stunden ago | 0

Answered
Finding a value (or not a value) inside a matrix
Try this code Bingo_board = randi([1 100],5,5) x = randi ([1,100], 1) if any(Bingo_board(:)==x) disp('Match found.'); ...

etwa 18 Stunden ago | 0

Answered
Anyone know why it isnt accepting my cos(2x) ?
x = -pi:2*pi; f = cos(2.*x); % f(x) is wrong plot(x, f)

etwa 19 Stunden ago | 0

| accepted

Answered
Polynomial with nested and anonymous functions.
Something like this polynomial = sum(p .* x.^(0:numel(p)-1)); Also see polyval().

etwa 19 Stunden ago | 1

| accepted

Answered
Seperating columns into rows
Use reshape() B = 1:10; A = reshape(B, 2, [])

etwa 19 Stunden ago | 1

| accepted

Answered
Getting error while importing numpy in MATLAB
This issue happens in the latest versions of numpy. Following will work x = py.numpy.linspace(0, 10, py.numpy.int(101))

etwa 19 Stunden ago | 0

Answered
Boxplot function not working
boxchart was introduced in 2020a, and you don't need that toolbox to use it.

etwa 20 Stunden ago | 0

| accepted

Answered
How to delete row or column in x.mat file
Does X.mat file only have one variable? In that case, try X(501:2000,:) = []; %^ put : here Also, If the variable is very...

etwa 20 Stunden ago | 0

Answered
Is it possible to remove a certain character (dash sign / -) from an entire column in a table.
It can work on table as well. Try something like this T.x = erase(T.x, '-')

etwa 21 Stunden ago | 0

| accepted

Answered
Integration error while running a script in Matlab 2015
me=int((rho*Ao*(1-(0.5*x)/L))*(psi)^2,x,0,L)+mR*subs(psi,x,xc); % ^ insert * here. It is missing in your code

etwa 21 Stunden ago | 0

Answered
Unrecognized property CData for class UIAxes
CData is the property of Image object (returned by imagesec), not the UIAxes. You need to specify the correct handle in the set(...

etwa 21 Stunden ago | 0

Answered
load multiple .txt files and rename them with a for- loop
Loading directly into the workspace is not a good coding practice, and so is naming them dynamically (Area_1, Area_2, ..): https...

etwa 21 Stunden ago | 1

| accepted

Answered
Publish / send message on ROS topic to ROS Master
I faced exactly the same problem a while ago. I don't remember exactly now, but the problem was related to not setting the ROS_M...

etwa 22 Stunden ago | 0

Answered
Problem to read multiple .csv in a loop for.
In the line T = readtable('Dailydata_(i).csv', 'PreserveVariableNames', true); MATLAB does not recognize i as a numeric value....

ein Tag ago | 0

| accepted

Answered
how to do running mean?
Try something like this M = rand(21, 41, 273); M_new = movmean(M, [0 3], 3, 'Endpoints', 'discard'); M_new = M_new(:,:,1:4:en...

ein Tag ago | 0

| accepted

Answered
I need some help to plot getrect selected portion of a picture. How can i plot it after getting coordinates. here what i have done yet. If there is a simple way please mention it.
Directly pass the rect to imcrop(): https://www.mathworks.com/help/images/ref/imcrop.html rect=getrect; MM = imcrop(crack, re...

ein Tag ago | 0

Answered
Locating Row and Column of Min. Value
[row column]=find(x==k,1) %^ pass 1 here Alternatively x=[5 6 78 32; 34 1 7 2; 23 4 7 1]; [~, i...

ein Tag ago | 0

| accepted

Answered
Compute standard deviations for each element across several matrices
2nd input to std() is a weight vector. Change it to this std(cat(3, x{:}), [], 3)

ein Tag ago | 0

| accepted

Answered
Building a big matrix
Are you trying to create an upper tiangular matrix? Read about triu: https://www.mathworks.com/help/matlab/ref/triu.html

ein Tag ago | 0

| accepted

Answered
how to comment on ploting data in graph?
You can do something like this solar_radiation=[456 789 999 334 556 778 456 234 545 343 300 400 500 600 345]; heat_gain=[456 ...

ein Tag ago | 1

| accepted

Load more