Question

please help me in plotting bar graph

y = [327 680 509 313 ; 456 565 442 369 ; 227 325 210 3597; 426 532 360 149; 540 848 755 864]; bar_handle = bar(y,'grouped'); ...

meer dan 3 jaar ago | 1 answer | 0

Question

is it possible to expand [0 {9}, 45 {2}, 0 {9}]

I have a matrix like [0 {9}, 45{2}, 0{9}] i want to expand it like [0 0 0 0 0 0 0 0 0 45 45 0 0 0 0 0 0 0 0 0]? and it wor...

meer dan 3 jaar ago | 4 answers | 0

Question

please help me in sort row

I have a row, x = [0 0 0 0 0 40 40 -40 -40 -40 -40 -40 -40 80 80 80 80 80 80]; x1=x; [xi, u_x] = hist(x1, unique(x1)); ...

meer dan 3 jaar ago | 1 answer | 0

Question

How to put any variable name automatically?

In this program, a = 1 ; b=2; c = zeros(20,1); d= zeros(20,1); for k = 1:20 c(k) = (b+k)^2 + (a+k)^3; ...

meer dan 3 jaar ago | 1 answer | 0

Question

How can i set input command for undefined variable?

I have a input. x_ang = [0 0 15 15 30, fliplr([0 0 15 15 30])];% [X,NN] = RunLength(x_ang); it = 10; x=4;y=10; if ...

meer dan 3 jaar ago | 1 answer | 0

Question

How can i find 4 continuous component in row and replace

I have a row, I = [60 60 0 0 0 0 45 60 90]; % I want to find 4 continuous component, and 4th component should be replace...

meer dan 3 jaar ago | 1 answer | 0

Question

Please help in convergence of the array

for l = 1:6 c11 (l)=opt11{l}; end output = c11 = Columns 1 through 5 89.0475 98.7932 98.7932 98.7932...

meer dan 3 jaar ago | 1 answer | 0

Question

How can i solve matrix equations?

X = 1.0e+07 * [ 3.4829 0.5180 1.0634; 0.5180 0.4133 0.2245; 1.0634 0.2245 0.5671]; Y = [-518...

meer dan 3 jaar ago | 1 answer | 0

Question

How to write variable to symbolic ?

A = 10; B = 15; C = 18; lcm_ABC = lcm(sym([A, B, C])); lcm_ABC = double(lcm_ABC); ABC_N = lcm_ABC/A + lcm_ABC/B + ...

meer dan 3 jaar ago | 1 answer | 0

Question

How to replace any value into vector or matrix to -inf

ab = 11.0000 11.5000 12.0000 12.1000 12.2000 12.3000 11.2000 9.0000 9.5000 11.3000 ...

meer dan 3 jaar ago | 1 answer | 0

Question

How to change color of individual bar graph.

y = [21000 65000 65000 65000 ; 16000 50000 50000 50000 ; 11000 34000 34099 34101; 6299 19500 19299 19300; 7701 37899 37901 3780...

meer dan 3 jaar ago | 1 answer | 0

Question

How to combine cell row into any varible??

value(:,:,1) = [1x2 double] value(:,:,2) = [1x4 double] value(:,:,3) = [1x16 double] val...

meer dan 3 jaar ago | 1 answer | 0

Question

How can i write any vector for many time from short form??

i have a vector V1 = [ 45 -45 45 -45 45 -45 45 -45 45 -45 45 -45 45 -45 45 -45 45 -45]; V2 = [0 0 0 0 0 0 0 0 0 0 0 0 ...

meer dan 3 jaar ago | 2 answers | 0

Question

How can i write any vector into short form?

I have a vector V = [0 0 0 -45 45 45 -45 90 90] i want to view it as countable form i.e [(0)3, -45, (45)2, -45, (90)...

meer dan 3 jaar ago | 1 answer | 0

Question

how to find and replace corresponding matri

a1{:} ans = 73.3333 50.0000 66.6667 50.0000 ans = Empty matrix: 0-by-2 ans = Empty ...

meer dan 3 jaar ago | 3 answers | 0

Question

How can i combined array automatically

a = [100, 125, 150, 175, 200, 225, 250, 275, 300, 325]; for k = 1: numel(a) Fx{:,:,k} = a(k:numel(a)) end ...

meer dan 3 jaar ago | 1 answer | 0

Question

How to generate Combination of special sets and subsets

a = [100, 125, 150, 175, 200, 225, 250, 275, 300, 325]; %Initial Guess Fx(:,:,1) = [100, 125, 150, 175, 200, 225, 250, 275,...

meer dan 3 jaar ago | 2 answers | 0

Question

I have 3*3*20 matrix and 1*1*20 matrix. how to multiply. I have multiply q and za

q(:,:,1:20); %3*3 Matrix za(1:20); % 1*1 Matrix How to multiply q and za. Error using q*za or q.*za

bijna 4 jaar ago | 1 answer | 0

Question

I have 3*3 Matrix. I have to save these matrix into 3*1 form means i have to save only (1,3) (2,3) and (3,3). other (1,1), (1,2).........(2,3) remove.

S S = (:,:,1:20)

bijna 4 jaar ago | 1 answer | 0

Question

I have to multiply 3*3 and 3*1 array. i am getting error using "curvatureqi=bsxfun(@times,q,curvature);" this is giving 3*3 matrix but i need 3*1 matrix in every layer or loop. please help

q = [3*3] Matrix where q = q(:,:,1:20) curvature = [3*1] Matrix where curvature is single matrix.

bijna 4 jaar ago | 1 answer | 0

Answered

sorting specific columns of a matrix

out = sort(a, 'descend'); for ascending order sort(a, 'ascend');

sorting specific columns of a matrix

out = sort(a, 'descend'); for ascending order sort(a, 'ascend');

bijna 4 jaar ago | 1

Question

How can i find deleted rows from matrix??

x0 = [2 3 2 2 2; 2 3 2 2 2; 2 4 1 2 2; 2 4 1 2 ...

bijna 4 jaar ago | 1 answer | 0

Question

Is it possible to find corresponding row from other matrix's row??

y = [ 90 90 -45 0 0 45 45 0 -45 15 15; 90 90 -45 0 0 45 45 0 -45 ...

bijna 4 jaar ago | 2 answers | 0

Question

How to generate 500 permutations of any vector length 20? I am getting error

y = [45 45 45 45 45 45 0 0 30 30 0 0 0 0 45 45 45 45 45 45]; [count,element] = hist(y,unique(y)); N1 = 5000; x1 = permute(...

bijna 4 jaar ago | 1 answer | 0

Question

How to find unique elements from every row within matrix??

y = [ 90 90 -45 0 0 45 45 0 -45 15 30 -30 75 -45 75 -75 90 90 -45 ...

bijna 4 jaar ago | 1 answer | 0

Question

How to control number of element or number of unique element in Matrix?

x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0];%Initial guess a = unique(x); % unique elemen...

bijna 4 jaar ago | 1 answer | 0

Question

How can i find value tends to zero. means value near by zero.

l(:,:,1) = -0.2881 l(:,:,2) = -0.2823 l(:,:,3) = -0.2775 l(:,:,4) = -0.2767 l (...

bijna 4 jaar ago | 1 answer | 0

Question

How to search row and delete row?

x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0];%Initial guess a = unique(x); % unique elements ...

bijna 4 jaar ago | 2 answers | 0

Question

How to replace and interchange values?

x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0]; a = unique(x); %Last column of x replaced b...

bijna 4 jaar ago | 1 answer | 0

Question

"Subscripted assignment dimension mismatch" Please correct my program. tell me idea/logic to make sequence

s = [30 30 30 30 30 30 0 0 0 0]; s = sort(s, 'descend'); %sorting sequence s uniques = unique(s); % finding unique elements ...

bijna 4 jaar ago | 2 answers | 0