Community Profile

photo

VBBV


PEC

Last seen: Today Active since 2017

Programming in MATLAB applied to interdisciplinary engineering fields

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • 12 Month Streak
  • Thankful Level 3
  • Promoter
  • Solver
  • Personal Best Downloads Level 2
  • First Review
  • Knowledgeable Level 4
  • Pro
  • Revival Level 3
  • First Answer
  • 5-Star Galaxy Level 1

View badges

Content Feed

Answered
How to get Fourier transform of rectangular window as shown by wvtool function?. Why frequency domain of rectwin(M) using fft and wvtool are different?
_By default, the frequency domain plot is the magnitude squared of the Fourier transform of the window vector in decibels (dB)_ ...

ongeveer 7 uur ago | 0

Answered
Dot Product of row vectors using loops not functions
result = dot(a1,a2) Why do you need a for loop ?

ongeveer 9 uur ago | 0

Answered
Make scalar data into a vector
for i=1:length(x) a(i)=round(-19.93984628*x(i).^2-19.26822854*x(i)+28.63259561); %Use inverse matrix to form system ...

ongeveer 11 uur ago | 0

Answered
Code not working?
clear; clc; % Given data E_f = 228000; % Elastic modulus of the fiber E_m = 1325; % Elastic modulus of the matrix G_f = 15...

ongeveer 16 uur ago | 1

Answered
Unable to plot transfer function properly by using step(tf,array)
sys = tf(4,[1 2 10]); tt=0:0.0074:0.3; step(sys,tt)

ongeveer 16 uur ago | 0

Answered
where is the mistake?
while count<15 if strcmp(w(count),'r') disp('yes') count=count+1; else break;% this will ...

1 dag ago | 0

Answered
i have a function and i need to find the output of the last value. y(n)=1/2*(y(n-1)+A^2/y(n-1)) 0<=n<=N-1 (N=30 A=4),When i run it says output arguments not assignet.
function res = my_matlab_function(A,N) % res is te function output y(1)=1/2*(3+(A^2/3)); y(2)=1/2*(y(1)+(A^2/y(1))); for n...

1 dag ago | 0

Answered
I have written the code for three differential equations for plotting the graph . I am not able to get the graph .
clc; clear all; close all; F = @(Z,X,Y) (1.07*Z*Z-Z*Z*Z-0.17*Z-(0.36*Z*X)-(0.0001*sqrt(Z*Y))/(1+0.2*sqrt(Z))) A = @(X,Y,Z)...

1 dag ago | 0

Answered
Implicit matrix expansion correction
a = rand(11,21); b = rand(21,1); c = 21 a = reshape(a(a~=b.'),[],c) There is no error with your code. Maybe it's version...

1 dag ago | 0

Answered
Nothing shows up on plot?
MM = 24; days = 1;i =1;% set value to counter while MM > 0 m(i) = MM; MM = MM - randi(5); MM = MM - 7; ...

1 dag ago | 0

Answered
Ode45 not working in matlab 2021b
zdot=inline('[z(2);-0.2*z(2)-sin(z(1))]','t','z') Check your zdot function. There is no variable with _t_ defined in it...

2 dagen ago | 0

Answered
How can I remove some specific lines from this contour plot
Easy way is that you can select "Edit" option from the figure window after plotting and click on figure properties. Then click o...

2 dagen ago | 1

| accepted

Answered
Reading all values as a string from excel file
Use readtable or readmatrix instead of xlsread

3 dagen ago | 0

Answered
TASK 5 PROBLEM SIMULINK ONRAMP
Set the initial condition source to external and try

3 dagen ago | 0

Answered
Simulink Onramp 13.1 Task 5
Set the initial condition source to external from drop down menu.

3 dagen ago | 0

Answered
Error when indexing 3D cell array: Index in position 2 exceeds array bounds
N = block_size*ceil(numel(participants{i,2})/block_size); Try changing this line to above. It seems you are using _numel_ f...

4 dagen ago | 0

Answered
How Do I Properly Format my Bar Graph?
x = [379.5 , 1138.3 , 1897.2 , 2656]; % your values y = rand(size(x)); bar(x, y) xlabel('Number in the Thousands (ie 4,000)'...

4 dagen ago | 1

Answered
Getting a blank graph
syms theta1 grid on w2 = @(theta1) ((cos(pi/6)*(sec(theta1)).^2)./ ((tan(theta1)).^2+(cos(pi/6)).^2))*2*pi; theta1 = 0:pi...

5 dagen ago | 0

Answered
why do I keep getting this error message
t = 0:1/320:0.5; x = @(t) 6*cos(4*pi*t)+2*sin(16*pi*t) -4*sin(32*pi*t);% define anonymous function x(t) plot(x(t))

6 dagen ago | 0

Answered
Plotting with dsolve for ODE
clear clc [x,y] = meshgrid(-5:0.4:5,-5:0.4:5); dydx = x.^2+y.^2-1; L = sqrt(1+dydx.^2); quiver(x,y,1./L,dydx./L,'k') hold...

7 dagen ago | 0

Answered
Hi COMM, How can I hold only one plot while updating the rest in a figure ? E.g. I want to keep (x,f) plot fixed , while keeping the current value for the animated plot
for k=1:length(x) plot(x(1:k),f(1:k),'or') axis([SSmin SSmax 0 30]) pause(2) end Check with this

7 dagen ago | 0

Answered
the for loop is only giving me the last value
North_20170401 = zeros(360,6); N_Y_K_20170401 = zeros(360,6); for i = 9 :15 : 359 %for j = 1:1:24 disp( Data_2...

8 dagen ago | 0

Answered
matlab 'colorbar' error
This syntax does not seem to be supported in Matlab axis('ij') See what you get if you change it to axis ij

8 dagen ago | 0

Answered
Error in using diff for derivative
t = f(a); while (true) if (gradient(t) ~= 0) b = a - t./gradient(t); if (abs(b-a) <= error) ...

8 dagen ago | 0

Answered
How ro divide a scalar by a excel data and plot the result?
X= 51./data(:,4); Use the element wise division operator

8 dagen ago | 0

| accepted

Answered
add new row to table with missing values
V.name = "Ann"; V.city = "Berlin"; V.age = 24; V.height = 172; T1 = struct2table(V); V2.name = "Luka"; V2.city = "Tokyo"...

8 dagen ago | 0

Answered
How do I extract a vector from a single field in a structured variable?
folder_names = struct('name',['MH';'TM';'JW']) participant_ID = folder_names.name Check with this

9 dagen ago | 0

Answered
How can ı solve invalid indexing or function
clc; clear all; syms nw W x Q(x) Y Qo ode1=diff(Q,x)== -nw*W*Y; cond1 = Q(0)== 0; cozum1(x)=dsolve(ode1,cond1); cozum1=s...

9 dagen ago | 0

Answered
Index exceeds the number of array elements. Index must not exceed 1.
z(i+1)=z(i)+(1/6*(k1_hiz(i)+2*k2_hiz(i)+2*k3_hiz(i)+k4_hiz(i))); v(i+1)=v(i)+(1/6*(k1_ivme(i)+2*k2_ivme(i)+2*k3_ivm...

9 dagen ago | 1

Load more