Community Profile # VBBV

### PEC

Last seen: Today Active since 2017

Programming in MATLAB applied to interdisciplinary engineering fields

#### Statistics

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

View by

How can the individual samples be visable in the plot
S = linspace(0,0.5,25)

1 day ago | 0

Filter a table by 2 columns
load patients T = table(LastName,Age,Smoker,Gender) Tsmokermale=(T.Smoker==1 & T.Gender=="Male") T(Tsmokermale,:) Try s...

3 days ago | 0

Vector error when using plot function
nmax = 3.8; nmin = 1.5; W = 150; C_Lmax = 1.6; rho1 = 1.225; S = 2; V1=((nmax*2*W)/(C_Lmax*rho1*S))^(1/2); V2=-round(((n...

3 days ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.
clearvars % ini_dis= input('Enter the value of initial displacement : '); % ini_vel= input('Enter the value of initial velocit...

3 days ago | 0

| accepted

Incorrect dimensions for raising a matrix to a power
y=1./(sqrt((1-x.^2).^2+(4*0.01^2*x.^2))) As mentioned in the error comment use the element wise power

4 days ago | 0

How do I plot a function with multiple steps
syms y z a b c x=10 viscosity=(1.8*10^-5) Pi=3.1415926 Densityair=1.25 Densitypart=1000 y=(.01*10^-9):(0.01*10^-9+10^-6)...

5 days ago | 0

| accepted

Use of a loop to read and concat multiple cell table

5 days ago | 0

Error witth Matrix calculus
syms C1 L C R s; C = [[(R + s*L),-s*L];[-s*L, (R + s*L + 1/(s*C1))]]; V = [[R + s*L,1];[-s*L,0]]; i2 = det(V)/det(...

5 days ago | 0

No line on my graph
w=0.001:1000; modz=sqrt((w.^0.5 + 20*cos(pi/8)*w.^0.25 + 100)./(1+ 2*cos(pi/8)*w.^0.25 +w.^0.5)); W=log10(w); figure(3) ;...

5 days ago | 0

i have an error using plot function with syms engine
clc close all clear a=0.001:0.0002:0.0018; syms x a w %x=1.0:0.1:1.98; Ef=427000*10^6; % in Pa Em=89000*10^6; Ec=184000*...

5 days ago | 0

How do I list only i values of a cross product in a plot.
%if true x=-15:15; for i= 1:length(x) C=[0,0,30]; B=[x(i),0,30]; A=[0,40,30]; O=[0,0,0]; rOA=A-0; rAB=B-A; MagTAB=875...

9 days ago | 0

| accepted

I am unable to display my answers on command window
%if true disp('a =');disp(a) Try like this

9 days ago | 0

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

10 days ago | 1

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

17 days 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

18 days 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)/...

22 days ago | 0

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

22 days 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.

23 days 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 ...

23 days 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

24 days 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...

1 month ago | 1

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

1 month 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...

1 month 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 ...

1 month 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

1 month 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

1 month 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...

1 month 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...

1 month ago | 0