Risposto
How to find duplicate values in 2d matrix?
You can indeed use findgroups. You should supply the first two columns as separate inputs. G=findgroups(M(:,1),M(:,2)); ...

quasi 7 anni fa | 1

| accettato

Risposto
Question about STL file
An stl file has two parts. One part contains triplets of vertex IDs, and the other part contains the xyz coordinates of each ver...

quasi 7 anni fa | 1

| accettato

Risposto
How to pass a matlab string as an exclamation point command
If you use the system function instead of the exclamation point operator you can pass a fully parsed char array.

quasi 7 anni fa | 1

| accettato

Risposto
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Maybe this idea has been suggested before, but maybe it would be good to have a down vote button. I sometimes see answers of que...

quasi 7 anni fa | 1

Risposto
Keep a figure full screen while looping
Store the output of imshow in a variable (it is a handle to the image object). Then inside the loop only change the CData pro...

quasi 7 anni fa | 0

Risposto
Show Images with Filenames in Cell Array
You will have to program that sequential behavior yourself. for n=1:numel(q) IM=imread(q{n}); imshow(IM) ...

quasi 7 anni fa | 0

Risposto
Export a cell array containing cell arrays
You need to generate the iteration labels (which is easiest with a cell array. I have once written a function that generates exc...

quasi 7 anni fa | 0

Risposto
Creation of Series of Directory
You can use the sprintf function to create char arrays with a pattern. N=10; for n=1:N mkdir(sprintf('HealthCareUnit-...

quasi 7 anni fa | 1

| accettato

Risposto
Creating a 365x24 matrix using for and if
You're confusing while and for. But you need neither: COSMY2014=-9999*ones(365,24);

quasi 7 anni fa | 1

| accettato

Risposto
Loop: Index Exceeds Matrix Dimensions / less values than required.
If it is fine to use fewer values for the end of your loop, you can do this: %replace this Dataset(start_limit:end_limit,1...

quasi 7 anni fa | 0

| accettato

Risposto
Count how many times a number appears for X number of rows (e.g 99 rows) in an array.
You have two options: # use the runlength function by Jan (you can get it from the File Exchange) # replace 1:length(data) ...

quasi 7 anni fa | 0

| accettato

Risposto
How to create a matrix out of all the possible combinations of a vector
https://www.mathworks.com/help/matlab/ref/perms.html

quasi 7 anni fa | 1

Risposto
Adding 3 images to a GUI showing the red, green, and blue channel of an image
RGB images in Matlab are stored as 3D arrays. As the third dimension stores the colors, something like this should work (pay att...

quasi 7 anni fa | 0

| accettato

Risposto
GUI axes question, need help having a minimal and maximal edit box for the x axes values
Set the XLim property of the axes object in a callback. Make sure not to forget to use str2double, to check for NaN input, to...

quasi 7 anni fa | 0

| accettato

Risposto
Invalid expression...Line 16 column 48
You have a closing parenthesis too early: plot(x(n+1,1))*1e6;x(n+1,2)*1e6 % ^ Also, you should use commas to...

quasi 7 anni fa | 0

| accettato

Risposto
"Index in position 1 exceeds array bounds" error for loop
Instead of this line for j = 1:length(brakingData) Use this: for j = 1:(size(brakingData,1)-1) Although you can ...

quasi 7 anni fa | 0

Risposto
How do I use X&Y Arrays in a formula to get and Array answer?
Use ndgrid to generate the full array of combinations. You could also do it with implicit expansion, but that makes it harder to...

quasi 7 anni fa | 2

| accettato

Risposto
Convert String to Expression for IF Statement
data<1000 That will return a logical (true or false value). parseCond=@(data) data<1000; That will create an anony...

quasi 7 anni fa | 3

| accettato

Risposto
looping though multiple sub-directories
Yes, you just need to load your text file with your paths, and then loop over the contents. If you need help with loading the te...

quasi 7 anni fa | 0

Risposto
How to find the area of a segmented image in matlab?
You can make use of the fact that true is stored as a 1. Make sure your object is the only one marked with true and then use thi...

quasi 7 anni fa | 4

| accettato

Risposto
Load particular data in a .m file from another .m file from different folder.
I'm going to guess that your m file is not a function but a script. I would recommend using functions for anything but testing. ...

quasi 7 anni fa | 2

| accettato

Risposto
Extracting file name elements to vectors
You can put the contents of your loop in a separate function and call that with arrayfun if you insist, but that will not really...

quasi 7 anni fa | 0

Risposto
Reading a 97-2003 xls file
Sometimes it helps to provide the full file name including the extension. That way Matlab doesn't have to determine the file typ...

quasi 7 anni fa | 1

Risposto
Query data from 1xn struct
The |table| data type is probably a better choice for your usage. Then you can also easily index.

quasi 7 anni fa | 0

| accettato

Risposto
How to plot $40b^2x-9b^2-60bx+72b-144=0$
It shouldn't be too hard to pry out x from this equation. Getting out b is a bit more tricky. 40b^2x-9b​^2-60bx+72​b-144=0 ...

quasi 7 anni fa | 0

| accettato

Risposto
Histograms from point cloud
It looks like you can use the columns from xyzPoints, because they seem to store the coordinates. Otherwise you could also use t...

quasi 7 anni fa | 0

| accettato

Risposto
Slider which changes images
Live updates are a bit more tricky, but you can use the uicontrol function to create a slider. Then you can use the callback fun...

quasi 7 anni fa | 1

| accettato

Risposto
How to read N number of .log files at a time?
Generate the file names with sprintf and loop over the files.

quasi 7 anni fa | 0

Risposto
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Editor support on mobile seems not fully tested. (I'm using Android 9 (Lineage OS), with Chrome as browser and Swiftkey as the k...

quasi 7 anni fa | 0

Risposto
How do I create a table from the names of files in some folders?
You can use the dir function to get a full file list: list=dir('C:\Your\Path\**\*.flac'); Then you can parse each file name to...

quasi 7 anni fa | 0

Carica altro