Community Profile

photo

Ameer Hamza


Last seen: Today

Hong Kong Polytechnic University

4,432 2016 年以降の合計貢献数

3.1416

連絡する

Ameer Hamza's バッジ

  • 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

すべて表示

貢献した分野
表示方法

回答済み
Why is my functions not plotting a line?
Change the lines in your code like this Wcd=(s.*Wab.*(s+sin(theta)))./(1+s.^2+2.*s.*sin(theta)); %^...

26分 前 | 2

| 採用済み

回答済み
How to use two colormaps in one imagesc plot?
You can create a new colormap based on the proportion of the individual colormap imagesc(M); colorbar(); caxis([-0.8 1]); cm...

約1時間 前 | 1

| 採用済み

回答済み
Read and display RGB png/jpg image
You png file is actually an indexed image with a colormap. You can see it in color using following statements [img, map] = imre...

約1時間 前 | 0

| 採用済み

回答済み
Alternatives for passing variables efficiently to anonymous function
Don't bring 'f' as string. Define it as function handle. For example, define f like this f = @(x, LDamperFL, LDamperFR, xSteerR...

約2時間 前 | 0

| 採用済み

回答済み
How to use cumsum for single column matrix non integer values
It seems that you have somewhere defined a variable name 'cumsum', which confuses MATLAB by shadowing the built-in function name...

約3時間 前 | 0

| 採用済み

回答済み
How can i obtain response of MIMO for different 2 input?
Although lsim() as recommended by Mathieu is a general solution. However, an alternative way is to scale the B and D matrices an...

約3時間 前 | 0

| 採用済み

回答済み
How to loop function for a 2 column matrix
I don't have the mapping toolbox, so following code is untested dist = zeros(size(loc1,1)-1,1); for i = 1:size(loc1,1)-1 ...

約4時間 前 | 2

回答済み
How can one get parameters of fitlm as an output? Part 2
avova() returns a table object. You need to access its value like any normal table: https://www.mathworks.com/help/matlab/matlab...

約4時間 前 | 0

| 採用済み

回答済み
define an equation on Matlab
This is a difference equation. Simplest way is to use a for-loop u = ones(100, 1); % using constant input; e = rand(101, 1); %...

約5時間 前 | 0

回答済み
Accessing Elements in Arrays
You can use arrayfun() v = arrayfun(@(s_) s_.x(1), s) Indexing of struct arrays and cell arrays can be a bit confusing in MATL...

約5時間 前 | 0

回答済み
Use Value of String Array to name a variable
First, I must say that this does not seem to be a good idea. It is better to store filenames as a separate field and create an a...

約8時間 前 | 0

| 採用済み

回答済み
How to create a meaningful loop to meet certain conditions
Something like this perhaps, A = 100:1:150; % for fixed spacing, this syntax is more readable B = 300:1:350; for i = 1:nume...

約8時間 前 | 0

回答済み
How can i get sum of the responses of multi input system?
You can call step() with output arguments. See this example A = rand(2); B = rand(2); C = rand(2); D = zeros(2); sys = ss...

約8時間 前 | 1

| 採用済み

回答済み
How Can I Pull A Specific Variable From The Determinant of Matrix?
This shows that MATLAB could not find a closed-form expression to write lambda1 in terms of lambda2. Your equation is nonlinear ...

約9時間 前 | 0

回答済み
How to save the variable from the workspace into csv or excel file
save() is for saving in a .mat file. You need writematrix() for xls filename='workspace_variable.xls'; writematrix(res, filena...

約9時間 前 | 1

| 採用済み

回答済み
how to fprintf element in matrix using array without using loops
Like this A=randi([-5,5],2,2); B=randi([-10,10],3,4); K=kron(A,B); a=1:6; a2=1:8; [ag,a2g] = ndgrid(a,a2); fprintf('K(%.0...

約9時間 前 | 0

| 採用済み

回答済み
numeric edit field output format
There does not seem to be a direct way. You can use text edit field and use this FEX package: https://www.mathworks.com/matlabce...

約9時間 前 | 0

回答済み
How do you extract diagonal elements of submatrix matrix?
Are the submatrices in cell array? For example, try something like this n = 9; A = rand(n); k = 3; B = mat2cell(A, k*ones(...

約9時間 前 | 0

回答済み
How can I find the roots of a two variable function f(x,y)?
Primarily are following two ways. If you have the Symbolic toolbox, you can use solve(): https://www.mathworks.com/help/symboli...

約10時間 前 | 0

回答済み
need help to plot smooth of 𝑦̂ the least-squares fit to the data, over the range of x-values
You are just plotting the actual points. The y_fitted will be smooth x=[0 .5 1 1.5 2 2.5 3 3.5 4 4.5 5]; y=[0 -5.27 -8.10 -8.4...

約11時間 前 | 2

回答済み
concatination rows of matrix for making a new matrix
If you want to pack the bits to create a vector of uint64 datatype then try this M = randi([0 1], 1000, 64); % random vector ...

約11時間 前 | 0

| 採用済み

回答済み
Extract one row per group based on column value from table.
Try something like this [grps, vals] = findgroups(T.ID); T_new = splitapply(@(ids, dts, vals) {ids(max(dts)==dts) max(dts) val...

約12時間 前 | 0

回答済み
Brace indexing is not supported for variables of this type.
fname is a struct, not a cell array. Change the line to data = readmatrix(fnames(idx).name);

約12時間 前 | 1

| 採用済み

回答済み
Using timetable to sort and apply functions to data with a timestep greater than one year
If you mean that instead of regular time steps, e.g., monthly, yearly, etc. You want to use a custom time-step, you can use the ...

約12時間 前 | 0

回答済み
Second X-Axis on Bottom of Contour Plot?
Check this example ax1 = axes(); ax1.Position = ax1.Position+[0 0.07 0 0]; xlabel('First x-axis'); ax2 = axes(); ax2.Posi...

約13時間 前 | 0

回答済み
how to flip mirror contour plot horizontally (to flip about 180 degrees)
Are you looking for something like this psi = readmatrix('psi_all.txt'); Z = readmatrix('Z_all.txt'); R = readmatrix('R_all.t...

約14時間 前 | 0

| 採用済み

回答済み
How to find the inex of a randomly chosen element of an array
Try this idx = find(a==random_element)

約18時間 前 | 1

| 採用済み

回答済み
Find indices in a structure array by comparing the name
That for-loop is same as channel_Nr = find(contains(Block.name, Name_desiredSignal));

1日 前 | 0

| 採用済み

回答済み
Array indices must be positive integers or logical values.
I am fine, hope you are fine too! In MATLAB, there is no implicit multiplication. In the line f22 = ...... There is a missing...

1日 前 | 0

| 採用済み

Load more