Answered
sparse matrix entries are not displayed correctly
Notice that the matrix is displayed out of order -- the normal order is linear indexing, so (1,4) would have appeared before (2,...

3 years ago | 3

| accepted

Answered
How to change variable name in MAT file
You could modify the File Exchange Contribution https://www.mathworks.com/matlabcentral/fileexchange/42274-loadfixnames-loads-a-...

3 years ago | 1

Answered
How to compile matlab app for target without matlab runtime
You don't. When you use MATLAB Compiler, the target system must always have the MATLAB Runtime; the only choice is whether to bu...

3 years ago | 0

Answered
How do I get a table calculation result in a single column?
cCED = ((10.^(T.a(ix)-(T.b(ix)./(Tmp+T.c(ix)))))*133.322).^0.5; Your T.c(idx) is a vector, you had a / operation with a vector ...

3 years ago | 0

| accepted

Answered
Error using controlSystemDesigner (line 230) The model for "G" must be single input, single output
lsim returns system response, not a "plant" You would probably want controlSystemDesigner(sys)

3 years ago | 0

| accepted

Answered
Using cellfun to automate data calibration - issue defining function
calibrated_d18O = cellfun(@(x)cal_d18O(x(4:end,4), coeff1, coeff2), A, 'Unif', 0);

3 years ago | 0

| accepted

Answered
Why does the table command change display format?
Where you are going wrong is in expecting table() objects to be designed to be display objects. They are not designed for displa...

3 years ago | 1

| accepted

Answered
writeXml adds &#xD to the end of the output file, which is not a part of the data. Tips to remove?
#xD; is carriage return. Is it possible that you are reading a file that was created in Windows, and splitting up text, but that...

3 years ago | 0

| accepted

Answered
How write an event function using a 6x1 state vector.
function [value,isterminal,direction] = myEventsFcn(t,Y) value = SCALAR - norm(Y(1:3)); isterminal = 1; direction = ...

3 years ago | 0

Answered
How Can I Parallel this?
Running it in parallel is only possible if the calculation being done turns out to be a reduction variable; see https://www.math...

3 years ago | 0

Answered
Getting data from a .CSV that is constantly overwritten
Would this happen to be on Windows? If so then see https://www.mathworks.com/matlabcentral/answers/370476-file-watcher-for-conti...

3 years ago | 1

Answered
I want to integrate a symbolic matrix numerically. How can I do it??
Use nested vpaintegral() calls. The inner call will execute first and figure out that it cannot integrate because there is an ad...

3 years ago | 0

| accepted

Answered
How to define an order for the masks not according to A,B,C or 1,2,3...n but according to the order I will define?
Use the second output of ismember() with NamesOfMasks being the second parameter

3 years ago | 1

| accepted

Answered
Run a line once the code is manually stopped
No direct method is available for this. However you might be able to work it by using onCleanup in a called function.

3 years ago | 0

Answered
why do i receive error when do 'Implicit' solution true?
sol = dsolve(eqn, 'implicit', true) arrayfun(@(X)isolate(X, y), sol) You will see that they are different ways of writin...

3 years ago | 0

| accepted

Answered
categorical conversion to integer
https://www.mathworks.com/help/matlab/matlab_prog/ordinal-categorical-arrays.html create an ordinal categorical with valueset ...

3 years ago | 1

Answered
is that code matching the requirements of the problem or not ?
No. The function is defined over real values but your code is only over integers.

3 years ago | 0

Answered
How to resolve the Plotting issue in my code?
your values all come out nan. You have terms with really silly exp like exp(4650474150180979551851750155591204398145227957873...

3 years ago | 0

Answered
mclmcrrt7_14 error
That version is old enough that there are different rules for it. * you can get that mcr by installing the appropriate MATLAB...

3 years ago | 0

Answered
I am confused what is wrong with my code
move = input('Enter the name of the image: ', 's'); That defines a variable inside the "base" workspace. function [board_game1...

3 years ago | 0

Answered
Streaming data using serialport
serialport() is continually reading and putting data into a buffer. As long as you do not overflow the buffer, it will grab data...

3 years ago | 0

Answered
Unrecognized function or variable 'mexTDMS'
The toolbox you are using is not supported on Silicon Mac, at least not in the release you are using. (I do not know if it is su...

3 years ago | 2

Answered
Can I use a campus license on a cloud computer?
https://www.mathworks.com/help/install/license/licensing-for-mathworks-products-running-on-the-cloud.html if it is a public c...

3 years ago | 0

Answered
Detect black pixels in a binary image
imbinarize with foreground polarity dark. Then mean2() * 100

3 years ago | 0

Answered
Channel bandwidth defination 5g
The baseband component carrier waveform in this example is characterized by multiple subcarrier spacing (SCS) carriers So this ...

3 years ago | 0

| accepted

Answered
matlab equation to latex
The latex function does not have any option to add that in automatically, so you would need to use text manipulation to add it i...

3 years ago | 0

| accepted

Answered
Error using parameters in fsolve()
When you use fsolve, the function you pass to fsolve must accept exactly one variable. If you are trying to model multiple model...

3 years ago | 0

| accepted

Answered
How do I record from two spectrometers simultaneously
The OceanOptics programming manual is clear that the drivers are written in Java, and that The wrapper.getSpectrum() met...

3 years ago | 1

| accepted

Answered
Contour Plot with Boolean Indices (z must be at least a 2x2 matrix)
X = 1:1:5; Y = 1:1:10; [X,Y] = meshgrid(X, Y); Z = X; bool = Y <= 5; Z(bool) = Y(bool); contour(X,Y,Z)

3 years ago | 0

| accepted

Answered
Pause function in matlab for 1 millisecond
The Windows task scheduler runs every 15 ms, so you cannot get 0.001 resolution without resorting to something like busy-wait. ...

3 years ago | 0

Load more