# Awais Saeed

**Statistics**

RANK**393**

of 247 439

REPUTATION**164**

CONTRIBUTIONS

**7** Questions

**76** Answers

ANSWER ACCEPTANCE **
71.43%
**

VOTES RECEIVED**19**

RANK

of 17 241

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**

I have a transfer function with very large coeficient, how to reduce it to a readable tf form?

Try using simplify() syms s TF =(579897794885098601073766651512401860000/(7258390620966233564935880704*s^2 + 56126396051975186...

environ 12 heures ago | 0

| accepted

symbolic calculation in MATLAB

You are not storing in C1 properly. You are using x and t, whihc are incrementing with a step size of 3. syms x t U=zeros(1,2,...

1 jour ago | 0

X and Y axis alignment

Something like this? X = categorical({'Small','Medium','Large','Extra Large'}); X = reordercats(X,{'Small','Medium','Large','E...

5 jours ago | 0

| accepted

Sum matrix column orderly

chnage first_row and end_row according to your requirement A = [1,2,3,4;5,6,7,8;9,10,11,12;13,14,15,16] start_row = 1; end_ro...

8 jours ago | 0

Merge the contents of neighboring non-zero cells

Remove the cells that has 0 in it. c = {25,0,'anyString','aChar',[12 5 48 7];0,0,'anyString','bChar',[10 01]} nonzero_indices ...

8 jours ago | 0

Comparision double values 135 with 135.0000

I had this issue once. I am just suggesting what helped me. It is possible that the actual value is not 135.0000. If 135.0000 is...

8 jours ago | 0

Using forloop and whileloop to find if a number has appeared repetitively

Doing with loops is hectic. You should use find(). However, I did it with loops as you required. I added last two entires for my...

9 jours ago | 1

how to find the mininmum value in a double vector ?

You are half way there. Use [value, index] = min(vector)

10 jours ago | 1

While loop to find index of first element to be less than and greater than in a vector

Is it necessary to use a while loop? For loop works fine a = rand(20,1) for itr = 1:1:length(a) % iterate thorug...

22 jours ago | 0

Colon Notation Function using Matrices

understand the syntax first. To access an element from a matrix, you need to provide the row and column in which it resides. % ...

22 jours ago | 0

When you type m(1) or m(10) in the command window, what is happening?

Let's say you have an array of 10 elements arr = [1 2 5 4 7 0 3 6 1 9]; To access first element, you use arr(1) to access 5t...

22 jours ago | 0

Where is the mistake of the ^? i can plot the graph without the ^ but it say i have mistake after adding the ^ or .^

exp^(cos) is incorrect. Use y_array1 = sin(x_array.^2).* exp(cos(x_array));

22 jours ago | 0

| accepted

Code explanation (bw)

The (:) reshapes a matrix into a column vector. imageOutR = [zeros(1,3); 2 5 13; 0 1 2; 1 3 5] % 4x4 matrix for instance bw2 =...

24 jours ago | 0

double2str and bin2str

Doing help bin2str % and help double2str did not show any results from which I assume there are no such functions. Use num2s...

24 jours ago | 0

How to multiply 2 arrays by elements

A = [3-4j, 1+3j, 10+10j]; B = [4+5j, 2+1j, 0+0j]; A.*B

24 jours ago | 0

| accepted

Why doesn't my code recognize the input function in the loop?

try this ctr = 0; for i = 1:1:3 numbers = input('Enter a number: '); if numbers ~= 0 ctr = ctr + 1; el...

25 jours ago | 0

How to remove rows from structure based on value condition of field?

S.A = [1 2 3 4 5 6; 11 12 13 14 15 16; 21 22 23 24 25 26; 31 32 1 34 35 36]; S.B = ceil(50*rand(2,2)); S.C = "Some string"; S...

26 jours ago | 0

how to use the output of a user defined function as the input of another user defined function?

num = 1:10; [S] = Addition(num) [M] = multiply(S) % pass output of function 1 as input to function 2 % function 1 function...

27 jours ago | 0

How to delete all rows of a matrix wherever any value is invalid (999)?

M = [99 1 25 999; 10 1 2 6; 14 99 25 65; 99 1 2 9; 9 1 999 10] [row1,~] = find(M(:,1) == 99) % search for 99 in col1 [row2,~] ...

27 jours ago | 0

how to plot Double y axis?

For version 2016a aor later, use yyaxis instead x = [1 6 10 15 22]; y1 = [2 6 8 10 15]; y2 = [99 97 94 92 89]; [hAx,hLine1...

28 jours ago | 0

Am unable to wrap my head on this question regarding for loop , can someone explain the question and maybe write the code please.

Why use a loop if it can be done without it A = [1 2 3; 4 5 6; 7 8 9]; [sum_of_elements] = halfsum(A) function [sum_of_elem...

28 jours ago | 1

| accepted

How to select every 54th image in the folder?

I modified the code that I wrote for your last question as it might be easy to follow the same structure. % path to the folder...

3 mois ago | 1

| accepted

How to apply multiple parameters function on all the matrices in the folder?

Read your .mat files Loop through them and find B Store that B array to a cell % path to the folder that contains .mat files ...

3 mois ago | 1

| accepted

I want to change the size of T so I can Add it to P2 (the size of T should be the size of P1 or the size of P2)

P1=[3 2 4;2 1 1;5 2 3;2 3 7]; P2=[2 6 1;1 3 5;4 2 1;5 2 1]; P1_Zero=pinv(P1); T=P1_Zero*P1; % create a new matrix of dimen...

3 mois ago | 0

| accepted

how to develope loop to save the 'n' elements from the vectors

Although it is not prefered to name variables in a loop but if you striclty want to do this in loops than you can use eval(). No...

3 mois ago | 1

How to Copy Upper diagonal elements of matrix A into a new matrix.

A= [1 2 3 4; 2 1 3 4; 1 1 1 2; 1 0 0 1] M = zeros(size(A)); for row = 1:1:size(A,1) for col = row:1:size(A,2) M(row,col...

3 mois ago | 0

BER Calculation of BPSK for custom demodtalor IP core

use biterr() and semilogy() to find bit errors and to plot BER curve clc clear close all % generate data to send x = 4*rand...

3 mois ago | 0

how to convert vector char to matrix char ?

How about using cell? X = 'ABCDEFGHIJKLMNOPQRSTWXYZ'; v = cellstr(num2cell(X)) By now you use access cells as v{2}, v{4} etc....

3 mois ago | 0

How to create a vector of symbolic variables with specific labeling

Not the best way but will work good enough for small vectors vsym = sym('x',size(v)); for col = 1:1:size(v,2) char_str = ...

3 mois ago | 0

i want two responce on same plot

Try figure hold on step(g, 'r') title('approximate responce') step(c, 'g') grid on legend('step(g)', 'step(c)') or just ...

3 mois ago | 0

| accepted