Beantwortet
IF statement not generating results?
data=load('artificial_slope.txt') %loading data % defining input values based of input txt file nx = data(:,4); ny = data(:,...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to save the values of DelL(T)
Lo = 44.46 Do = 18.76 alpha = 0.0002178 for T = 36:1:180 DeltaL = Lo*alpha*(T-35); DelL(T) = DeltaL; end DelL(DelL ...

mehr als 3 Jahre vor | 0

Beantwortet
Why I can't run this coding?
syms q1(t) t %q1(t) h=q1 q1_of_t=symfun('q1(t)',t) h1=subs(h,q1,q1_of_t) %diff q1(t),diff twice q1(t) diff_q1t=diff(h1,t...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
i am getting this error for conv 2d please help me
i=imread("peppers.png") imshow(i) i_i=im2double(i); k=ones(4,4)/16; b=0; % this is key parameter to check ni = conv2d(i_i...

mehr als 3 Jahre vor | 0

Beantwortet
what to do in this case?
fplot (@(x, y) x.^3.*y-2.*x.*y.^2+y-0.2,[0, 1, 0, 1]); Give the values of y range just like x

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Text size in figure relative to figure window
FB_text_ = text(6,2,FB_Instruction,'FontUnits','normalized','FontSize',25)

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Appending data to end of column in Table (for Loop)
T{i} = readtable(filename,'Range',range,'ReadVariableNames',false); You can use cell arrays instead

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I plot a diagonal line in MATLAB?
clc clear all %%Given Parameters for a GA Acrobatic Aircraft M = 2300; S = 19.33; C_Lmax = 2; C_Lmaxneg = -1.2; AR = 7...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to match two y axes of the yyaxis , so that their 0 points are aligned
T_in = timeseries((T_pedal),(t_pedal)); figure (2) yyaxis left plot(t_pedal,T_pedal,'y'); hold on t_tar_mot = Trip.Data.S...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how can i sum the 'y' above in the picture i have polt ?
y = 0; for x = -2:0.001:2; y = y + 1.8*exp(-x.^2); plot(x,y,'bo','Markersize',1) hold on end y

mehr als 3 Jahre vor | 0

Beantwortet
plotting y-axis issue and wrong plot
subplot(3,1,3) hold on for m=linspace(0,1000,11) a=linspace(20,220,1000); M=linspace(0,1000,1000); f=M.*a;. %...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Combining columns in a table into comma separated values while skipping NaN
currTable{jj} = strcat(num2str(currTable.Var3(jj)),',',num2str(currTable.Var4(jj))); If you use cell arrays it becomes easi...

mehr als 3 Jahre vor | 0

Beantwortet
problem with Read excel file
You can try using a *readmatrix* function. <https://in.mathworks.com/help/matlab/ref/readmatrix.html>

mehr als 3 Jahre vor | 0

Beantwortet
Implementing a markov chain for a probability dependent random walk
for n = 1-n0 :2: n0-1

mehr als 3 Jahre vor | 0

Beantwortet
Store a values in to a table at each iteration of loop
clear all close all v1=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]; Fs=12000; %sampling frequency T=1/Fs; %samplin...

mehr als 3 Jahre vor | 0

Beantwortet
Can anyone explain why I'm getting this error?
omega=3*pi/2 There is missing multiplication operator

mehr als 3 Jahre vor | 0

Beantwortet
Plot two sets of data in one plot (different Time vs Temp data sets)
% figure('WindowState','maximized'); x1 = 1:10; A1 = rand(10,1); x2 = 1:10; A4 = rand(10,1); plot(x1, A1, 'LineWidth', 1)...

mehr als 3 Jahre vor | 0

Beantwortet
how to plot the exponential fourier series in matlab?
% (a)plot x(t) over a time interval (0,3) clear;clc t = 0:0.01:3; % total simulation time x = exp(-t); plot(t,x,'r','LineWid...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to shift collum of matrix to the right ?
A = eye(10) A = circshift(A(3,:),1) You can use circshift function to shift position of zeros in the matrix as above

mehr als 3 Jahre vor | 0

Beantwortet
How to use for loop to count?
patient_ages = [15 8 6 12 16 3 18 12 13 9 8 15 5 2] over12 = 0 for i=1:length(patient_ages) if patient_ages(i) > 12 ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Calculating Value of Inverse function
syms x g = finverse(x.^2./(1+sqrt(x)),x); % x = 2; f = @(x) g; disp(f(2))

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to set x axis limit while using semilogx
T1 = [1 10 100 1000 10000] % x values T2 = [0.1 10 100 1000 10000] % x values Y = [0 1 4 7 10] semilogx(T1, Y,T2, Y) axis([0...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
trying to convert the answers for T2 into an array for min and max values
betad = 0:30:180; betar = deg2rad(betad); T2array = zeros(2,numel(betar)); for k = 1 : length(betar) Beta = betar(k); ...

mehr als 3 Jahre vor | 0

Beantwortet
I am trying to plot this problem but can not get the exact result.whats wrong with this.
E=100*cos(3*1e8*t+k_y*y+k_z*z) % 1e8 plot(y,E,'linewidth', 2);grid on;

mehr als 3 Jahre vor | 0

Beantwortet
how do I store the values of the equation from a for loop in a matrix, each run being the following row?
y = 0; n = 1; imax = 9; a = zeros(imax,1000); a(1,:) = y; x = linspace(0,2,1000); for i=1:imax y = y + (1/n * sin(n*2...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can you extend a vector with the last value?
X = rand(1,5) A = rand(1,3) Anew = [A repmat(A(end),1,size(X,2)-size(A,2))]

mehr als 3 Jahre vor | 0

Beantwortet
Using a while loop to solve a Taylor Series with approximate values.
f = atan(1); n = 0; i = -1; err_approx = 100; while (err_approx >= .5) % check the condition here i = i + 2; ...

mehr als 3 Jahre vor | 0

Beantwortet
Torque of a turbine using Euler's equation
clc; clear all; % T = pQ(r1V1cosa1 - r2V2cosa2) % Alpha is the angle between turbine linear % velocity and absolute p = 1.9...

mehr als 3 Jahre vor | 0

Beantwortet
linspace is causing an error
n2 = [1.2 1.75 2.2]; D = linspace(0,1,100); for k = 1:length(D) T(:,k)= (9.68.*n2.^2)./(11.6964.*n2.^2)+(1-n2.^2).*(5.8564-n2...

mehr als 3 Jahre vor | 1

Mehr laden