Respondida
column-wise input for string and double data using fprintf
fprintf('%s\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n', data_string.', data_numeric.') Add a newline after each format specif...

más de 4 años hace | 1

| aceptada

Respondida
Colors not showing in legend
legend('Zone1','Zone2','Zone3','Zone4','Zone5','Zone6'); Use a different variable name for legends. It seems you also use i...

más de 4 años hace | 0

| aceptada

Respondida
How can I get a figure from an equation ?
N = 0:10:400; M = 350*(1-(N/4010).^2) plot(N,M) Try regular plot function and check

más de 4 años hace | 0

| aceptada

Respondida
arrays have incompatible sizes for this operation help me PLZ
clear;close all;clc counter=1; min_nl=-10; step_nl=1; max_nl=0; noise_levelsdB=min_nl:step_nl:max_nl; for k=min_nl:step_...

más de 4 años hace | 0

Respondida
Hello, I'm trying to plot the I-V curve for a MOSFET, but I get a "Vectors must be the same length" error message. I don't understand why this is the case.
clear all; close all; clc; x1 = 0:0.01:6; y1 = (0).*x1-(1/2).*x1.^2; x2 = 0:0.01:6; y2 = (1/2)*x2.^2; x3 = 0:0.01:6; y3 = ...

más de 4 años hace | 0

Respondida
Solution of symbolic fourth order polynomial equation
A = 2; B = 1.4; C = 3 syms L eqn = L^4 + A*L^2 - B*L + C == 0 sol = double(vpasolve(eqn,2)) Try using vpasolve

más de 4 años hace | 0

| aceptada

Respondida
Error in execution?
clear clc x=[0 2 4 6 8]; y=[0 2 4 6 8]; T=[100 90 80 70 60; 85 64.49 53.50 48.15 50; 70 48.90 38.43 35.03 40; 55 38.78 30...

más de 4 años hace | 0

Respondida
How to plot a convergence graph for a double sum?
T=0; %terms used in series M=15; N=15; q_m=zeros(M,1); qq_m=zeros(M,1); x=2.5; y=3.5; for n=1:N for m=1:M T=T+...

más de 4 años hace | 1

Respondida
Divide transfer function get "Model I/O dimensions must agree." Please help
clc; clear; num1 = {1, 1, 1, 1, 1, 1, 1}; num2 = {-4, -4, -4, -4, -4, -4, -4}; den1 = {[10 1], [10 1], [10 1], [10 1], [10 1...

más de 4 años hace | 0

| aceptada

Respondida
How I can fix this problem
clear all clear all clc i = 1;LL = 8:2:20; for N=8:2:20 tn = 7; M = 7; L = 5; attSR = -40; attPU = -60; % dB Nt = N; ...

más de 4 años hace | 1

Respondida
How to solve a single nonlinear equation with parameter variations?
taue=0.95; L=5; kk=pi/(2*L); % change this to different variable hac=1.46; gamma=0.95; A0=0.01; %Initial guess w=0:...

más de 4 años hace | 0

| aceptada

Respondida
how to fix the array?
% x is the 1*476 array and t is also a 1*476 array meaning time f_up = 100; x= rand(1,476); t = x; f = (-f_up:0.1:f_up); w...

más de 4 años hace | 1

| aceptada

Respondida
how save the calculated values ​​from the loop one after the other in a vector ?
Vektor_c_Ab(i) = c_Ab; Vektor_t(i) = t; Vektor_F(i) = F; Use the loop iterator index variable

más de 4 años hace | 1

| aceptada

Respondida
Contour Graph/Plot displays edgy function
x = -10:.1:10; y = -10:.1:10; [X,Y] = meshgrid(x,y); mu = 0.1; phi = mu*(X./(X.^2+Y.^2)); [U,V] = gradient(phi,0.1,0.1); f...

más de 4 años hace | 2

Respondida
Error using + Matrix dimensions must agree. I want to find the value of Mt. Kindly help me clear the error.
a=1.5; % make good guess s=0.01; N=5; wd=0.002906; d=5; u=2; % guess i = 1; a1=a-((N-1)*(wd+s)):(wd+s):a; b1=a-((N-1)...

más de 4 años hace | 0

Respondida
How to display fit equation on plot?
stress = [0;0.0464;0.1940;0.4962;0.5040;0.5566;0.6040;0.6260;0.6240;0.6100;0.5880;0.5720]; % e.g values strain = [0;0.2220;0.36...

más de 4 años hace | 0

Respondida
How to read & display an excel file (using a button to select the file)?
%if true [N TT R] =xlsread('C:\Users\t.xlsx','sheet_3','A1:AA4');% Try to change the out It seems you have the excel f...

más de 4 años hace | 0

Respondida
Getting an FFT signal into a for loop.
clc; clear; n=0:1000; fs=8000; % Sampling frequency, Hz nfft=1024; % Number of samples nf=fs*(-nfft/2:nfft/2-1)./nfft; % es...

más de 4 años hace | 1

| aceptada

Respondida
how could i sub in the y value to find the x value for the function
k1=0.000358; k2=0.000158; ca0=4.89; x=1:10000; f = @(x) 0.000358.*4.89.*x./(1+0.000358.*x+0.000158.*x+0.000158*0.000358*x.^2...

más de 4 años hace | 0

Respondida
Undefined function 'postlin' for input arguments of type 'double'.
t = -10:0.01:10; f = inline('4*hardlim(t+4)-poslin(t+4)+2*poslin(t)-poslin(t-2)-2*hardlim(t-2)', 't') subplot(2,2,1); plot(t,...

más de 4 años hace | 0

| aceptada

Respondida
Why isnt plot working for this code?
p = 0.002378*(1-0.0000068756*2000)^4.2561; v=100; AR = 7; q = 0.5*p*v^2; n = 1/cos(45); e = 1.78*(1-0.045*AR^0.68)-0.64; k...

más de 4 años hace | 0

Respondida
taylor series and conditional while loop
clc clear all % inputs % x0 = input('what is the startup value x(i): '); % x1 = input('what is the the value you want to pr...

más de 4 años hace | 0

Respondida
getting multiple curves instead one single curve
ep_d=1.3641;ep_1 = 1; ep_2 = 2; ep= ep_1 +1i*ep_2; theta =-90:2:90; lambda = 1240./1.5; y = lambda./(sqrt((ep_d.*ep)./(ep_d...

más de 4 años hace | 0

| aceptada

Respondida
How to get eigenvalues with varying coefficient
t = linspace(0,5,4); x1 = (1+t)/2; x2 = (t.^2)/4 ; x4 = (1+2*t)/6; A = [x1; x2; zeros(1,length(t)); x4]; B = eig(A) Divide...

más de 4 años hace | 0

Respondida
fft is not showing correct frequency or amplitude
clear all; close all; f1=1; f2=2; f3=3; f4=4; % freq of 4 signals, Hz A1=1; A2=0; A3=0; A4=0;% Amplitudes of 4 signals f_max...

más de 4 años hace | 0

| aceptada

Respondida
Selecting categorical variable range to plot on bar graph
C = categorical({'A'; 'B'; 'C'; 'D'; 'E'; 'F'}); N = [5 4 2 3 4 8]; bar(C(3:end), N(3:end)) xticks(C(3:end)) xticklabels(C(3...

más de 4 años hace | 0

| aceptada

Respondida
Vary the duty of PWM signal using pause
t_info(u); function t_info(u) Pass the input variable to the function call t_info

más de 4 años hace | 0

Respondida
Unable to perform assignment because the left and right sides have a different number of elements.
clearvars % ini_dis= input('Enter the value of initial displacement : '); % ini_vel= input('Enter the value of initial velocit...

más de 4 años hace | 0

| aceptada

Respondida
How do I plot a function with multiple steps
syms y z a b c x=10 viscosity=(1.8*10^-5) Pi=3.1415926 Densityair=1.25 Densitypart=1000 y=(.01*10^-9):(0.01*10^-9+10^-6)...

más de 4 años hace | 0

| aceptada

Respondida
How do I list only i values of a cross product in a plot.
%if true x=-15:15; for i= 1:length(x) C=[0,0,30]; B=[x(i),0,30]; A=[0,40,30]; O=[0,0,0]; rOA=A-0; rAB=B-A; MagTAB=875...

más de 4 años hace | 0

| aceptada

Cargar más