Community Profile

photo

Ameer Hamza


Last seen: Today

Hong Kong Polytechnic University

2,630 2016 이후 총 참여 횟수

담당자

Ameer Hamza's 배지

  • Scavenger Finisher
  • Ace
  • 3 Month Streak
  • Thankful Level 2
  • CUP Challenge Master
  • Promoter
  • Commenter
  • Explorer
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Knowledgeable Level 4
  • Revival Level 3

모두 보기

참여 게시물
보기 기준

답변 있음
How to copy a Matrix to a table and how to convert a column to a dropdown menu?
Does your table have more then 4 rows? Try this app.UITable2.data(1:4,4) = num2cell(Z); To display a dropdown menu in the colu...

약 2시간 전 | 0

답변 있음
How to compute centered moving average from an NxM array
You can use movmean() and discard the endpoints M = [ 1 11 2 12 3 10 4 10 5 12 6 11 7 12 ...

약 2시간 전 | 0

답변 있음
How to solve a second order non-homogeneous equation using Euler's approximation
First, there is a mistake in your equation of Euler method n(i+1)=n(i)+T*first(n(i),n2(i),t(i)); % there should be a comma betw...

약 3시간 전 | 0

답변 있음
.mat file not converting to .csv
Following works in MATLAB M = structfun(@(x) x.', wiki, 'UniformOutput', 0); T = struct2table(M); writetable(T, 'test.csv'); ...

약 3시간 전 | 1

| 수락됨

답변 있음
How to increase the amplitude of a step signal?
Change line to unitstep = 5*(t>=0);

약 4시간 전 | 0

답변 있음
Me sale el error "Undefined function or variable 'delimitedTextImportOptions'."
delimitedTextImportOptions was introduced in R2018b. You may try to replace it with DelimitedTextImportOptions (the first letter...

약 4시간 전 | 0

답변 있음
Syntax Error Simulink fcn block
Try this function x_2dot = fcn(u) x_2dot = 0; % initialize to tell simulink about its size J = 0.01; B = 0.1; K = 0.01; R ...

약 7시간 전 | 0

| 수락됨

답변 있음
using fprintf to display multiple values
Change the line to fprintf(' The factorial of %.0f is %.0f\n\n',numlist(i),facn) %...

약 7시간 전 | 0

답변 있음
How use interp2
You can use interp2 like this sigma = 1:6; OMEGA = 1:10; T = rand(6, 10); interp2(sigma, OMEGA, T.', 4, 5) % (4,5) is a sa...

약 18시간 전 | 0

답변 있음
trying to plot the graph but getting dots pls help me
Try this B=1; LL=1; n=1:0.25:2; s=0.5:0.5:10; for i = 1:numel(n) for j = 1:numel(s) y(i,j)=1+(n(i)*(0.5513*...

약 18시간 전 | 0

| 수락됨

답변 있음
Writing variables in .csv file and saving it
If you have R2019a or later, you can save the data in a cell array and use writecell() C = {'abc', 1, 'def' 1; 'def', 2, 'rfg',...

약 19시간 전 | 0

답변 있음
imshow produces error when used in subplot
From your code, it is not clear how did you assign the 2nd element of vector h. However, I recommend initializing 'h' with 'gobj...

약 19시간 전 | 0

| 수락됨

답변 있음
Uninstalling old versions of MATLAB
Each version of MATLAB installs independent files. You can safely delete an older version. Note that if you have saved your own ...

약 20시간 전 | 0

답변 있음
Regarding a function saddle
In first code, 'j' varies from 1 to b for j=1:b In second code, 'j' varies from i to b for j = i:b

약 20시간 전 | 0

| 수락됨

답변 있음
Create a continous stepwise increase in Simulink
You can use the MATLAB function block and a clock to create this signal as shown in the image The code inside the MATLAB func...

약 20시간 전 | 0

| 수락됨

답변 있음
DIfferentiating repetitions in a repeated sequence
Try this x = [1 1 1 1 2 2 2 3 3 3 3 3]; y = splitapply(@(x) {1000*x(1) + (1:numel(x))}, x, x); y = [y{:}]; Result >> y y...

약 21시간 전 | 1

답변 있음
How to vary the number of fields in inputdlg dynamically?
Something like this n = inputdlg('Number of Zones'); n = str2double(n{1}); prompts = compose('Zone %d', 1:n); y = inputdlg...

약 21시간 전 | 0

| 수락됨

답변 있음
Estimating inputs from outputs in neural networks
You may try fsolve(). However, due to the complexity of a neural network, it is unlikely that it will be able to find a solution...

약 21시간 전 | 0

답변 있음
How can I find the Power spectral density of a filtered Noise?
This example show how to plot PSD using FFT: https://www.mathworks.com/help/signal/ug/power-spectral-density-estimates-using-fft...

약 21시간 전 | 0

답변 있음
explict (pointwise) function from numerical solution to implicit equation
Try interp1 to create an explicit relation for 'y' in term of 'x' using the datapoints from fimplicit f = @(x, y) y - x.^2; fp...

약 22시간 전 | 0

답변 있음
Hey can you please help me with these errors im getting from my GUI
Try this set(handles.raiz,'String',num2str(r)); Convert the numeric value to character value.

약 22시간 전 | 0

답변 있음
Random numbers around y-values
Try this x = 1:100; y = log(x); noise = (2*rand(size(y))-1).*0.15.*y; y_noise = y + noise; plot(x, y, 'r', x, y_noise, 'b...

약 22시간 전 | 0

답변 있음
Passing data to Simulink Model
See From workspace block: https://www.mathworks.com/help/releases/R2020a/simulink/slref/fromworkspace.html

약 22시간 전 | 0

답변 있음
Phase portrait of a 2 dimensional system that converges to a unit circle
try this dx_dt = @(x,y) (1-(x.^2+y.^2)).*x-3.*y.*(x.^2+y.^2); dy_dt = @(x,y) (1-(x.^2+y.^2)).*y+3.*x.*(x.^2+y.^2); [x, y] =...

약 22시간 전 | 1

| 수락됨

답변 있음
How can we find the internal width of a alphabet?
Try this im = im2double(imread('alif.png')); im_gray = rgb2gray(im); im_bin = imbinarize(im_gray); [row, col] = find(~im_b...

약 23시간 전 | 0

| 수락됨

답변 있음
How to get a column from a text file based on some conditions
Try this data = fileread('test.txt'); data = textscan(data, 'Node %1s: %f'); labels = [data{1}{:}]-64; vals = data{2}; Ar...

약 23시간 전 | 0

답변 있음
error using "=" in solving equation
That syntax is incorrect in MATLAB. You need to use fsolve() to solve an equation numerically n=2.2; m=1.86; p=0.153; %p is d...

1일 전 | 0

답변 있음
please tell how ?
Try this num=[303 4848 0]; den=[1 16 164]; ea=tf(num,den); subplot(1,2,1) step(ea) [t, y] = ode45(@odeFun, [0 1], [303; ...

1일 전 | 0

| 수락됨

답변 있음
How to create a local function during the code run
Dynamically creating a function name is not a recommended coding practice. Following shows how to do such a thing more efficient...

1일 전 | 1

답변 있음
How to dramatically speed-up the function plot
I am not sure what is the purpose of using second code is instead of the first when both create the same plots, however, if you ...

1일 전 | 0

Load more