**Feeds**

已回答

How to fix error in matlab code for the assignment of path?

If it happened that there was a function named baseSNAP, and you have a call to that function, and as well you later assign to a...

How to fix error in matlab code for the assignment of path?

If it happened that there was a function named baseSNAP, and you have a call to that function, and as well you later assign to a...

9 hours 前 | 0

已回答

How do I print a % character into a file

Either fprintf(app.SessionFile,"%s",str); or fwrite(app.SessionFile, str); Note: your str does not appear to include newline...

How do I print a % character into a file

Either fprintf(app.SessionFile,"%s",str); or fwrite(app.SessionFile, str); Note: your str does not appear to include newline...

16 hours 前 | 0

已回答

Data is not storage when running loop

You set your various arrays conditionally. We should not be surprised if the arrays come out different lengths. You do not cl...

Data is not storage when running loop

You set your various arrays conditionally. We should not be surprised if the arrays come out different lengths. You do not cl...

1 day 前 | 0

已回答

Colon operands must be real scalars

The colon operator has always been defined as using the first element of each operand. The change is that soon using non-scala...

Colon operands must be real scalars

The colon operator has always been defined as using the first element of each operand. The change is that soon using non-scala...

2 days 前 | 0

| 已接受

已回答

How can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ?

You just imread() the file. .bmp - limit 32767 x 32767 .gif - limit 65535 x 65535 .jpg - limit 65535 x 65535 .png - limit 10...

How can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ?

You just imread() the file. .bmp - limit 32767 x 32767 .gif - limit 65535 x 65535 .jpg - limit 65535 x 65535 .png - limit 10...

2 days 前 | 0

| 已接受

已回答

Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b

The hack for R2024b is: yticks(gca().NodeChildren.Children, [])

Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b

The hack for R2024b is: yticks(gca().NodeChildren.Children, [])

2 days 前 | 0

已回答

Open Script Layout Error

First of all, I can tell that you have the editor docked: if you had it undocked then there would be a toolstrip or the decorati...

Open Script Layout Error

First of all, I can tell that you have the editor docked: if you had it undocked then there would be a toolstrip or the decorati...

2 days 前 | 0

已回答

How can I fix this error:"Error using matlab.io.datastore.TransformedDatastore/subset Expected indices to be an array with all of the values <= 574."

tDS happens to have 574 elements. You are asking to subset it at locations given by testIdx_all Unfortunately, testIdx_all has...

How can I fix this error:"Error using matlab.io.datastore.TransformedDatastore/subset Expected indices to be an array with all of the values <= 574."

tDS happens to have 574 elements. You are asking to subset it at locations given by testIdx_all Unfortunately, testIdx_all has...

2 days 前 | 0

已回答

How to log the data in the workspace without modifying the content of the for loop?

Your structure reminds me of using SPMD together with spmdSend and spmdBarrier (formerly labSend and labBarrier) But your struc...

How to log the data in the workspace without modifying the content of the for loop?

Your structure reminds me of using SPMD together with spmdSend and spmdBarrier (formerly labSend and labBarrier) But your struc...

2 days 前 | 0

已回答

Matlab code to find the Wave height

image_height = min(sum(cumprod(~binaryImage, 1),1) + 1); or possibly image_height = min(sum(cumprod(~flipud(binaryImage), 1),1...

Matlab code to find the Wave height

image_height = min(sum(cumprod(~binaryImage, 1),1) + 1); or possibly image_height = min(sum(cumprod(~flipud(binaryImage), 1),1...

3 days 前 | 0

已回答

Error handling with graphical user interface

When you create a GUI, any try/catch you have only applies to code that is run directly from the try/catch block. The try/catch ...

Error handling with graphical user interface

When you create a GUI, any try/catch you have only applies to code that is run directly from the try/catch block. The try/catch ...

3 days 前 | 0

| 已接受

已回答

IMCLIPBOARD in R2025a

The R2021a release notes say Java Packages to be removed Share Java® packages and subpackages that currently ship with MATLAB...

IMCLIPBOARD in R2025a

The R2021a release notes say Java Packages to be removed Share Java® packages and subpackages that currently ship with MATLAB...

3 days 前 | 0

已回答

clearvars function in simulink function block

Compiled models use static allocation for global variables. Asking to clear the global would be asking to release the static mem...

clearvars function in simulink function block

Compiled models use static allocation for global variables. Asking to clear the global would be asking to release the static mem...

4 days 前 | 1

已回答

Best fit line for scatter data along y=x line

m = (y2 - y1) ./ (x2 - x1); b = y1 - x1 .* m; LD1= load('uu.mat'); uu = LD1.uu; LD2 = load('PntP.mat'); x = LD2.PntP(:,...

Best fit line for scatter data along y=x line

m = (y2 - y1) ./ (x2 - x1); b = y1 - x1 .* m; LD1= load('uu.mat'); uu = LD1.uu; LD2 = load('PntP.mat'); x = LD2.PntP(:,...

6 days 前 | 0

已回答

unable to perform assignment because the left and right sides have a different number of elements , vect problem

vec_EbN0_dB is an entire vector. On the statement vec_SNR_dB(i) = vec_EbN0_dB + log10( mod_order) you are using the entire v...

unable to perform assignment because the left and right sides have a different number of elements , vect problem

vec_EbN0_dB is an entire vector. On the statement vec_SNR_dB(i) = vec_EbN0_dB + log10( mod_order) you are using the entire v...

6 days 前 | 0

已回答

What would cause Matlab to lose track of gcf()?

Unrecognized function or variable 'gcf'. You can get that error if you had previously defined gcf as a variable in your code, b...

What would cause Matlab to lose track of gcf()?

Unrecognized function or variable 'gcf'. You can get that error if you had previously defined gcf as a variable in your code, b...

7 days 前 | 0

| 已接受

已回答

Problems applying custom keyboard shortcut for "New Function"

notice that "tools with shortcut" is set to MATLAB Desktop. You will need to set that to include the editor if you want to use t...

Problems applying custom keyboard shortcut for "New Function"

notice that "tools with shortcut" is set to MATLAB Desktop. You will need to set that to include the editor if you want to use t...

7 days 前 | 0

已回答

How do you set the focus to a specific uiaxes

Somewhere around R2020b (possibly R2020a) it became possible to axes() the handle to a uiaxes to bring it into focus. (It did n...

How do you set the focus to a specific uiaxes

Somewhere around R2020b (possibly R2020a) it became possible to axes() the handle to a uiaxes to bring it into focus. (It did n...

8 days 前 | 0

已回答

Unable to sending trigger via parallel port

io64 appears to be https://web.archive.org/web/20210903151747/http://apps.usd.edu/coglab/psyc770/IO64.html According to https:...

Unable to sending trigger via parallel port

io64 appears to be https://web.archive.org/web/20210903151747/http://apps.usd.edu/coglab/psyc770/IO64.html According to https:...

8 days 前 | 0

已回答

error in symbolic convolution using integral and isAlways

normpdf() is not designed to accept symbolic inputs. You will need to re-implement normpdf without the line p(sigma==0 & x<mu)...

error in symbolic convolution using integral and isAlways

normpdf() is not designed to accept symbolic inputs. You will need to re-implement normpdf without the line p(sigma==0 & x<mu)...

8 days 前 | 0

| 已接受

已回答

The same plotting problem, it is appear that one of the marker does not show on the graph but it should have been properly plot and the legend has shown properly too

The green marker is probably covered up by the legend. [max_a, i_max] = max(angular_a_n); angular_a_n is a vector. max of it i...

The same plotting problem, it is appear that one of the marker does not show on the graph but it should have been properly plot and the legend has shown properly too

The green marker is probably covered up by the legend. [max_a, i_max] = max(angular_a_n); angular_a_n is a vector. max of it i...

8 days 前 | 0

已回答

How can I copy a figure to Word when using Online Matlab?

If you use drive.mathworks.com then you can navigate to the Drive location where you stored the figures, shift-click to highligh...

How can I copy a figure to Word when using Online Matlab?

If you use drive.mathworks.com then you can navigate to the Drive location where you stored the figures, shift-click to highligh...

8 days 前 | 0

已回答

Necesito calcular valor de 𝑦 para una ecuación matematica de y = a la raiz de un valor usando funciones predefinidas y no se como arrancar

Example: syms x e = exp(sym(1)); y = e + sqrt(x^3 + 5*x^2 + 3*x - 11) subs(y, x, 2.5)

Necesito calcular valor de 𝑦 para una ecuación matematica de y = a la raiz de un valor usando funciones predefinidas y no se como arrancar

Example: syms x e = exp(sym(1)); y = e + sqrt(x^3 + 5*x^2 + 3*x - 11) subs(y, x, 2.5)

8 days 前 | 0

已回答

MATLAB is deleting my negatives in matrix multiplication and i am confused

That code does not generally remove negatives. k1 = randn(4, 4) L1 = [01 01 0 0 0 0 0 0; 0 0 01 01 0 0 0 0; 0 0 0 0 ...

MATLAB is deleting my negatives in matrix multiplication and i am confused

That code does not generally remove negatives. k1 = randn(4, 4) L1 = [01 01 0 0 0 0 0 0; 0 0 01 01 0 0 0 0; 0 0 0 0 ...

8 days 前 | 0

已回答

Variable size signal for integrator in Simulink

Use an iterator subsystem to loop over the vector elements, integrating one by one. https://www.mathworks.com/help/ecoder/ug/fo...

Variable size signal for integrator in Simulink

Use an iterator subsystem to loop over the vector elements, integrating one by one. https://www.mathworks.com/help/ecoder/ug/fo...

9 days 前 | 0

已回答

How to include text in m file as code?

Yes, it is possible. What you need to do is create a function file named data.m that looks something like function datastruct...

How to include text in m file as code?

Yes, it is possible. What you need to do is create a function file named data.m that looks something like function datastruct...

9 days 前 | 0

已回答

How to use a for loop to get previous values to calculate next one

@Deepak correctly points out problems with indexing at 0 or -1. But that error would have priority . Because that error does not...

How to use a for loop to get previous values to calculate next one

@Deepak correctly points out problems with indexing at 0 or -1. But that error would have priority . Because that error does not...

9 days 前 | 0

已回答

Read/Write Data from .dat file Problem

A = readmatrix('DMIR22345.Dat');%Read first file.dat B = readmatrix('DMIR2235.Dat');%Read sconde file.dat filename = 'Data1...

Read/Write Data from .dat file Problem

A = readmatrix('DMIR22345.Dat');%Read first file.dat B = readmatrix('DMIR2235.Dat');%Read sconde file.dat filename = 'Data1...

10 days 前 | 0

已回答

Simply trying to find a value in the same row as my known value but in a different column.

rows = ismembertol( A(:,1), value); A( rows, 3) If this does not work, then either A(:,1) is not the same datatype as value, o...

Simply trying to find a value in the same row as my known value but in a different column.

rows = ismembertol( A(:,1), value); A( rows, 3) If this does not work, then either A(:,1) is not the same datatype as value, o...

11 days 前 | 0