Community Profile # VBBV

### PEC

Last seen: Today Active since 2017

Programming in MATLAB applied to interdisciplinary engineering fields

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Why to I get "Unrecognized function or variable '1' ?
Could you check if it's _1_ or lower case alphabet _l_ used as variable in your script. Both appear same in Matlab scripts and h...

environ 13 heures ago | 0

Check this https://in.mathworks.com/help/rptgen/ug/mlreportgen.dom.rowsep-class.html

7 jours ago | 0

It does not stop!
%if true while abs(K-1)<(10^-5) This is check of tolerance using while condition according to your problem

9 jours ago | 0

How do you substitute x(1),x(2),x(3) in place of kp,ki and l respectively?
syms kp ki l y= ((1/10^(l + 1)*ki*kp*l*sin((pi*l)/2))/(kp + (ki*kp*cos((pi*l)/2))/10^l) - (1/10^(l + 1)*ki^2*kp^2*l*cos((pi*l)/...

13 jours ago | 0

what's going on?
plot(rand(4,4),'x-') which version of matlab are you using ?

13 jours ago | 0

matlab scatter with different colors by reading a file data
%f true z= repmat(length(x),1,6) scatter(x,y,200,z,'filled') Try this. Z must be numeric of same length as x.

13 jours ago | 0

unable to run imshow from matlab drive
%if true imshow('lena.png') Try using a char instead of string. And ensure full path if the image file is not in same ...

13 jours ago | 0

How to index y-values of a plot for specific x values
%f true [F_y index] = find(max(y)); x_max = x(index) Try this

15 jours ago | 0

Doubt regarding max(A,B).
%f true max([A B]) max([A;B]) The first would give 10 as max value. The second would give 10 6 5 as max values along eac...

28 jours ago | 1

%if p = fullfile(path,file); [Y,Fs] = wavread(p); Give the path and filename together if in different directory or just ...

28 jours ago | 0

Saving variable in a nested for loop
%if true for b = 1:length(linspace(-8,8,N/4)) % change this line ... transmission(b) = abs(tR - tL)/2; end % here...

environ un mois ago | 0

what is the meaning of these random numbers
r = (randi(0:1, 5, 16)+'0') % starting from character 0 ; ascii characters for 0 and 1 r = (randi(1:2, 5, 16)+'1') % starting ...

environ un mois ago | 0

What is the notation meaning in these codes
'u' means a vector which has 6 elements. First three elements assigned to variable xd Next three assigned to variable b1d

environ un mois ago | 0

Plot two points on single x value
x = 1:5; y = [1 2 1 2 5]; x1 = [3 4]; y1 = [3 4]; plot(x,y,x1,y1,'-s') grid Try this

environ un mois ago | 0

How can i match value in file and write the match corresponding row in new file
%if true for i=1:length(data(:,1)) % change idx_match=find(data(:,1)==data(i,1)) %matching value in data using Col1 i...

environ un mois ago | 0

can someone help me with this error message?
>>JoiningCNT2(ssgraph,cc,a,n,m,z) All the parameters (function arguments) need to be specified when you want to execute t...

environ un mois ago | 0

Question on how to use MarkerSize and creating a custom marker
x = [-2, 3]; y = [2, 7]; plot(x,y,'+','MarkerSize',6,'linewidth',2); plot(x,y,'-o','MarkerSize',20,'MarkerEdgeColor','green',...

environ un mois ago | 0

Error using * Incorrect dimensions for matrix multiplication. Error in hbg_implict (line 23) out = A*y + B*u - E*yp;
%f true out = A.*y + B.*u - E.*yp; Use element wise matrix operator

environ un mois ago | 0

For loop only accesses the last element in an array
Rawdata seems to be same for all cases. Thats why you get same graphs

environ un mois ago | 0

Is this the correct way to use "hold on" in a for loop?
%if true for t = 1:5 ; dx(t) = vx*t; dy(t) = vy*t-0.5*9.81*t^2; plot(dx(1:t),dy(1:t),'g-'); end you are trying to plot...

environ un mois ago | 0

getting error while using feedback
%if true K1 = tf([0.005659 0.05206 0.004496],[1 9.357 2.228 0.06147]) K2 = tf([0 0 27.5084 0],[0 0 27.5084 0]) feedback...

environ un mois ago | 0

Issue while plotting image (wrong scale)
%f true set(gca,'YtickLabel',0:100:1000) If you don't want Y scale to be inverted use the above

environ un mois ago | 0

comparing column vectors finding maxima element wise
%f true max([a;b]) Use this

environ un mois ago | 0

display names in the code
Try also using _disp_ function

environ 2 mois ago | 0

Why is my nested if statement is not working.
Check the size of _mark1_ it may be cell array instead of scalar value that you want to do condition tests through nested _If..e...

environ 2 mois ago | 0

Axes of plotted figure not complet (Matlab)
%if true box on Use this command to get the black lines top and right sides like you want.

environ 2 mois ago | 0

| accepted

Im trying to get a column vector with a list of composite numbers within a random range using the randi function but I keep getting an error.
%if true randB1 = randi([1 99],1,20); Try using randB1 like above. Since you require a 20 number range within a [1 99]...

environ 2 mois ago | 0

How to Set Plot Background Color
%if true x = linspace(1, 15, 15); y = randi([0 15], 1, 15); figure(1) h = plot(x, y, 'b-'); hold on patch([2 6 6 2 2...

environ 2 mois ago | 0