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

circa 8 anni fa | 0

| accettato

Risposto
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:...

circa 8 anni fa | 1

Risposto
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 (...

circa 8 anni fa | 0

| accettato

Risposto
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 ...

circa 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 4

| accettato

Risposto
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=...

oltre 8 anni fa | 0

Risposto
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); ...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 1

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

oltre 8 anni fa | 1

| accettato

Risposto
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,:)=[];...

oltre 8 anni fa | 2

Risposto
Text/strings not working in Matlab 2018a
Maybe it would work if you replaced the curved accent ’ by a straight accent '

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

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

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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.

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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. ...

oltre 8 anni fa | 0

Risposto
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.

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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 ...

oltre 8 anni fa | 1

Carica altro