Answered
Including a value inside an annotation
You have annotation(['textbox',[0.42 0.864 0.1 0.1],'String','L. St. Lawrence - INCREASE IN ISI (n=',num2str(q),')','EdgeColor...

2 years ago | 0

| accepted

Answered
advice on how to type this formula
syms t x_1(t) = 1/2-1/pi*sin(4*pi*t)

2 years ago | 1

Answered
Problem using sscanf in picking out numbers from string.
str1 = 'D993920x2ExlsSuited20.xls'; %method 1 res = str2double(regexp(str1, '\d+', 'match')) %method 2 res = double(...

2 years ago | 0

Answered
I need simple code of deep neural networks
Deep Neural Networks are complicated things. You will not be able to find simple code for them. On the other hand, if you found...

2 years ago | 0

| accepted

Answered
Updating license file on License server
Historically the FlexM license manager provided a utility named lmreread that would tell the MLM to re-read the license file wit...

2 years ago | 0

Answered
How to find the maximum of a 2d function in specific interval?
syms x y P=0; for i=1:7 for j=1:7 P= legendreP(i-1,x)*legendreP(j-1,y)+P; end end Pe = collect(expand(P...

2 years ago | 2

Answered
Changing ode solver tolerances on the fly
If you use a tspan with exactly two elements, and you use ode options to set the Refine option to 0, then the ode functions will...

2 years ago | 0

| accepted

Answered
Code not running/plotting
% input parameters Ta=15+273.15; ha=5; Tr=-7+273.15; Tw=10+273.15; Hi=10; Bi=20; Li=60; Kins=0.045; xbar=Li/Hi; ybar=B...

2 years ago | 0

| accepted

Answered
Computation problems of nonlinear algebraic simultaneous equations.
Yes. It is too difficult to solve symbolically (at least according to Maple)

2 years ago | 0

| accepted

Answered
Right hand side of an assignment into a table must be another table or a cell array.
bias = table('Size',[1,11], 'VariableTypes', {'datetime', 'string', 'double', 'double', 'double', 'double', 'double', 'double', ...

2 years ago | 0

Answered
Why am I getting ode45 error?
I am still testing the below; some minor changes need to be made to some of your plotting code. %%Execution file Wi=0:0.1:25;...

2 years ago | 0

Answered
how can I set the decimal digits of all coefficients at one time when outputting a polynomial f?
P = [5.327416, -3.660092, 1.5799301] %method 1 vpa(poly2sym(P, sym('x')),4) %method 2 poly2sym(round(sym(P),3)) %m...

2 years ago | 1

| accepted

Answered
I don't understand why this script is outputting imaginary values
There is one real solution, and three complex solutions. format long g syms x [1 8] eqn = sub1(x) char(eqn.') solv = ...

2 years ago | 0

| accepted

Answered
Plotting data against a combination array
alpha = 0; L = 0.002; W = 0.002; x = 0; y = 0; h = 0.001; thetaX_loop = -60:1:60; thetaY_loop = -60:1:60; [thetaX, ...

2 years ago | 1

| accepted

Answered
Import matrix with y variables into ode45
Use matlabFunction to create functions that accept numeric inputs and return numeric outputs. You would probably want to do thi...

2 years ago | 0

| accepted

Answered
sound normalization made distortion bigger
yInt = new_y * 32768; You need to convert to int16 after you zap the 32768. You could consider using im2int16 instead of your ...

2 years ago | 0

| accepted

Answered
issue with Installing Offline Documentation
If you have a network connection then Preferences --> Help -> Installed locally will offer to install the documentation for you....

2 years ago | 0

Answered
The image calculation found that they are all black or all white.
img = (-0.18 / (-0.28 / (45.39 /double(img1) - 1))+1) * 5.3; When you do calculations with integer datatypes, the results of th...

2 years ago | 0

| accepted

Answered
cftool custom equation "worse than just fitting the mean" error
Well, you can do a fitting to get a line with an intercept of 0, but that doesn't mean that you are going to get a good fit. I...

2 years ago | 0

Answered
Importing data from excel and plotting
readcell() Parse row 3 column 1 to figure out the first date -- which is in a completely different format than all of the other...

2 years ago | 0

Answered
Adding units on my axis
x = 0:10:100; y = rand(size(x)); plot(x, y) xtickformat('%.1f%%')

2 years ago | 0

Answered
randi generate a normally distributed integer matrix
The following illustrates that it is possible to create an array of integers whos population statistics approximate normal distr...

2 years ago | 0

Answered
MATLAB Local Cluster Configuration
In order to do that you would need to have the MATLAB Parallel Server product; https://www.mathworks.com/products/matlab-paralle...

2 years ago | 0

Answered
How to relabel the structures fields in a sequence?
newfields = "bin_" + (1:length(fieldnames(A))); A = cell2struct(struct2cell(A), newfields);

2 years ago | 0

| accepted

Answered
Problem-based optimization: Initial guess for only one variable
there are only 3^3 different possibilities. Run them each in turn hardcoding one particular a, b, c possibility. Take the best o...

2 years ago | 1

Answered
script no longer works after update to 2023b (related to ode45)
function df = Blas_Sc(eta,f,Sc) global Sc; It is an error to have a parameter with the same name as a global variable

2 years ago | 0

Answered
R2023b Unrecognized function or variable 'gaoptimset'.
Global Optimization Toolbox is needed

2 years ago | 2

Answered
How do you do regular expressions at the character level?
"+" on character vectors is not a pattern operation. seg_1 = '[TZ]' seg_2 = '[ET]' seg = seg_1 + seg_2 char(seg) p_1 = char...

2 years ago | 1

| accepted

Answered
datacursormode isn't working on a specific UIAxes for Matlab R2023a
At the time you make the call dcm1 = datacursormode(app.UIAxes1, 'on'); app.UIAxes1 is not a valid Axes object that is parente...

2 years ago | 0

Answered
AVX Programming, how to do within C mex file
If you are using Visual Studio then see https://devblogs.microsoft.com/cppblog/avx-512-auto-vectorization-in-msvc/

2 years ago | 0

| accepted

Load more