Respondida
how can i solve this angle between vectors?
a = 3; b = 5; c = 7; alpha = acosd((a.^2 + b.^2 - (c).^2)./(2*a*b))

alrededor de 3 años hace | 0

Respondida
What is the problem with the below code?
diff30 = (drugs30 - placebo30)./ placebo30 * 100;

alrededor de 3 años hace | 1

Respondida
For loops step through time and update variable
C=100; dL=0.01 L=0:dL:0.2; % size 21 A=zeros(size(L)); B=zeros(size(L)); A(1)=300; % initial value for A ...

alrededor de 3 años hace | 0

Respondida
How can i plot the graph from the 3 variables equation ?
A = 0:500:2000; B = 0:1:100; [AA BB] = meshgrid(A,B); X = AA.*(BB+25); surf(AA,BB,X) xlabel A ylabel B zlabel X

alrededor de 3 años hace | 1

| aceptada

Respondida
Why is my integration output the mathematical expression and not the solution?
func = @(x) ((x.^3.*cos(x./2)+1/2).*(sqrt(4-x.^2))); integral(func,-2,2) If you use *integral* it will work as you expecte...

alrededor de 3 años hace | 0

Respondida
How to add number from equation to array and display it on chart
clear all; close all; clc; Time(1) = [0]; Quantity(1) = [0]; N0 = 100 ; tD = 5; t = 10; r=log(2)/tD for i=1:length(...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to change the position of power of colorbar ?
[X,Y] = meshgrid(-1000:10:1000); Z = exp(-(X.^2+Y.^2)/1E5)*1E6; figure surf(X,Y,Z, 'EdgeColor','none') grid on colormap(h...

alrededor de 3 años hace | 1

Respondida
Reference to non-existent field 'data'.
Use small k, in place of K , Matlab is case sensitive P='C:\Users\Lenovo\OneDrive\Desktop\NB_veh_files'; ...

alrededor de 3 años hace | 0

Respondida
Function might not be used error
amount=bill-tip;% typo with operator There is a typo for the operator in the above line which presumably makes Matlab think...

alrededor de 3 años hace | 1

Respondida
why this loop is not working? Actually p_j value is not changing why?
n = 10;% e.g. input number epsilon_ci = 0.001; epsilon_max = 0.01; xu = 2; fc = 100; D = 1.1; p_i = 0; %outside for loo...

alrededor de 3 años hace | 0

Respondida
use green therom to find counter clockwise circulation and outward flux
% Define the vector field F syms x y F = [7*x-3*y, 7*y-3*x]; % Define the integrand as a symbolic expression for Circulatio...

alrededor de 3 años hace | 1

Respondida
can you help me to solve this equation?
syms x real P = sqrt(27.8*exp(5*x)-1) == acos((120*x^2+sqrt(2*x))/(17*x-65)); % better to use acos function s = double(vpasol...

alrededor de 3 años hace | 0

Respondida
Finding the roots across a range of values
H = 0.1; I = 200; Y = 0; b = transpose(1:I); for i = 1:I b(i) = fzero(@(b)(b*tan(b)-H),b(i)); BI(i) = b(i) ; end

alrededor de 3 años hace | 0

Respondida
Two Quadratics are equal find K1 and K2 cancel out X
A =[1 -1; 0 0]; B = [0; 1]; MC = ctrb(A,B); %Gives controllability matrix det (MC) %Not zero so is controllable syms K1 K2 ...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to on/off a variable after 3 seconds interval
led1=0;  aa=3; tic T = toc while T<=90     pause(3);     led1=1;      pause(3);     led1=0;  toc; T = to...

alrededor de 3 años hace | 1

Respondida
How to extract the correct data with regexp?
Use match option in place of 'tokens' in the line tokens = regexp(DATALow, '\<(R\d{2}[A-Z]?)/.*?(\d{4})[A-Z]*(?:(?:\d{4})[A-Z])...

alrededor de 3 años hace | 0

Respondida
How can I construct a triangle function, when I tested one using 'integral(fun.-pi,pi)', error occurred.
integral(@triangle,-pi,pi,'ArrayValued',1) % call function using function handle function [a] = triangle(n) a=zeros(size(n)...

más de 3 años hace | 0

| aceptada

Respondida
How to pass the signal x(t) in IIR band stop filter? Kindly develop the program for the following...... please.....
fs=5200; t=0:(1/fs):1; x=2*sin(400*pi*t)+3*cos(900*pi*t)-0.5*sin(1400*pi*t)+sin(2400*pi*t); figure % original signal plot(t...

más de 3 años hace | 0

Respondida
Why doesn't it work ?
s = 1.25; t1 = 0:0.01:pi/2; t2 = pi/2:0.01:pi; t = [t1 t2]; p=[4*sin(2*t1).^2.*exp(-(t1/s).^2)+2 4*sin(2*t2).^2.*exp(-(t2/s...

más de 3 años hace | 0

Respondida
fluctuations with specified mean velocity and amplitude
plot(t,v+V,'-*') hold on plot(t,V) Do you mean the above ?

más de 3 años hace | 0

Respondida
Why Can't int Find a Simple Integral?
Tips In contrast to differentiation, symbolic integration is a more complicated task. If int cannot compute an integral of an ...

más de 3 años hace | 0

Respondida
how to iterate cell array?
for i = 1:51 for itr = 1:100 %number of iteration is the size of my cell array N = all_N1{itr,i}; % switch position of...

más de 3 años hace | 0

Respondida
What is the answer of [(4 -2 ) /2 , 5 +6 , 7 , 8 ] ? Why does MATLAB output [1 5 6 7 8]?
[5 +6] Is not equivalent to 5+6 When you use concatenate operator [ ]

más de 3 años hace | 0

| aceptada

Respondida
How to make piece-wise function accept single variables and vectors
x = 2:1000; y = piecewise(x) function y = piecewise(x) for k = 1:length(x) if (x(k)>0) & (x(k)<=120) % for 0 <...

más de 3 años hace | 0

| aceptada

Respondida
Plotting in App designer
You need to add a callback function first to each of the components for graphs in which you want to plot. E.g. %Callback to...

más de 3 años hace | 0

Respondida
How to plot histogram using given data ?
Check the answer from the below link https://in.mathworks.com/matlabcentral/answers/1670649-bar-plot-with-a-hatched-fill-patter...

más de 3 años hace | 0

Respondida
How use imread in a loop
image_test{t}=imread([path,'nan_rows' num2str(t)])

más de 3 años hace | 0

| aceptada

Respondida
multiplying row vector by a scalar
A = data(3, :).*B

más de 3 años hace | 0

Respondida
how do I solve symbolic eigenvalue?
I presume you need to compute the inverse of mass matrix , m, for a 4 x 4 stiffness matrix , before finding the Eigen solution....

más de 3 años hace | 0

Respondida
Adding and Deleting Columns in UITable App Designer
You can modify the function for columnCheckBox Value Changed as below, by using addvars function function Column4CheckBoxVa...

más de 3 años hace | 0

| aceptada

Cargar más