Réponse apportée
Legend Producing Wrong Colour Lines
x=-5:0.1:5; freal=x.*exp(-x); ftaylor0= 1./exp(x); % they is scalar in your code ftaylor1= 1./exp(-x); % this is scalar in ...

presque 4 ans il y a | 0

Réponse apportée
I've tried to make a simulation with matlab but it can't work. especially for the function commands that I have described. I'm not good at matlab. can you help me to check the
clc;clear all;format long; y = [1000 0 0 2000 0]'; [T y]=ode45(@fgliom,[0 200],[10000 0 0 2000 0]',10^-7); [T0 y0]=ode45(@f...

presque 4 ans il y a | 0

Réponse apportée
When plotting ROC curve; test_labels=double(nominal(imdsTest.Labels)); I am getting an error as " Unrecognized function or variable 'nominal' .
test_labels = nominal(imdsTest.Labels); double(test_labels) % try this If you have defined function named nominal in your p...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
regexp shows an error while reading a space in text file.
ss = 'PORT 12 P=2 Z=50 PIN_ID=CB7TX' [port_tokens2,port_match3] = regexp(ss,'PORT\s+(\d+)\s+(\w+=\d)+\s+\w+=\d+\s+(\w*=\w*)',...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Error: The length of the segments cannot be greater than the length of the input signal.
fft_point = [2048 4096]; fft_point must have atleast 2 values as input argument for _pwelch_ function

presque 4 ans il y a | 1

Réponse apportée
Too many input arguments
p = [3 -2 -4]; TESTE(p) ;% give the input argument matrix p for the function TESTE in command window function r = TESTE(p) ...

presque 4 ans il y a | 0

Réponse apportée
Not enough input arguments in Matlab R2021b
Ke = randi(4,4); % assume this as FE stiffness matrix to be added gdl_bar = [2 2 4 4]; % no of DOF for each element in stiffn...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Something wrong with the produce output plots
%calculates the result of a 1km drag race for %a user define vehicle powered by an internal %combustion engine %2020 Porsche ...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
Hi, I keep getting y as a 3x3 matrix, but its supposed to come out as a 3x1 matrix. Could someone please find my mistake. I think Im missing a matrix decimal divide or multipl
% Take home problem 2 % Water (1), Acetone (2), Methanol (3) R = 83.14; % bar cm^3 mol^-1 K^-1 P = 2; %bars x = [0.35; 0.25;...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
WHEN I AM RUNNING THIS CODE I AM GETTING FOLLOWING ERROR
u = rand(1,5) % assume a matrix values [p,s]= perdecomp(u) % call the function giving input matrix u function [p,s] = perde...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
combining 5 rows into one matrix
mat1=1:10; mat2=11:20; mat3=21:30; mat4=31:40; mat5=41:50; % transpose is not required to make 5x10 newMat = [mat1; mat...

presque 4 ans il y a | 0

Réponse apportée
is the "for loop" is wrong? what can be the solution?
clc ti = 0; tf = 100E-4; tspan=[ti tf]; o = 1E6; tc = 70E-9; tf = 240E-6; a1 = 0.02; a2 = 0.02; P1 = 1; P2 = 1; ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
what the problem that I get to during plotting the graph
ti = 0; tf = 10E-4; tspan=[ti tf]; y0=[2;2;1;1;1].*10E-2; % this change [T,Y]= ode45(@(t,y) rate_eq(t,y),tspan,y0); plot(...

presque 4 ans il y a | 0

Réponse apportée
All I think is to get a sine wave function when plotting T vs A(1), but I didn't get any output. help me to modify this program
format short a = 0; b = 4; h = 0.1; V =1E-5; I1 = 0.2; I2 = 0.8; o = 3.5; % what is this variable ? tc = 3.0; % tf = ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
plot numbers with gap
clc clear close all; T=[1.96E-5, 2.18E-5, 6.09E-4, 6.04E-4, 6.11E-4]; S=[1.94E-5, 1.96E-5, 1.98E-5, 2.06E-5, 1.49E-4...

presque 4 ans il y a | 0

Réponse apportée
How do I specify range for my x axis using the plot function
x = linspace(-2*pi,6*pi); %give those values here y = cos(x); plot(x,y)

presque 4 ans il y a | 0

Réponse apportée
How to plot three different graphs in same window using subplots , animated line and adpoints . I have submitted my code in text box please help to run this three graphs
clc; close all; t = -3:0.01:3; x=@(t) exp(-t).*(t>0)+ 0.5*(t==0); xa=x(t); xe=( x(t)+x(-t))/2; x0=(x(t)-x(-t))/2; subplot(...

presque 4 ans il y a | 0

Réponse apportée
For loop not working
A = rand(2,4) for i=1:length(A) % using a single value B(:,i) = A(:,i)./sum(A(:,i)); % divide each element with sum of that...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Write Standard Deviation Distance
v = [10 12 14]; x = ones(1,numel(v))*7;% length of x vector (weights) for each element and to be same as vector v dist = stand...

presque 4 ans il y a | 0

Réponse apportée
How to plot square root of a function?
x1 = 0:0.01:10; % check with small intervals y = sqrt(1-(x1).^2); plot(x1,real(y)); ylim([-1 1.5]) If you use small inter...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can i run correctly my Backward Difference Formula code ?
%% Backward Difference Formula Method %% clc; clear all; h=0.01; t=0:h:1; n=numel(t); mu = [20 -20] hold all for k = 1:le...

environ 4 ans il y a | 0

Réponse apportée
dN/dt = s + ( g*N*T^2) /(h + T^2) - ( C *T - p*D -q*L) *N - (z*M*N) -( e*N)
f = @(T,N) (s+ ((g*N*T^2)/(h+T^2)) - ...) % change small case t to Upper case T and try f is function of T and N and not small...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Error using / Arguments must be numeric, char, or logical.
y=@(t) 2.718.^(-t/5)-(2.718.^(-t/5).*t)/5; t=0:1:10; plot(t,y(t)) Define the equation as anonymous function and plot

environ 4 ans il y a | 0

Réponse apportée
Bar plot with two x axis and Display Groups of Bars
x = 2010:2019; y = rand(1,10); % 1 y6= rand(1,10); % 2 yyaxis left %ax = gca; %ax.YAxis.Exponent = 2; b = bar(x,[y;y6]);...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Not enough input argument in ode45
[t,x] = ode45(@mastersystem,[0 10],[0 0 0 0 0 0]); % use a function handle to pass function as argument plot(t,x) function d...

environ 4 ans il y a | 0

Réponse apportée
What's wrong with my distribution function?
X = -100 : 1 : 100; Y = -100 : 1 : 100; k = 4; G = gamma(k/2) [ XX, YY ] = meshgrid( X, Y ); A = ( XX ).^2 + ( YY ).^2; A ...

environ 4 ans il y a | 1

Réponse apportée
Plot measured Filter data
T = readtable('Plot.xls') frequency = T{(22:109),1}; % change this to ffequency gain = T{(22:109),2}; phase = T{(22:109),...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
matlab indexing issue with range -pi:pi
amin=0.2; theta = -pi:pi/2:pi; gamma=0:0.5:3; for T=1:length(theta) for G = 1:length(gamma) phi=amin-(-pi/2); ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
phase shift using xcorr
t = 1 :0.1: 20; phaseshift= pi/2; s1 = sin(2*t); s2 = sin(2*t+ phaseshift); figure(1); clf; plot (t...

environ 4 ans il y a | 0

Réponse apportée
I am trying to find the integral gain (ki) of the following transfer function.
syms ki ki = 10 % e.g numeric values , not symbolic sys = tf([30.672 175.694*ki],[1 38.672 175.694*ki]); S = stepinfo(sys); ...

environ 4 ans il y a | 0

Charger plus