Réponse apportée
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])

environ 4 ans il y a | 0

Réponse apportée
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'); ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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])

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Array after nmz function to create a bar graph
array=[quiescence; walking; eating; climbin; mating] % use []

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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))/...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Plotting error "Vectors must be the same length"
t(n+1)=t(n)+DeltaT; Change this line to above

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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=...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
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...

environ 4 ans il y a | 0

Réponse apportée
How to give a piecewise function as input
clear all clc syms t s y(t) Y dy(t)=diff(y(t)); d2y(t)=diff(y(t),2); F = [-1 1 16]; %input('Input the coefficients [a,b,c]:...

environ 4 ans il y a | 0

Réponse apportée
my plot for current vs speed of an energy efficient vs standard efficiency induction machine is not showing any values
clear s=0.0005:0.0005:1; %Slip [pu] f = 50; p = 4; ns=120*f/p; n=(1-s)*ns; R1=1.1; X1 = 0.2; Xm = 1e-3; R2 = 3.4; X2...

environ 4 ans il y a | 0

Réponse apportée
My Fourier Series plotter isn't outputting correct y-values
plot(yfit(1:Ts:end)) % plot your fourierseries It seems you have already computed the fourier series, To visualize the smooth...

environ 4 ans il y a | 0

Réponse apportée
User input changes circle radius and velocity
v=10;%input('Please provide a particle velocity: \n'); r=5; %input('Please provide a radius: \n'); e.g. radius here x0 = -...

environ 4 ans il y a | 0

Réponse apportée
Not enough input arguments.
clear all; close all; clc; % phi=0.9*pi; phi0=pi/3; phi=0:0.1:2*pi; %%PRC Type-1: z=(1-cos(phi)).*exp(3*(cos...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
If loop to use different formulae under different conditions
P_load=832.40; P_unload=901.35; rho=1.2; R= 0.287; T_std=293; T_stdf=((T_std-273)*(9/5))+32; T_atm=304; T_atmf=...

environ 4 ans il y a | 0

Réponse apportée
How to plot constant vector field: f(x,y)=2 ax + ay
x=-3:3; y=-5:5; [x,y]=meshgrid(x,y); u=repmat(2,length(x),7); v=repmat(1,length(x),7); quiver(x,y,u,v)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Radar scattering coefficient plot
clc clear all close all theta=0:0.1:90; K=linspace(0,50,length(theta)); sc=K.*exp(-theta./30); polarplot(theta*pi/180,sc...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Plot Straight Line Segments
yline(200); xlim([0 20]);

environ 4 ans il y a | 0

Réponse apportée
How to use writetable in a for loop
T{k} = regionPropertiesTable(31,4) Use a cell array for all participants. Later use writetable(T) Outside of loop

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Question on summing function handles
for j = 1:length(N1) % remaining code here S1 = @(t,x) ((-56.*(1-sqrt((x-xj).^2+(t-tj).^2)).^6.*(35*sqrt((x-xj).^2+(t-...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to plot multiple graphs using different values for one of the variables?
for sigmaR=[20,60,8,450,35,5] % put this in [ ] plot(f,alphat) hold on end Put the loop vector in [ ] and use ho...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Solving differential equation with Runge Kutta 4th order
a=0; b=1; %Stepsize h=0.05; %time interval and initial value t=(a:h:b)'; x(1)=0.032; parameter=0.15; t1=zeros(siz...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
fix the indices of the matrix
close all;clear;clc; load('ecg_sbj1.mat') sig=ecg N=length(sig); fs=200; t=[0:N-1]/fs b=1/32*[1 0 0 0 0 0 -2 0 0 0 0 0 1];...

environ 4 ans il y a | 0

Réponse apportée
solving diffrential equation systems
v1=1000; v2=1500; v3=100; k1=.1; k2=.2; k3=.4; syms f(t) g(t) y(t) eq1 = diff(f)==((1/v1)*(1000+100*g-1100*f-k1*v1*f)) ...

environ 4 ans il y a | 0

Charger plus