답변 있음
How do I plot fractional orders of the Bessel function of the first kind (e.g. J_{1/3}(x))? Can I still use the besselj function?
clc;clear all;clf; x=-20:0.1:20; J13=besselj(1/3,x); % change the variable befoe use in besselj function figure(1) plot(x,...

약 1달 전 | 0

답변 있음
how to subtract 2 cell array??
im=imread('cameraman.tif'); im1=imread('cameraman.tif'); [wc,s] = wavedec2(im,3,'db1'); [ca,la] = wavedec2(im1,3,'db1'); [a,...

약 1달 전 | 0

답변 있음
Assigning different colors in a single histogram
slope = 0:0.01:1; h1 = histogram(slope(slope<0.5)); h1.FaceColor = 'b'; hold on h2 = histogram(slope(slope>=0.5)); h2.FaceC...

약 1달 전 | 0

답변 있음
pmake engineering stress and strain diagram
F=[0;13345;26689;40479;42703;43592;44482;44927;45372;46276;47908;49035;50265;53213;56161]; L=[25;25.037;25.073;25.113;25.122;25...

약 1달 전 | 0

답변 있음
How do I get my graphs to converge on one ?
x0ob = [1 0 0];% Use same initial [yob,t,xob] = lsim(syst,r,t,[x0; x0ob]); Use the same initial conditions for two differ...

약 1달 전 | 0

답변 있음
Mesh Plot
[X,Y] = meshgrid(-1:.25:1); Z = X.^2 + 4 * Y.^2; [r c] = find((Z<1)); Z = Z(min(r):max(r),min(c):max(c)); X = X(min(r):max(r...

약 1달 전 | 0

답변 있음
Error using vertcat Dimensions of arrays being concatenated are not consistent.
matrix1 = rand(1,3)%input("matrix 1 is \n"); This is example of 1 x3 matrix matrix2 = rand(3,3)%input("matrix 2 is \n")...

약 1달 전 | 0

답변 있음
MATLab matrix multiplier not outputting the correct product..
A = [2,1;3,0]; x = [2;1]; Y = myProduct(A,x) % your soluion function y = myProduct(A, x) % The command myproduct(A,x...

약 1달 전 | 0

답변 있음
MATLAB saying not enough input arguments.
AA = myrowproduct(rand(3),rand(3,1)) function y = myrowproduct(A, x) %This function computes the pro %duct of mat...

약 1달 전 | 0

답변 있음
How can I see the right labels on x-axis?
newTicks = datetime({'2000','2002','2004','2006''2008','2010','2012','2014','2016','018'},'InputFormat','u') plot(1:10) %xt...

약 1달 전 | 0

답변 있음
Index exceeds matrix dimensions
n = 10; Lx = 1; dx = Lx/(n-1); x = 0:dx:Lx; % 2. Parameters for the t vector m = 80; tf = 0.8; dt = tf/(m-1); t = 0:dt:...

약 1달 전 | 0

답변 있음
when I used rosbag open bag file error "An error occurred when reading from the file."
camera = 'Camera1.bag' filepath=fullfile('F:\ele_ladder\code\librealsense-master\librealsense-master\wrappers\python\examples...

약 1달 전 | 0

답변 있음
Modeling potential flow over rankine oval
clc; clear all; m=25; U = 1; a=5; %Mesh for fourth quadrant and corresponding stream value function [X1,Y1] = meshgrid(.05...

약 2달 전 | 0

답변 있음
Why is this code not creating the plot ?
y = data(:,2:end); % delete the space between data and parenthesis plot(x,y)

약 2달 전 | 0

답변 있음
Returning several dataset using ode45
for i = 1:length(r) [t,theta] = ode45(@(t,theta) odefcn(t,theta,f,r,zeta), tspan,Theta0); plot(theta(:,1),theta(:,2));hol...

약 2달 전 | 0

| 수락됨

답변 있음
Storing regression coefficients in a loop
slopes(i,j) = slope; pvals(i,j) = pval;

약 2달 전 | 0

| 수락됨

답변 있음
range in fplot as variables
clear clf clc syms x y f=x*y*(x+y); ylim=[x^2 x] ylow=ylim(1); yup=ylim(2); sol=solve(ylim(1)==ylim(2),x) a=sol(1); b=...

약 2달 전 | 0

| 수락됨

답변 있음
How to plot months on x-axis with different length of values on y-axis?
X = {'January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October' 'November' 'December'} y = [1 74...

약 2달 전 | 0

답변 있음
Integration of a function
syms x f = 3*x-x^2 ; F = int(f,x); expand(F)

약 2달 전 | 0

답변 있음
Index exceeds the number of array elements (0).
clc; clear all; display('Joint 1'); display('======================='); angle1= 45; %input('Please key in theta_1 (degree):'...

약 2달 전 | 0

답변 있음
why do I get an error when I pressthe radio button in my GUI
if get(handles.radiobutton1,'Value') == 1 Matrix = ...your code elseif get(handles.radiobutton2,'Value') == 1 Matrix =...

약 2달 전 | 0

답변 있음
GUI Interpolation calculator, Indices exceeds array?
clear i j n guidata(hObject,handles) clear the loop counter variables used inside the callback function every time the GU...

약 2달 전 | 0

| 수락됨

답변 있음
xlim is not working
xlim([0 20.5]) % difference Difference in using and = between the xlim and parenthesis

약 2달 전 | 0

| 수락됨

답변 있음
Vectorized iterative summation of matrices
c = subs(a(ix,iy),1,b) c = subs(a(ix-1:ix+1,iy-1:iy+1),1,b) Try these two combinations.

약 2달 전 | 0

답변 있음
Simulation of offshore lift through splash zone.
You can study or start with these examples Model Excavator Tower crane with trolley

약 2달 전 | 0

답변 있음
if-else function statement problem
function abc(day) if day=='monday' % Do a comparison disp('1'); elseif day=='saturday' % Do a comparison disp('2...

약 2달 전 | 0

| 수락됨

답변 있음
How can i run this script to make a plot for a lot of T
T = 100:10:180; x0 =100.8; xyl_zero = 4; % x0 = rand(1,length(T)) for i = 1:length(T) [t,x] = ode45(@acidpretreatment, [0 2...

약 2달 전 | 0

답변 있음
Matrix Multiplication with Trigonometric Functions
theta1 = pi*2/3; theta2 = 2; A = [-cos(theta1) 0 -sin(theta1) 0.033*cos(theta1); -sin(theta1) 0 cos(theta1) 0.033*sin(t...

약 2달 전 | 0

답변 있음
User defined function in for loop
file=('list of my files') for i = 1:length(file) a=1; b=2; [csv,D] = read_function(i,file{i},a,b);...

약 2달 전 | 0

답변 있음
bar3 color
A = rand(10,20); figure; hc = bar3(A.'); figure; h = bar3(A.'); for ii = 1:length(h) zdata = get(h(ii),'ZData'); ...

약 2달 전 | 0

더로드