Answered
Can someone check my code and rectify me, getting constant output but needs changing.
[t,X]=ode23s(@(t,X) new_try_func(t,X,v,cellden,mb,u,udeathf,gal,urd,glc,asn,amm,glu,lac,gln,asp,qAmm,qUrd,qGln,qGlc,qGal,qLa...

2 dagar ago | 0

| accepted

Answered
How to plot different lengths of vectors?
T = 298:1:422; %Temperature Values That is a row vector of 125 values K1 = exp((-deltaHrxn1*1000 + T.*deltaSrxn1.*1000...

2 dagar ago | 0

Answered
Prediction error of the signal
That code looks plausible. You can be more efficient though. sqrt( sum((x1rec_t1 - x1_t1).^2) ./ sum(x1_t1.^2) )

2 dagar ago | 0

| accepted

Answered
Can't get string to datetime conversion to work
The very first entry in your data{1} has a leading U+FEFF character, which is a unicode Byte Order Mark character, but is to be ...

2 dagar ago | 0

| accepted

Answered
.mex file (matlab executable) as Simulink Block?
You start by programming (or obtaining) an Intel x64 instruction set emulator on your ARM based RRaspberry Pi. In other words...

2 dagar ago | 0

Answered
How to insert data with fopen ?
fopen() by itself can never be used to write data to a file. It can be used in some cases to remove all data from a file. The...

2 dagar ago | 1

Answered
DOES ANYONE KNOW WHY NOT ALL THE DATA APPEAR IN THE GRAPH?
You do a lot of filtering of spikes. How would we know which data is "missing" compared to which data you deliberately set to na...

3 dagar ago | 0

Answered
How to put this in matlab by user which the dimensions of the table changes
N = 5; syms i x_i w_i y_i L w yi = sym('y_i', [1 N-1]); yi = [0, yi, 0]; P = (0:N)/N; M = [i, 0:N; x_i, L*P; w_i, w*P; y_i,...

3 dagar ago | 0

| accepted

Answered
Help me to store the values into a text file.
S = '29 C3 50 5F 57 14 20 F6 40 22 99 B3 1A 02 D7 3A' Schar = char(sscanf(S, '%x', [1 inf])) [fid, msg] = fopen('a text file.t...

3 dagar ago | 0

| accepted

Answered
How to create a time varying constant?
Is it possible to have a constant store time varing data? Note, I do not want to read this data into the model using FromWorkspa...

3 dagar ago | 0

Answered
MPC cannot be designed in app
According to https://www.mathworks.com/matlabcentral/answers/473358-mpc-controller-direct-feedthrough-from-manipulated-variables...

3 dagar ago | 0

Answered
how to find specific value in a table?
ind1 = find(hsl.clusterya == 3) But you should probably be considering, for example mask1 = hsl.clusterya == 3; dist = sqrt(h...

3 dagar ago | 1

Answered
help --- symbolic expression or function
The code you are using has not been valid since about R2017b. syms x y z one = str2sym('3*x +2*y - z = 10'); two = str2sym('-...

3 dagar ago | 1

| accepted

Answered
What is the reason for adding 1 to magnitude of sine when we want to send samples to DAC (12 bit resolution)?
Adding one transforms it from the range [-1 1] to [0 2] . Multiply by 2^12 to get a value in the range [0 4096] . Divide by 2 to...

3 dagar ago | 1

| accepted

Answered
Multiple plots in a single graph
R = 0.015; g = -9.8; L = 1.0; d = 0.03; J = 9.99e-6; s = tf('s'); for m = 0.09:.01:0.13 P_ball = -m*g*d/L/(J/R^2+...

3 dagar ago | 0

Answered
3D plot of equation involving variables
Assuming you have found the right equation: syms x y z real fimplicit3(y^2+z^2==4*x^2)

3 dagar ago | 0

Answered
syntax error on simulink
Simulink Fcn blocks give syntax errors if you name variables in them that are not variables that exist in the workspace. I susp...

4 dagar ago | 1

| accepted

Answered
Unexpected issue with datetime
duration= NaT(height(B),1,'Format', 'HH:mm:ss.SSSSSSSSS' ); No matter what you name the variable, NaT creates a datetime object...

4 dagar ago | 1

| accepted

Answered
Cubic spline interpolation in interp1 doesn't remove NaN
Y.hbo is 3781 by 24. You are using logical indexing on it, which is going to give you a column vector result in which all of the...

4 dagar ago | 0

| accepted

Answered
What wrong with this linear simlp(f, A, b) problem?
Linear programming is typically coded in terms of minimization. You want to minimize the costs. But you have expressed your cost...

4 dagar ago | 0

Answered
Trying to find out that how many loop cycle it complete before the 'S' become zero. S value is not decreasing. Need to decrease S value zero and sum the total cycle number?
F is negative. You need to decide whether F should be positive and be subtracted, or if it should be negative and be added. I ...

4 dagar ago | 0

Answered
Error using / matrix dimensions must agree
We can tell from the error that sumfitness is not a scalar, and so the / operator is the matrix right division operator, which w...

4 dagar ago | 0

Answered
How to get out of the issue showing fsolve stopped because the relative size of the current step is less than the value of the step size tolerance squared.
format long g x0 = [0.000001 0.2] [x, fval] = fsolve(@FeMnC_350PEnew, x0); x fval syms X [1 2] Fsym = FeMnC_350PEnew(X...

4 dagar ago | 0

| accepted

Answered
Size of Image In Workspace & Disk are not same
Your InfoAfter is looking at CR1.dcm on disk, which has nothing to do with CT2.dcm or AfterX.jpg You did not tell imwrite() to ...

4 dagar ago | 0

| accepted

Answered
STM32 Memory (S-Record) to Matlab HEX Matrix
S = fileread('Memory.txt'); S1 = regexprep('^S3..........(.*)..\s*\n$', '$1', 'lineanchors'); bytes = uint16(sscanf(S1, '%2x...

4 dagar ago | 1

| accepted

Answered
How to control the visibility of gridlines of an axes through a checkbox in GUIDE?
For example function pushbutton1_Callback(hObject, event, handles) gridon = get(hObject, 'Value'); if gridon ...

4 dagar ago | 0

| accepted

Answered
How to omit zeros while using mean at varfun?
varfun(@(x)sum(x,1)./sum(x~=0,1), data(indexrows,indexheaders), 'InputVariables', @isnumeric) This has been designed to be able...

4 dagar ago | 1

| accepted

Answered
a simple object code pattern using struct
C++'s implementation of classes started by cross-compiling the C++ to C with the methods represented as fields in a struct that ...

4 dagar ago | 1

Answered
Is there any Matlab built-in function for 4ASK and 8ASK modulation?
No, there is no built-in function for that. See however the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/4...

4 dagar ago | 0

Answered
3D Mesh Plotting Trouble
[x,y] = meshgrid(0.1:0.1:5); t = (y.*(0.35^2)./(3*(x.^2)) )*1.6; z = t; mesh (x,y,z)

4 dagar ago | 0

| accepted

Load more