Risposto
read data from file and convert to a 3d array.
To suggest the best way to read the file, you will have to share a small sample. Otherwise functions like importdata or the more...

quasi 7 anni fa | 0

Risposto
How do i add on deatoolbox on MATLAB?
Download the toolbox from github: https://github.com/javierbarbero/DEAMATLAB/archive/master.zip Then you can extract that to ...

quasi 7 anni fa | 1

| accettato

Risposto
Importing multiple .xlsx files to automate data processing
I would suggest using dir to create a list of the files and then parsing them in a loop. Probably using xlsread directly is a sm...

quasi 7 anni fa | 0

Risposto
could anyone help me how to solve the issue
If you want to not show a tick, you can remove it by explicitly skipping it. ylim([0,1.1]) set(gca,'YTick',[0.2:0.2:1.1]) You...

circa 7 anni fa | 1

| accettato

Risposto
Hollow out binary matrix shape
To find the wall, I would invert the image, do a dilation and then & the original and the processed images. It doesn't really ma...

circa 7 anni fa | 1

| accettato

Discussion


[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
This is the 5th installment of the wish-list and bug report thread. This topic is the follow on to the first Wish-list for MATL...

circa 7 anni fa | 1

Domanda


[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
This is the 5th installment of the wish-list and bug report thread. This topic is the follow on to the first Wish-list for MATL...

circa 7 anni fa | 52 risposte | 1

52

risposte

Risposto
input character not valid
Rename your own function (C:\Users\Rick\Desktop\eeglab13_6_5b\plugins\Biosig3.3.0\biosig\maybe-missing\strncmpi.m). It is being ...

circa 7 anni fa | 0

Risposto
What does @(x,y)myFunction mean?
The @ symbol generates either a function handle or creates an anonymous function. You can read more on this doc page. You thir...

circa 7 anni fa | 0

| accettato

Risposto
Find groups of duplicate values and preserving order?
The code below is far from optimal, but it should help you out. It assumes there is always an L to load, and you have enough mem...

circa 7 anni fa | 1

| accettato

Risposto
Write to file inside a loop
Or a much better practice: if you know the number of iterations you should pre-allocate your output array. saveb1 = zeros(1,k);...

circa 7 anni fa | 1

Risposto
How to Slide a 3X3 window across a pixel of the image in matlab.
You can still use the convolution tools: im=randi([0 1], 315, 274); kernel=[1 1 1;1 0 1;1 1 1]; sum_of_8=convn(im,kernel,'sam...

circa 7 anni fa | 2

Risposto
How to turn a column of seconds into the datetime-type?
The rowfun function should be usefull here. You can convert seconds to datetime with t = datetime(Y,M,D,H,MI,S) (set the rest of...

circa 7 anni fa | 2

Risposto
subplot two different images in two different for loop
You are overwriting your plots. If you step through your code you will see that you first make an k+1 subplot, then increment k ...

circa 7 anni fa | 0

| accettato

Risposto
How can I display the value at a point in a figure with mouse (touch screen laptop)
A=randi(127,100,150);A=uint8(A); figure(1),clf(1) imagesc(A) datacursormode on Note that axes interactions changed in R2018b...

circa 7 anni fa | 0

| accettato

Risposto
How to match scale of x axes in subplots, so that a given time period occupies same amount of x axis space in each subplot?
You have two options: Set an explicit x-range and set it at the end of your loop with the xlim function. In your current code ...

circa 7 anni fa | 0

| accettato

Risposto
colormap only 64 colors?
Your choice of function has a mismatch with what you want. The line below could help, but will stay an approximate: contourf(X,...

circa 7 anni fa | 0

| accettato

Risposto
I want to delete all the headerlines and delimiters from the data in the below attached text file
The best solution is probably to read your entire file as text, then remove the header lines, then parse them with textscan.

circa 7 anni fa | 1

| accettato

Risposto
How to do image rotation in matlab?
It is a bit strange to store your image with getappdata on the graphics root, instead of with guidata. You will also notice that...

circa 7 anni fa | 2

| accettato

Risposto
How to find the values of jump in an array?
There are several ways to solve this. Below you find a way to look over a few samples where there is a big jump. Another option ...

circa 7 anni fa | 0

| accettato

Risposto
Removing adjacent duplicate numbers in rows of a matrix
You can use diff to find any repeats and remove them. The compare to eps is to avoid strange things happening once you put in de...

circa 7 anni fa | 1

Risposto
How to use slider bars to view images from a dataset?
I didn't implement a case for the 0 position, so I just set the range limits from 1 to 100. %Load an example image a=imread('c...

circa 7 anni fa | 2

Risposto
how to have matlab give feedback if value in a table is outside of a given range
You mean with something like this? x = gallery('integerdata',10,[5,1],2); y = gallery('integerdata',10,[5,1],8); A = table(x,...

circa 7 anni fa | 0

| accettato

Risposto
How to fix a program that does not end?
You are increasing your loop variable inside the loop: l=l+1; Is that intentional? What are you trying to achieve there? That ...

circa 7 anni fa | 0

Risposto
If else problem for year
You can do this two ways: Option 1 is to do the actual work. Is the input correct? Does the month entered actually have at leas...

circa 7 anni fa | 1

Risposto
Select 100 points either side from mouse click cooradinates
Use the x-coordinate returned by getpts to select the data. x=linspace(0,10,1000); %generate a smooth random curve y=sin(x)+p...

circa 7 anni fa | 0

Risposto
Problem in coordinate conversion
This behavior is as documented. The result is in the [-pi pi] radians range. If you want to have your angles in the range [0 360...

circa 7 anni fa | 0

Risposto
There is a mistake with such expressions as mod(23^12,24). MATLAB gives an answer of 0 which, given that 23 and 24 are relative primes,
The number you're trying to process is larger than flintmax(), so you can rely on single digit precision operations.

circa 7 anni fa | 0

Risposto
Is there an equivalent function in Matlab 2019 to the earlier version's isunicode function?
The isunicode function may look promissing, but doesn't actually work on my test files (generated with Notepad++). The same prob...

circa 7 anni fa | 1

Risposto
How replace matching string
Because your second and third condition can be merged, you can use ismember: data={'Pass','Pass{overflow :1,unbound:5,warning:9...

circa 7 anni fa | 1

Carica altro