回答済み
Why is my if counter not working
s= 0 x = linspace(-1,1, 50) n = linspace(1,10,50) L = 2 total = 0 s= zeros(size(n)) for i = 1:length(n) s(i) = (8/(p...

約1ヶ月 前 | 0

回答済み
I need to plot a graph of P, Rdia and Vo, please help me how to get graph. (for every 10 increment of pressure, there is 1 ohm increment of Rdia , and display the output vo)
Rdia = 3673; % dia resistance value in ohm ; Rtemp = 3618; % Temperature resistance value in ohm; R1 = 3600; % fixed resistanc...

約1ヶ月 前 | 1

| 採用済み

回答済み
Export results from several excel files into one excel file
Partikel_RL(xy,:)=Elementanzahl_RL(xy,:); % second for loop is not needed end

約1ヶ月 前 | 0

回答済み
Legend wont display lines properly in figure window
lgd = legend('Bundle','30% Opening','50% Opening', ... '65% Opening','85% Opening','100% Opening'); Use without a { } ...

約1ヶ月 前 | 0

回答済み
gamma function error in calculation
syms x a Y=sym(zeros(1)); Y(1)=0; a=1/2 for i=1:4 if i==5 A=1; B = 0; Y(i+1)=simplify((gamm...

約1ヶ月 前 | 0

回答済み
Function works with one input but not the other
F(2,:) = Thrust ./ MFR ; F(1,:) = (y .* A_choke) ./ MFR; Check the size of output matrix

約1ヶ月 前 | 0

回答済み
Index exceeds array dimensions. Index value 150002 exceeds valid range [1-150001] for array 'v'.
for n = 1:length(t)-1; Error shows clearly that vector _v_ has 1 additional element. Change the loop as above since v(n+1) ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Plot power spectrum from FFT
power = abs(y).^2/(fs*n); % power of the DFT plot(f,power) Divide with _fs_ sampling frequency and plot it

約1ヶ月 前 | 0

回答済み
I want to contour plot the data as shown in attached figure from my equation. I am not able to get the gaussian type behavior. What's wrong with my code?
h_t=linspace(100,500,100); r=linspace(-100,100,500); [H,R]=meshgrid(h_t,r); Rho_m=Ib.*(Rho./(H)).^2.*exp(-(2*R.^2./(H))); %...

約1ヶ月 前 | 0

| 採用済み

回答済み
Zeros error when entering matrix data
roomLength=zeros(1,(numberRooms(i))); roomWidth=zeros(1,(numberRooms(i))); Give the size of _numberRooms_

約1ヶ月 前 | 0

| 採用済み

回答済み
find the coefficients a, b, and c of the quadratic polynomial. that passes through the three points (x, y)
syms a b c x = [1 4 5]; y = [4 73 120]; eqn = y == a*x.^2+b*x+c sol = solve(eqn,[a b c])

約1ヶ月 前 | 0

回答済み
i have 300 sheets in one worksheet in excel. i wan to import this to matlab. I want to create loop where it reads all sheets and plot graph on a same graph.
hold all for I = 1:length(num) A(:,I) = xlsread('C:\Users\varun\OneDrive\Desktop\New folder\asd.xlsx',num2str(I),'A7:A26'); ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Plot summation series | For Loop | Creep Strain
clear all;clc %% Linear Creep Example s=100; % constant tensile stress, (MPa) t=linspace(0,10000,11); % duration of applied ...

約1ヶ月 前 | 0

| 採用済み

回答済み
finite difference method scheme
clc clear all %%%%%%%%%%%%%%% Inputs r_in=1; % Inside Radius of polar coordinates, r_in, say 1 m r_out = 2; % Outside Radin...

約2ヶ月 前 | 1

| 採用済み

回答済み
Changing the variable used in a loop
tube_inner_R = 0.003 tube_L=[12.14 6.46 9.84 8.17]; % put them in vector for inst = 1:4 tube_V(inst)=pi*tu...

約2ヶ月 前 | 0

| 採用済み

回答済み
what is wrong with my calculation?
syms rs xs rp xp [xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])

約2ヶ月 前 | 0

| 採用済み

回答済み
Array after nmz function to create a bar graph
array=[quiescence; walking; eating; climbin; mating] % use []

約2ヶ月 前 | 0

| 採用済み

回答済み
a run function gives an error due to size
resultt(bi,bj) = birfazson(1,birfazson(2,:) == 1); Ok. Check by removing transpose at the end

約2ヶ月 前 | 0

回答済み
What is this line of code doing?
Checking the value of *blob(i,j-1))* in _blob_ matrix and replacing it with this value *blob(i-1,j)*.

約2ヶ月 前 | 0

回答済み
Ask user for 3 equations and solve ODE
% solve u'(t) = F(t,u(t)) where u = [u1(t), u2(t), u3(t)]' % using forward euler method % Initial conditions and setup neqn...

約2ヶ月 前 | 0

回答済み
Graph are not following the if statement
Modify this part of code and check for k = 1:length(nDp) if nDp(k) > 100 nDp(k) = 100; else nDp(k) = (Lc*Vt(k))/...

約2ヶ月 前 | 0

| 採用済み

回答済み
Plotting error "Vectors must be the same length"
t(n+1)=t(n)+DeltaT; Change this line to above

約2ヶ月 前 | 0

| 採用済み

回答済み
Matrix calculation(replacing a new value instead of matrix element)
a1=7; a2=12; a3=4; w1=min([a1,a2,a3]); format shortG f1=double(a1-w1) f2=double(a2-w1) f3=double(a3-w1) %%%%%%%%%%%%%%%%...

約2ヶ月 前 | 1

回答済み
Probability calculation for Bernoulli trials.
function P = bn_atleast(p,N,k) rename the first line of bn_atleast to above

約2ヶ月 前 | 0

回答済み
converting date and time string to datetime object
k = 1; while k<=length(Ionotable.x_Time) x = (Ionotable.x_Time(k)) %x_Time is the column where the date and tie values...

約2ヶ月 前 | 0

| 採用済み

回答済み
Having errors in a multivariable for loop.
temp_int=24; temp_ext=10; U=5; hi=4; h=1:5; temp_diff=(U/hi)*(temp_int-temp_ext); I = 0:0.1:2.5; x = 0:0.1:2.5; n=...

約2ヶ月 前 | 1

| 採用済み

回答済み
Multiple sine periods with a specific fundamental frequency
%%Time specifications: f = 100; %fundamental frequenxy Fs = 20*f; % samples per se...

約2ヶ月 前 | 0

回答済み
need to use this analytical solution to plot the absolute percent error in the concentration A at each time step for Euler's method
nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A(1) = 1; B(1) = 3; C...

約2ヶ月 前 | 0

回答済み
Finite Difference Centre Time Centre Space
%Set up plots to solve linear advection equation using a CTCS scheme u = 2.0; %Set constant velocity value nx=51; %Number of G...

約2ヶ月 前 | 0

回答済み
I keep getting an error. Help
tspan = [0:0.05: 8]; y = [0.4; 0]; [t , y]= ode45(@odefun, tspan, y); plot (t, y(:, 1)); xlabel ('t'); ylabel ('y(1'); tit...

約2ヶ月 前 | 0

もっと読み込む