Semilogx function giving a linear scale
S = [1e-2 1e-1 1 10 100 1000 1e4]; % Remdesivir concentration, in uM Km = 0.5; % Equilibrium constant, in uM Vmax = 0.82; % ma...

2 meses ago | 0

| accepted

Need help with syntax and how to use sigma in matlab
clear close all Z1=500 Z2=50 Z3=500 u=1 tau1=(2*Z2)/(Z1+Z2) tau2=(2*Z1)/(Z1+Z2) tau3=(2*Z3)/(Z3+Z2) p1=(Z2-Z1)/(Z2+Z1...

2 meses ago | 1

| accepted

Unable to perform assignment because the size of the left side is 1-by-2 and the size of the right side is 2-by-2. (Line 32)
pp=@(t,x)[.23*x(1)-.0133*x(1)*x(2); -.4*x(2)+.0004*x(1)*x(2)] [t,y]=rk4sys(pp,[0,65],[550,20],0.3) figure(1) plot(t,y(:,1),...

2 meses ago | 1

How to skip a data set in the legend of a plot?
clear; clc; clf; close all; x1 = [0.015 0.020 0.050 0.100 0.200 0.300 0.400 0.500]; y1 = [5.518E-11 7.215E-11 1.832E-10 ...

2 meses ago | 1

| accepted

how to put for loop value into a vector
k = 0.168:0.168:1.68 ; for x=1:length(k) if k(x)>=0.03 && k(x)<=0.06 h(x)=1.437*k(x)^(-0.279); elseif k(x)>=0.07 && k(x)<...

2 meses ago | 0

fplot invalid parameter error
m=100; k1=1500; k2=2500; k3=700; wb=4.4; Y=0.05; w1=sqrt(k1/m); w2=sqrt(k2/m); w3=sqrt(k3/m); r1=wb/w1; r2=wb/w2; r...

2 meses ago | 1

Error with the command Geoplot
lat=cell2mat(A.Latitud);% if Latitud is the header name of column. Please check this. There Was extra parenthesis in my pr...

2 meses ago | 0

Multiplying f(x) with f(-x)
cof = [1 15 7 2] syms x F(x) F = (cof(1)*x.^3+cof(2)*x.^2+cof(3)*x+cof(4)) FF = subs(F,x,-x) Fx = F.*FF % resulting produc...

2 meses ago | 0

| accepted

Select the plot type as Auto in scope block. This plots the graph as continuous signals instead of discrete ones which you have...

2 meses ago | 0

Why is my if counter not working
s= 0 x = linspace(-1,1, 50) n = linspace(1,10,50) L = 2 total = 0 s= zeros(size(n)) for i = 1:length(n) s(i) = (8/(p...

2 meses ago | 0

I need to plot a graph of P, Rdia and Vo, please help me how to get graph. (for every 10 increment of pressure, there is 1 ohm increment of Rdia , and display the output vo)
Rdia = 3673; % dia resistance value in ohm ; Rtemp = 3618; % Temperature resistance value in ohm; R1 = 3600; % fixed resistanc...

2 meses ago | 1

| accepted

Export results from several excel files into one excel file
Partikel_RL(xy,:)=Elementanzahl_RL(xy,:); % second for loop is not needed end

2 meses ago | 0

Legend wont display lines properly in figure window
lgd = legend('Bundle','30% Opening','50% Opening', ... '65% Opening','85% Opening','100% Opening'); Use without a { } ...

3 meses ago | 0

gamma function error in calculation
syms x a Y=sym(zeros(1)); Y(1)=0; a=1/2 for i=1:4 if i==5 A=1; B = 0; Y(i+1)=simplify((gamm...

3 meses ago | 0

Function works with one input but not the other
F(2,:) = Thrust ./ MFR ; F(1,:) = (y .* A_choke) ./ MFR; Check the size of output matrix

3 meses ago | 0

Index exceeds array dimensions. Index value 150002 exceeds valid range [1-150001] for array 'v'.
for n = 1:length(t)-1; Error shows clearly that vector _v_ has 1 additional element. Change the loop as above since v(n+1) ...

3 meses ago | 0

| accepted

Plot power spectrum from FFT
power = abs(y).^2/(fs*n); % power of the DFT plot(f,power) Divide with _fs_ sampling frequency and plot it

3 meses ago | 0

I want to contour plot the data as shown in attached figure from my equation. I am not able to get the gaussian type behavior. What's wrong with my code?
h_t=linspace(100,500,100); r=linspace(-100,100,500); [H,R]=meshgrid(h_t,r); Rho_m=Ib.*(Rho./(H)).^2.*exp(-(2*R.^2./(H))); %...

3 meses ago | 0

| accepted

Zeros error when entering matrix data
roomLength=zeros(1,(numberRooms(i))); roomWidth=zeros(1,(numberRooms(i))); Give the size of _numberRooms_

3 meses ago | 0

| accepted

find the coefficients a, b, and c of the quadratic polynomial. that passes through the three points (x, y)
syms a b c x = [1 4 5]; y = [4 73 120]; eqn = y == a*x.^2+b*x+c sol = solve(eqn,[a b c])

3 meses ago | 0

i have 300 sheets in one worksheet in excel. i wan to import this to matlab. I want to create loop where it reads all sheets and plot graph on a same graph.
hold all for I = 1:length(num) A(:,I) = xlsread('C:\Users\varun\OneDrive\Desktop\New folder\asd.xlsx',num2str(I),'A7:A26'); ...

3 meses ago | 0

| accepted

Plot summation series | For Loop | Creep Strain
clear all;clc %% Linear Creep Example s=100; % constant tensile stress, (MPa) t=linspace(0,10000,11); % duration of applied ...

3 meses ago | 0

| accepted

finite difference method scheme
clc clear all %%%%%%%%%%%%%%% Inputs r_in=1; % Inside Radius of polar coordinates, r_in, say 1 m r_out = 2; % Outside Radin...

3 meses ago | 1

| accepted

Changing the variable used in a loop
tube_inner_R = 0.003 tube_L=[12.14 6.46 9.84 8.17]; % put them in vector for inst = 1:4 tube_V(inst)=pi*tu...

3 meses ago | 0

| accepted

what is wrong with my calculation?
syms rs xs rp xp [xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])

3 meses ago | 0

| accepted

Array after nmz function to create a bar graph
array=[quiescence; walking; eating; climbin; mating] % use []

3 meses ago | 0

| accepted

a run function gives an error due to size
resultt(bi,bj) = birfazson(1,birfazson(2,:) == 1); Ok. Check by removing transpose at the end

3 meses ago | 0

What is this line of code doing?
Checking the value of *blob(i,j-1))* in _blob_ matrix and replacing it with this value *blob(i-1,j)*.

3 meses ago | 0