Community Profile

photo

Khalid Mahmood


Last seen: 約1ヶ月 前 2021 年からアクティブ

Coding, simulation and mex functions programming for various problems in Matlab. Especially image processing, computer vision and deep learning

統計

All
  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 3
  • 3 Month Streak
  • Introduction to MATLAB Master
  • Leader
  • Explorer
  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 2
  • First Submission
  • Thankful Level 1
  • Community Group Solver
  • Knowledgeable Level 2

バッジを表示

Content Feed

表示方法

質問


Every program in newer versions of Matlab runs slower, Why?
Every program in newer versions of Matlab runs slower and slower. I have measured with external stop watches also. And it does ...

約2年 前 | 1 件の回答 | 1

1

回答

回答済み
Image box or rectangle color
I hope you want this set(gcf,'Units','normalized') im=imread('peppers.png'); imshow(im); k = waitforbuttonpress; rect_pos =...

3年弱 前 | 1

| 採用済み

回答済み
Matlab finds webcam, but says after running the code it is invalid
try these 3 commands: 1) clear all 2) imaqreset 3) Then a) cam =webcam b) preview cam

3年弱 前 | 1

| 採用済み

回答済み
To find running average using vectorized method
Check this https://www.mathworks.com/matlabcentral/answers/806006-defining-the-mean-of-a-values-inside-a-matrix?s_tid=srchtitle...

3年弱 前 | 1

| 採用済み

回答済み
Happy Birthday Animation with changing colors
I hope this will be great example for you function f=Animate(str,chr) %string that rotates along central character if nargin<2...

3年弱 前 | 1

| 採用済み

回答済み
Happy Birthday Animation with changing colors
Like Following? function f=Animate(str,chr) %string that rotates along central character if nargin<2 chr='🌺';%🕐🕑🕒🕓🕔🕕🕖🕗🕘 %...

3年弱 前 | 1

回答済み
sum of series. Vectorised (no loop)
% To reduce 2 more lines function s=vsum(n) if nargin<1 s=1; return end if mod(n,2)==0, n=n-1;end s=1+sum(1./[3:2:n] -...

3年弱 前 | 1

| 採用済み

回答済み
Mouse events starter program for Matlab gui
I have made a simple figure to detect keyboard and mouse events. It will work as a starter for events proessing on GUI. My code ...

3年弱 前 | 1

| 採用済み

回答済み
defining the mean of a values inside a matrix
Further methods 1: movmean(matrix,windowsize) it calculates running mean but considers only windowsize elements examples...

3年弱 前 | 1

回答済み
Serial ports list display
You can easily display ports list in compact format pa=['all Serial Ports' serialportlist]; pav=['available Ports' serialportl...

3年弱 前 | 1

| 採用済み

回答済み
I have two plots, I want to take the difference between two plots using histogram function. how can I take difference using both x and y axis
I have created an example for 1D histogram (histogram using single vector), histogram2 (2D histogram using 2 vectors), imhist(hi...

3年弱 前 | 1

質問


Mouse Button Press distinction
SelectionType property of figure tells which mouse button was pressed along with modifier (ctrl or shift). Normal: Left Mous...

3年弱 前 | 2 件の回答 | 1

2

回答

回答済み
How can I delete the rows if they have a NaN value?
Let Matrix A has NaN values, we want a matrix B which contains all rows of A except which have NaN values function testNaNRemov...

3年弱 前 | 1

回答済み
MATLAB GPU Processing: AMD Radeon
To select an NVIDIA GPU 1) Go to site: https://developer.nvidia.com/cuda-gpus, and select a GPU according to your needs https...

3年弱 前 | 1

回答済み
Date time conversion problem
Don't specify as T19:00:00. Oly T19:00 is enough. Furthermore use T:HH:mmXXX instead of TH:mm:ss following code works fine. a....

3年弱 前 | 1

質問


Has some one implemented SiamMask trackers in matlab?
I found matlab more useful than python for simulating, implementing and compiling visual trackers.A lot of useful trackers built...

3年弱 前 | 0 件の回答 | 0

0

回答

回答済み
I want to plot from -5 to 5 on the x and y, but I am having trouble. Any help?
%Hope you need this. I mean just plot mesh also %mesh Lim=-5:.5:5; %both x,y have same limits [x y]=meshgrid(Lim); % calcula...

3年弱 前 | 1

回答済み
Sketching a tangent plane to the given equation
Lim=sqrt(5/2); inc=2*Lim/99; %100 incremets [X,Y] = meshgrid(-Lim:inc:Lim); ZFunc= @(x,y) real(sqrt(5-x.*x-y.*y)); Z=ZFunc(X,...

3年弱 前 | 1

| 採用済み

回答済み
How to enter negative values ​​and values ​​greater than 9 in input with string.
%for 10 values, while ii<11 is needed whe we start with ii=1, and %string(teste) to convert character array into string clear,...

3年弱 前 | 1

| 採用済み

回答済み
Using fsolve to find circle intersection
convert 2 equations into 2 functions F(1),F(2) . This is one way but other ways like F=@x [ eq1; eq2] can also be used. functio...

3年弱 前 | 1

回答済み
Mysterious tangent line on my plots
v(1)=2; %initial v=v0=vi a(1)=9.8; %g n=40; dt=2.5; %use values like dt 0.1, 0.5 1.1,1.5, 2, 2.5, 5 and see the result D=1;r...

3年弱 前 | 0

回答済み
How can I fix this error?
function y=Question5(x) y=[]; rows=size(x,1); y(1,:)=x(1,:); for i=2:rows y(i,:)=x(i,:)-x(1,:); end end

3年弱 前 | 1

| 採用済み

回答済み
How can I fix this error?
function y=Question5(x,i) y=[]; if i==1 y=x(1,:); else y=x(i,:)-x(1,:); end end

3年弱 前 | 0

回答済み
How to select complementary elements from a vector?
%Another but lengthy way is as follows: %Vector 1 d = [3 2 1 5 6 7 8 9 0]; %Another vector containing the indices, which must...

3年弱 前 | 1

回答済み
Selecting range of data in a matrix
%Generate M 2784x1 matrix of unformly distributed random intergers ranging from 100 to 9999 M=randi([100 9999],2784,1) rangeA...

3年弱 前 | 1

回答済み
IF statement wrongly checked
clear all %close all, %no need to close all, as nothing was opened by this code.. no figure, port etc f = 17.5*10^9; %same ...

3年弱 前 | 1

回答済み
Why do I receive an error when I try to use my Matrox morphis with the Image Acquisition Toolbox?
Clearly format : RGB32_-1442840129x1515803904 is invalid It must be like RGB32_720x480. But 1442840129x1515803904 is huge Res...

約3年 前 | 0