Community Profile

photo

VBBV


Last seen: Today

PEC

343 total contributions since 2017

Contact

VBBV's Badges

  • Revival Level 3
  • 3 Month Streak
  • Knowledgeable Level 3
  • Solver
  • First Answer
  • Personal Best Downloads Level 2
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Thankful Level 2

View details...

Contributions in
View by

Answered
How to add values around a vector without changing the vector values.
%if true Y = 1:21; Y = Y' Y(1,1) = 0; Y(21,1) = 0

ongeveer 2 uur ago | 0

Answered
Directivity function (polar pattern) of acoustic dipole in closed form?
%if true theta = 0:360 polar(sin(theta).^2*pi/180)% sin^2(theta)

ongeveer 10 uur ago | 1

| accepted

Answered
P(t)=25sin(35t) euler method
%if true x = zeros(1,2); There is no _xeros_ function im matlab

ongeveer 11 uur ago | 0

Answered
How do I get a loop to calculate for each value of a formula, not just the last n of the input(N)?
%if true for j=1:N You need to use above loop structure. You don't need one for loop

ongeveer 12 uur ago | 0

Answered
Import data doesn't import some of the values
T = readtable('weighted_network.txt') % you can also use readmatrix function

ongeveer 14 uur ago | 0

Answered
Create a histogram of y-axis positions at x=100?
hold on Y = 1:30; X = 1:100; bar(X(end),Y*0.1,'stacked'); % scaled to represent bar with plot You can use the above at the ...

ongeveer 19 uur ago | 0

Answered
how to change x and y values to a range of values
X=linspace(-2*c,1*c,20); % define X vector similar to Y but of same number of divisions i.e. 20 Y=linspace(-.7*c,0.1*c,20); %...

ongeveer 22 uur ago | 0

Answered
How to plot level curves
[X,Y] = meshgrid(700:1:900,-100:1:100); % assumed in nano and micro meters Z = exp(-0.5.*((X-800)./40).^2)*cos((2*pi.*Y*1000...

ongeveer 23 uur ago | 0

Answered
Error plot is starting at the wrong value in my "while loop"
while t1<6 theta1(i+1)=theta1(i)+psy1(i)*dt1 psy1(i+1)=(-g/l)*dt1*theta1(i)+(1-c*dt1)*psy1(i); theta_exact(i)=1...

1 dag ago | 0

Answered
Function keeps getting errors, how to fix?
function RH = RelHum(Tdb, Twb) syms n % define the symbolic n ftoc = @(n) ((n-32)*(5/9)); svp = exp(1)^((16.78*ftoc(Tdb) ...

1 dag ago | 1

| accepted

Answered
How do I fix this error to output the correct data? I get an error when I use disp.
disp(['You caught ', wholeFishWeight , ' kg of fish for Whole Fish, to be sold for $' , wholeFishIncome]) disp(['You caught ' ,...

1 dag ago | 0

Answered
Create two x axes, but one of them is a log scale
Read semilogx function https://in.mathworks.com/help/matlab/ref/semilogx.html

1 dag ago | 0

Answered
I have complex output values, but the output displays the 0 of the other half as well
M= [ 0+9i 0+1i ; 0+1i 67+19i] disp(table(imag(M),'VariableNames',{'Impedence Matrix'})) %Imp = table(real...

2 dagen ago | 0

Answered
Composite Simpson's 1/3 rule code error
syms x % define x as symbol %x = linspace(0, 4,5); fx=@(x) 1-exp(-x); % use function handle as D'Errico suggested Then you ...

2 dagen ago | 0

Answered
Changing variables within loop equations
L = 1:21; % use a vector for iteration /counter for i = 1:1:L(8) % access them via L ... % your code end for i = L(9):1:...

2 dagen ago | 0

| accepted

Answered
How to extract specific values in some pattern from rows and columns of a table?...(in this case somewhat zig zag)
see this solution shown in below link https://in.mathworks.com/matlabcentral/answers/373937-how-to-find-pattern-in-an-array

2 dagen ago | 0

Answered
how can i make this animation faster in MATLAB?
hmax = 25; % max height n = 100; % make this value smaller h = linspace(0,hmax,n); t = linspace(0,360,n); k = 0; pt = 1/600...

2 dagen ago | 0

Answered
index exceeds matrix dimensions
j=0; for j=1:dt:40 for i=2:n-1 M(i,j)=1-(1-a)*alpha*(1-exp((-alpha/(i1*Yw)*(U(i+1,j)-U(i-1,j))/(2*dz)))); end end

2 dagen ago | 0

Answered
Plot time on x axis for 24 hours duration
%if true T = hours(0:2:24) TT = duration(T,'Format','hh:mm') Rd = rand(13,1) plot(TT,Rd) xticks(TT); xticklabels({'00:00',...

3 dagen ago | 0

Answered
Transfer function, function, Fcn, G
%f true num = [1.077e4] den = [3.439e-7 1 0] Enter the vectors _num and den_ coefficients in the transfer function blo...

3 dagen ago | 0

| accepted

Answered
Plotting e^-t graph
t = 0:0.1:10; y = exp(-t); plot(t,y) define t and use exp function to calculate and plot the equation

3 dagen ago | 1

Answered
How to plot multiple unit tangent vector along a 3D curve using quiver3
t = linspace(0, 2, 80); x1 = t; y1 = t.^2; z1 = t.^3; TangentUni = 1./sqrt(1+4*t.^2+9*t.^4), 2*t./sqrt(1+4*t.^2+9*t.^4), 3*t...

3 dagen ago | 0

| accepted

Answered
How to use fprintf to show collated values for two arrays.
for i = 1:length(X); fprintf('%d,%d\n',X(i),Y(i)); end

3 dagen ago | 1

| accepted

Answered
Error on Switch/case with cell array char data
get = input('type(letters only, no puncuation): ' , 's'); split = char(get); sorted_split = sort(split); input_prob = []; fo...

3 dagen ago | 0

Answered
Incorrect Impulse Train Waveform Fourier Representation
%if true %% Definition %% N = 90000; % number of harmonics t = -10:2:10; T_0 = 4; % time period w0 = 2 * pi * (1/T_0)...

3 dagen ago | 0

Answered
How to increase maximum number of iterations in a 'for' loop, when in the loop?
Delete the *break* statement inside the *if* condition and run again.

3 dagen ago | 0

Answered
having legend title and enlarging legend marker size at the same time
%f true %lgd.MarkerSize = 20 set(lgd,'MarkerSize',20); lgd.Title.String = 'Recoating Velocity (%)'; lgd.Title.FontSize = ...

4 dagen ago | 0

Answered
Generate signal using rectpulse
%if true sign1 = rectpuls(t,A) plot(t,sign1) Use the *rectpuls* function to plot

4 dagen ago | 0

| accepted

Answered
why do I have unrecognized function error for z?
%if true buff = char(buff);% convert to char or number switch buff case 'none' z = 0; case '...

4 dagen ago | 0

Answered
Please help this semilogy error message
N = 100 ip = rand(1,N)>0.5; % generating 0,1 with equal probability s = 2*ip-1; % 0 -> -1; 1 -> 0 >> BPSK modulation nRx_max...

4 dagen ago | 0

| accepted

Load more