已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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)...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
Why to I get "Unrecognized function or variable '1' ?
Could you check if it's _1_ or lower case alphabet _l_ used as variable in your script. Both appear same in Matlab scripts and h...

4 years 前 | 1

已回答
How do you substitute x(1),x(2),x(3) in place of kp,ki and l respectively?
syms kp ki l y= ((1/10^(l + 1)*ki*kp*l*sin((pi*l)/2))/(kp + (ki*kp*cos((pi*l)/2))/10^l) - (1/10^(l + 1)*ki^2*kp^2*l*cos((pi*l)/...

5 years 前 | 0

已回答
Doubt regarding max(A,B).
%f true max([A B]) max([A;B]) The first would give 10 as max value. The second would give 10 6 5 as max values along eac...

5 years 前 | 1

已回答
Axes of plotted figure not complet (Matlab)
%if true box on Use this command to get the black lines top and right sides like you want.

5 years 前 | 0

| 已接受

已回答
How to create a loop for varying the values of A, B & C according to months?
A, B and C are not constants, they are actually variables. Define, vectors for each of the parameters, A, B and C Then use a f...

5 years 前 | 0

| 已接受

已回答
Unrecognized function or variable 'gaussian_plume_model'
gaussian_plume_model is a function which needs to be in same folder where you are running your script file. Try running your scr...

5 years 前 | 1

| 已接受

已回答
How to separate plot titles on single line? [solved]
%if true plot(rand(10)); title('[head neck helmet impact energy rep]');

5 years 前 | 0

| 已接受

已回答
how can i plot this equation?
%if tr syms x y f = y^3+0.2*exp(-1*x^2)*y^2-2.2039*y^2+0.8155 == 0; fimplicit(f,[-4 4])

5 years 前 | 0

| 已接受

已回答
Plotting content from structure
sges.location1 = 1; sges.location2 = 2; sges.location3 = 3, sges.location4 = 4; sges.location5 = 5; sh.location1 = 4; sh...

5 years 前 | 0

| 已接受

已回答
Common xlabel and ylabel in a subplot of a subplot
x=sin(linspace(1,10)); % Set randomly for the example. figure(1); t=tiledlayout(4,4,'TileSpacing','normal','Padding','compact...

5 years 前 | 0

| 已接受

已回答
Array indices must be positive integers or logical values.
%if true f(i)=min{f(j)+t(i,j)};

5 years 前 | 0

| 已接受

已回答
Saving the outputs of multiple runs of a script
%if Count = 0.1:0.1:0.9; for correlation=1:length(Count) Change this line in _for loop_ and run it.

5 years 前 | 1

| 已接受

已回答
Polarplot for loop with subplots
%if true lambda = 1; t =(2*pi)/(1*10^100):(2*pi)/1000:2*pi; %theta; lambda = 1; k = [0.25 0.5 1 1.4 2 2.5]; for i = 1:le...

5 years 前 | 0

| 已接受

已回答
how to convert decimal values into 8bit binary sequence
%if true for i = 1:length(A); iwant{:,i} = dec2bin(A(i,:)); end This results in a 1x14 cell array converted to binary...

5 years 前 | 0

| 已接受

已回答
Matlab plot problem line 13
%if true plot(y, double(subs(dydt(y, E, r,K))));

5 years 前 | 1

| 已接受

已回答
Parentheses error with a function call
%if true x = load('mnist.mat', 'testX'); k=5; numIter=6; function [mu, cll, ill] = gmm(x, k,numIter) Assign _x_ dir...

5 years 前 | 0

| 已接受

已回答
Why I am getting the error "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
%if true for i = 1:NF err_frame(:,i) = err((i-1) * (1- % ^ ' is used for transpose OLR) + 1*(i-1) * frame_l...

5 years 前 | 0

| 已接受

已回答
How to run if and exist ?
final_residuals = [] for year= 1962:2016 for id=10000:93436 sub_regress = subsetPCA(subsetP...

5 years 前 | 0

| 已接受

已回答
How to clear a particular figure and replace it with other
%f true clf hold all fplot(f,'g') xlim([-1,3]) ylim([-2,2]) f1 = figure plot(0,0,'bo'); clf(f1,'reset') plot(0,1,...

5 years 前 | 1

| 已接受

已回答
Logical Indexing with Condition Involving Functions
%if true idx = find(A(a) == 1) Use it with _find_ function for element indices

5 years 前 | 1

已回答
I am getting this Error using makeState (line 56). Your fitness function must return a scalar value.
%if true MWh = k'.*X(1:N).'/c(4); From the error, the function must return a scalar which is possible with above chang...

5 years 前 | 0

| 已接受

已回答
Generate sequence of sine waves with changing amplitude
%f true f = 2.36e3; w = 2*pi*f; %sampling frequency fs = 50000; dt = 1/fs; %Amplitude of pickup signal at each of 11 d...

5 years 前 | 0

| 已接受

加载更多