Answered
Matlab student version: :Error:Failed to load library 'commchan3' referenced by 'AcousticPropagationBP_Session1/Noise interference n(t)'."
Communications Systems Toolbox is not free with MATLAB and is not one of the packages bundled into the Student Suite. At the mo...

1 year ago | 0

Answered
Numerical Methods for Singular systems
if i<=N_0+1; x1(:,i)=0; x2(:,i)=0; x3(:,i)=0; else d_1=floor(1.5+si...

1 year ago | 0

Answered
How to Confirm My MATLAB License is Educational/Student Version?
>> getenv('MLM_LICENSE_FILE') ans = '13501@10.168.71.56:13501@10.168.231.186' You are using an education license, not a stude...

1 year ago | 0

| accepted

Answered
Polyspace 2022a on Windows Server 2022 or 2025
Polyspace 2022a is not supported on Windows Server 2022 or 2025; only on Windows Server 2019. Whether it will work is a differe...

1 year ago | 0

Answered
Unrecognized function or variable 'transformerLayer'
transformerLayer is not supplied by Mathworks. You need something like https://github.com/malkhodari/Transformer_MATLAB/blob/ma...

1 year ago | 0

Answered
How to find the adjecent values of zeros blocks inside a matrix
%guess: a block of 6 zeros should be treated as the first case ? mask2 = all(Data(:,2:4) == 0,2); mask5 = all(Data(:,5:7) == 0...

1 year ago | 0

Answered
making the graphic smaller
Generally speaking, what you would do is set the axes Position property smaller. You would probably tend to move the axes at the...

1 year ago | 1

Answered
Heatmap and surf plot of same data is looking different. Also is there a better way to 2D smooth
Notice that the heatmap shows the center of the blocks labeled 1 through 7, whereas the surf() shows 1 and 7 at the extreme edge...

1 year ago | 0

| accepted

Answered
Does anyone know how to use an IF statement with ODE's? I am trying to create an IF statement sigma > 0 , tau > 0 if dx(3,1) > 0, dx(1,1) > 0 and sigma = 0 , tau = 0 otherwise
Do not use an if statement inside an ODE... Not unless the if statement will always follow the same branch for any one invoca...

1 year ago | 1

Answered
Getting a shorter, more simple answer as output
syms x y log4 = log(sym(4)); y=(log(x)/log4)+(log(x^2)/log4); dy=diff(y)

1 year ago | 1

| accepted

Answered
How to install a personnal toolbox for Matlab and simulink
Copying a Mathworks toolbox onto a system that is not licensed for it, is illegal. Copying a Mathworks toolbox onto a system t...

1 year ago | 0

| accepted

Answered
Read .txt file with dots in filename
projectdir = '.'; %directory that contains the data dinfo = dir(fullfile(projectdir, 'xx*.txt')); filenames = fullfile({di...

1 year ago | 1

Answered
Is it possible to add Interactive Tasks into App Designer
No, Interactive Tasks are specific to Live Script. You would need to build appropriate sliders and drop-down menus yourself.

1 year ago | 0

| accepted

Answered
How to prevent tabulate function returning frequencies of variables that are not present in the vector?
The problem is that v1 was created as a categorical with additional categories beyond the ones populated. I do not know of an e...

1 year ago | 0

Answered
How to generate a file with ANSI encoding in MATLAB (specifically appdesigner)?
[fid, msg] = fopen(FileName, 'w', 'n', 'US-ASCII'); Note that US-ASCII only covers the first 128 characters (0 to 127), and tha...

1 year ago | 0

Answered
finding longest length
Consider using bwskel -- possibly with the 'MinBranchLength' option.

1 year ago | 0

Answered
Change variable name based on what loop it is on
It is possible to do this. It is not possible to do this simply. We firmly recommend that you do not do this. http://www.mat...

1 year ago | 0

Answered
How to skip missing time durations in a time-series heatmap (image based figure)
imagesc(DateTime,APS_diameter,APS_data) imagesc(x,y,C) specifies the image location. Use x and y to specify the locations of th...

1 year ago | 0

Answered
How can I know the coordinates that the aircraft has moved along the path. If i don't know the position and direction?
If you do not know the speed or time of movement, then you cannot know the position at any time after the initial conditions. ...

1 year ago | 0

Answered
VxWorks libmat and libmx source code
You can use https://github.com/tbeu/matio

1 year ago | 2

Answered
Scatter plot error: not enough input arguments
f_of_x = table((1 / sigma_sqrt2pi) .* euler.^(-(ESD_mu_squared / sigma_squared_two))) ; scatter(OL_All.EquivDiameter, f_of_x)...

1 year ago | 1

| accepted

Answered
failing to normalize columns of matrix from 0 to 1
Perhaps you want something like n = A; for ii=[2 4 6 8 10 12 14 16 18 20 22 26] n(:,ii) = (A(:,ii)-min(A(:,ii)))/(max(A(:...

1 year ago | 1

| accepted

Answered
parfeval evaluation is slow
Note the correction to the number of output arguements parameter in the parfeval() call f = cell(NumOfSlabs, 1); for k=1:NumOf...

1 year ago | 0

| accepted

Answered
violinplot (R2024b): SceneNode error?
The typical cause of this sort of problem, is if you have a third-party .m file with the same name as a Mathworks function. To ...

1 year ago | 1

| accepted

Answered
How to get the transfer function of IEEE 9 Bus system?
IEEE 9 bus includes circuit breakers. Systems with circuit breakers do not have transfer functions.

1 year ago | 0

Answered
Plotting inequality using symbolic function
syms Y y_caseA = 5; y_caseB = 10; y_caseC = 7; y_caseD = 3; ineq = piecewise((Y > y_caseA) & (Y < y_caseB) & (Y<y_caseC) & ...

1 year ago | 0

Answered
forward, backward, center approximations for f(x) = e^x-2x+1
Hint: for K = 1 : numel(y); xdiff(K) = x(K+2) - x(K+1); end for K = 1 : numel(y) yleading(K) = y(K); end for K = ...

1 year ago | 0

Answered
i need some help with my code simulating the pacific HVDC intertie, for some reason it won’t open in simulink
powerlib/Elements/Three-Phase Source and similar names do not exist. You need for example sps_lib/Sources/Three-Phase Source an...

1 year ago | 0

Answered
how to represent the purple color by a string value
To represent colors by string, you can use a quoted hexadecimal triplet. For example, plot(y, 'Color', '#800080') However, the...

1 year ago | 0

Answered
How to open the raw file as attached
That file is in OpenDose DVK format. It is a compressed format. Digging into https://gitlab.com/opendose/opendosedvkdata/-/blob...

1 year ago | 0

Load more