Resuelto


Acid-Base Chemistry: Which side of the reaction is more favorable?
In an Acid-Base reaction, there is always going to be an acid, a base, a conjugate acid, and a conjugate base. When provided wit...

más de 3 años hace

Respondida
Replicate matrix elements without for loop
base =[1 2; 3 4]; repelem(base,2,2)

más de 3 años hace | 0

| aceptada

Respondida
average every sets of rows
a=20*rand(1629,1); k=7; e=floor(length(a)/k)*k; r=reshape(a(1:e),k,[]); M=mean(r)

más de 3 años hace | 0

| aceptada

Respondida
cell array index mean
a=mean(cell2mat(monthly_average_cell));%why use a cell array? this matrix provides the answer

más de 3 años hace | 0

Respondida
Switch signs to positive in the diagonal of a matrix
m=randi(10,6)-5 d=abs(diag(m)); M=m.*~eye(size(m))+diag(d)

más de 3 años hace | 0

| aceptada

Respondida
Getting A Blank Plot From Code
Yp=62e9; Yfca=250e9; yfsi=480e9; d31=-320e-12; a=linspace(0,1); d31eff=-d31./((log(1-a)).*(1./a-0.5)); vp=1; d31multi=d31...

más de 3 años hace | 0

Respondida
How to add proper values on top of bar chart
Y1 = [-31.6 15.8 -8.0]; subplot(3,2,2) Vn4a_diff=15.8;Vn4c_diff=-31.6;Vn4b_diff=8; b=bar(2,Vn4a_diff,'FaceColor',[0 0.6 0.3],...

más de 3 años hace | 0

Respondida
Problem with if statements
e=["H","Li","Be","B","C","N","O","F","Na","Mg","Al","Si","P","S","Cl","K","Ca",... "Sc","Ti","V","Cr","Mn","Fe","Co","Ni","...

más de 3 años hace | 0

| aceptada

Respondida
Is there a way to create a loop for reading multiple Excel files at once?
time=[130,230,330...]; for i= 1:length(time) lum(:,i)=csvread(sprintf('PAR_TOP_%d.csv',time(i)),3,2); end

más de 3 años hace | 0

| aceptada

Respondida
The results display problem
A= [1.02 0.95 0.77 0.67 0.56 0.30 0.16 0.01]; b = [0.39 0.32 0.22 0.18 0.15 0.12 0.13 0.15]; for i = 1:4 num = 10.^(-i);...

más de 3 años hace | 0

| aceptada

Respondida
How to Call a Function Within a Script?
%execute function dydt=vdp1000(t,y);%must assign t and y prior to executing the function function dydt = vdp1000(t,y) dyd...

más de 3 años hace | 0

Respondida
Hi , i want to build a matrix
C=rand(1,3); B=rand(3,1); A=rand(3,3); n=size(A,1); a=eye(n); y=4; H=diag(repelem(C*B,n*y)); for k=-1:-1:-n*y+1 a=a+A^...

más de 3 años hace | 0

| aceptada

Respondida
The summation of elements between two numbers
yourMatrix=rand(7,18)*90+10; s=sum(yourMatrix(yourMatrix>=35&yourMatrix<=55))

más de 3 años hace | 0

| aceptada

Respondida
Solving equation with one variable but it is present in the equation twice
It is easy to just solve for x in your equation and have an equation in Vout. f=@(Vout)(211200-1000*Vout)./(Vout+211.2); f(100...

más de 3 años hace | 0

Respondida
how to separate columns from txt file
Try: c = readtable("r4.4u_db.txt",'Format','%f %*c %f %*c%*c%*c %f %*c%*c');

más de 3 años hace | 0

Respondida
Index exceeds the number of array elements. Index must not exceed 272.
What are you trying to do? You cannot index into mean_value_data_smoth with a value greater than its size (272). You are indexin...

más de 3 años hace | 0

Resuelto


Just square the input
Square the number

más de 3 años hace

Respondida
How do you replace NaN values in column n with the average of the all the values in column n?
r=rand(9172,27); r(randi(247644,1,10000))=nan;%add some nan's m=mean(r,'omitnan'); [~,idx]=find(isnan(r)); r(isnan(r))=m(idx...

más de 3 años hace | 0

Respondida
How to simplify a complicated output of a function with only double coefficients
Look at digits and vpa %just take the vpa of the result to however many digits of accuracy. digits 10 vpa(newton_interpolatio...

más de 3 años hace | 0

| aceptada

Respondida
How do I change Array element with another array element?
A = [0 0 0 0]; B = [1 1 0 0]; A=B

más de 3 años hace | 0

Respondida
fplot graph error getting y=0
There is a sinularity around -5.6e-4 (advoid this area) math=@(x)0.6.*x.^3.*exp(-0.4./x)+1.5.*x.^2.*exp(-0.6.*x); fplot(math,[...

más de 3 años hace | 0

| aceptada

Respondida
Base-2 logarithmic scale on bar diagram
A logarithmic scale does not matter what the base is. You can change the markers to whatever you want (powers of two). figure; ...

más de 3 años hace | 0

| aceptada

Respondida
The plot of cosine is not shown
xt will always be 1 and is plotting correctly. cos(2*pi*100*t) will always be an interger multiplied by 2*pi, and cos(2*pi)==1.

más de 3 años hace | 0

| aceptada

Respondida
How to fit lognormal distribution on my data
Look at lognfit [pHat,pCI] = lognfit(repelem(vector1,vector2));

más de 3 años hace | 0

Respondida
Triangle Circle Dataset Creation
Look at polyshape

más de 3 años hace | 0

Respondida
How to compare two arrays of strings?
Use string arrays instead of character arrays. A=["red","purple","blue","green"]; B=["orange","purple","yellow","green"]; C=B...

más de 3 años hace | 0

| aceptada

Respondida
problem with condtitions in program
Hard to understand what you are trying to do. Looks like you are good to about 72. t=[0.0840000000000000,0.935000000000000,1.83...

más de 3 años hace | 0

Respondida
Hi there, does anyone know how to help me resolve this issue? My code keeps running on and on. If you can help me figure the issue please :)? And also the plots are not showin
You are getting stuck in your positionfourbar() while loop. You need to evaluation your equations and comparison to epsilon.

más de 3 años hace | 0

Resuelto


Exact Cover
An efficient solution to the exact cover problem can be useful in many situations. In this problem, you are welcome to use Knuth...

más de 3 años hace

Cargar más