Réponse apportée
How to detect row index
The code below should do the trick: a={'VA';'Star';'/';':';'Status';'';'Star';'/';'end';':';'positive';... 'Status';...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
threshold matrix extraction of size 21*18*3?
With logical indexing this is almost trivial: A=randi([10 20],21,18,3)/100;%generate a random matrix with values from 0.10:...

plus de 8 ans il y a | 1

Réponse apportée
adding text on an image in 2018a
Then I'll repeat my suspicion as an answer: If you have strange errors about indexing, it is often the case that you overwrote (...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to multiply every pixels?
You can use |prod|. A=rand(256,256); total_product=prod(A(:)); But it is very likely that the product will be either ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Finding if a vector is a subset
|strfind| should be an option, especially if you only have positive integer scalars, which you can just cast to |char|. Otherwis...

plus de 8 ans il y a | 1

Réponse apportée
How to find a folder in the PC ?
You should be able to use <https://www.mathworks.com/help/releases/R2018a/matlab/ref/cd.html |cd|>, which also works with relati...

plus de 8 ans il y a | 4

| A accepté

Réponse apportée
Is there a way to find the max figure in a matrix, but then print a different figure in the same row?
You can improve on the suggestion by Bob by about a factor 3 (for this example at least) like this: %generate data data=...

plus de 8 ans il y a | 0

Réponse apportée
make a continuous array
Pre-allocate one row (or preferably the entire matrix), and the use the colon to index the output: output_mat=zeros(4,3); ...

plus de 8 ans il y a | 1

Réponse apportée
fitting a gaussian curve to a bar graph
I doubt your distribution is actually normal, but you can use the code below to fit a Gaussian curve, without even the curve fit...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Can SQRT be used on an RGB image with double precision?
That is due to the way you display the image. You probably have a uint8 input with values from 0-255. |sqrt| then does its thing...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Which version of Matlab is suitable for 32 bits and windows 10?
The latest release that has a 32 bit Windows edition is <https://www.mathworks.com/matlabcentral/answers/271876-windows-32-bit-v...

plus de 8 ans il y a | 1

Réponse apportée
How is a text raised?
Because you need to use the correct LaTeX syntax: title('Piano del bit 1 * 2^{(n-1)}')

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Delete a row from matrix and save the modified matrix as a new matrix?
There are two ways to do this: Xm = [0 2; 3 4; 5 6]; rows_to_index=3; Xm_copy=Xm; Xm_copy(rows_to_index,:)=[];...

plus de 8 ans il y a | 2

Réponse apportée
Text/strings not working in Matlab 2018a
Maybe it would work if you replaced the curved accent ’ by a straight accent '

plus de 8 ans il y a | 0

Réponse apportée
How to call index of vector from matrix?
The code below executes in 0.35 seconds. This will scale about linearly with the number of rows in |B|. %Generate data A...

plus de 8 ans il y a | 1

Réponse apportée
Viewing three dimensional matrix
Something like this maybe? imshow(squeeze(A(1,:,:))) |imshow| might even be smart enough not to need |squeeze|.

plus de 8 ans il y a | 1

Réponse apportée
i want to write 25 sample image after treatment and save in 10 folders
In the code below I fixed some issues with your code. Compare the lines I changed and read the documentation for those functions...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Error : "Assignment has more non-singleton rhs dimensions than non-singleton subscripts"
If you want to use only the first element, you can use the code below. This might still result in an error if no valid positions...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
is it possible to instol R2018a 64 bit, on win 7, 32 bit, I have , error setup 5
No, you can't. R2015b is the last release that supported Windows 32 bit, and you can't install a 64 bit program on a 32 bit OS.

plus de 8 ans il y a | 1

Réponse apportée
How to combine a matrix that has elements up to n?
This code should do the trick. I also slightly modified some earlier code. nspan=4; EI=[200,600,600,200]; L=[10,20,20...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Convert imagesc back to matrix.
Short answer: No. Medium answer: Maybe, but with severely limited resolution in terms of pixels and data. Long answer: Tha...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
What happens when altering a compiled code?
Matlab is not running the cpp-file, so altering it has no effect. If you want to change the code that Matlab runs, you will have...

plus de 8 ans il y a | 0

Réponse apportée
Unexpected behaviour by imread and imwrite
JPEG is not a lossless compression algorithm. This means that re-writing a loaded image might (and generally will) result in a d...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to work with annotation?
The trick is to use the handle to set the |String| property. You might need a call to |drawnow| to trigger a graphics update. ...

plus de 8 ans il y a | 0

Réponse apportée
How do I add the Editor window in my Matlab trial?
The editor should open automatically when you open a file. You can also type |edit| to open a new file in the editor.

plus de 8 ans il y a | 0

Réponse apportée
How can I change the Matlab mex Compiler from MinGW64 C++ to Visual Studio 2013?
Make sure you have installed VS2013 and run mex -setup It might also be the case that this combination of OS, release an...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Storing repeated values from a loop
Please, never post your code as an image. It actively discourages people to help, because we can't copy and paste code to fix it...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to convert these numbers to vector? size (1*1000)
I'm going to assume you have some block of digits in char format that you converted to a single char vector. I'm also going to a...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How do i find max value of a two varible equation?
If you have a recent release, then you can use implicit expansion to calculate all combinations and find the |t| and |omega| tha...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
cell contents assignment to a non-cell array object
I suspect your should have looked something like this (note the commented lines and the comments) %IM = imread('C:\Program ...

plus de 8 ans il y a | 1

Charger plus