Community Profile

photo

VBBV


PEC

Last seen: Today 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

バッジを表示

Content Feed

表示方法

回答済み
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)_ ...

約16時間 前 | 0

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

約17時間 前 | 0

回答済み
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 ...

約19時間 前 | 0

回答済み
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...

約24時間 前 | 1

回答済み
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)

1日 前 | 0

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

1日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

回答済み
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...

2日 前 | 0

回答済み
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; ...

2日 前 | 0

回答済み
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...

3日 前 | 0

回答済み
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...

3日 前 | 1

| 採用済み

回答済み
Reading all values as a string from excel file
Use readtable or readmatrix instead of xlsread

3日 前 | 0

回答済み
TASK 5 PROBLEM SIMULINK ONRAMP
Set the initial condition source to external and try

4日 前 | 0

回答済み
Simulink Onramp 13.1 Task 5
Set the initial condition source to external from drop down menu.

4日 前 | 0

回答済み
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日 前 | 0

回答済み
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)'...

5日 前 | 1

回答済み
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...

6日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

回答済み
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日 前 | 0

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

9日 前 | 0

| 採用済み

回答済み
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"...

9日 前 | 0

回答済み
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日 前 | 0

回答済み
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...

10日 前 | 0

回答済み
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...

10日 前 | 1

もっと読み込む