Community Profile

photo

zhehao.nkd


Last seen: 7일 전 2021년부터 활동

통계

  • Knowledgeable Level 1
  • First Answer
  • Thankful Level 3

배지 보기

Content Feed

보기 기준

질문


How to add spacing between columns in a heatmap?
Hello, I'm looking for a way to add spacing between columns of a heatmap ( show each column separately with some distance). It s...

9개월 전 | 답변 수: 1 | 0

1

답변

질문


How to avoid omitting empty items while extracting part of a structure as an array?
For example, I have a structure s = struct; s(1).x = 1; s(1).name = 'John'; s(2).name = 'Sarah'; % Sarah has no x values...

대략 1년 전 | 답변 수: 1 | 0

1

답변

질문


How to horizontally merge cells of strings/chars for each row without writing a for-loop?
I have some m*n cells of char arrays, and the figure serves as an example for that. Is it possible to horizontally merge char ar...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to merge very close bins in histogram/hiscounts
I have such a histogram ( saved as the *.mat file and attached), and I would like to "shapren" it by merging counts from very cl...

1년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
How to combine two arrays
Try reshape([a;b],1,[])

1년 초과 전 | 0

질문


How to use imtile, montage or any other methods to concatenate images without affecting the resolution?
I would like to concatenate several figures, each with a different size, for example: 1010x25056x3 uint8 1515x24360x3 uint8 202...

1년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
How can I degug inside a parfor loop?
For those who are seeking for the solution, there is another possible option by using parfor and try-catch: parfor k = 1: len ...

1년 초과 전 | 0

질문


How to eliminate the elements in an array from another array when there are repeated elements in both arrays?
For example, A = [ 1,2,2,2,3,4]; B = [1,2,2,3]; What I expect is A eliminate elements from B ( 2 with exact the same number o...

거의 2년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to split binary cells and convert them to dec?
C{1} = {'0100101000101000'}; C{2} = {'0100101000101000'}; C{3} = {'0100101000101000'}; if C is your original cell, then: cel...

대략 2년 전 | 0

| 수락됨

답변 있음
How to fix the mapping between colors and values?
I found out the solution by using caxis manual caxis([0,3]); But the prerequisite is that the values should be linearlly dis...

대략 2년 전 | 0

| 수락됨

질문


How to fix the mapping between colors and values?
I have a few matrices containing different integers, and I know all the possible intergers which can be found within these matr...

대략 2년 전 | 답변 수: 2 | 0

2

답변

질문


How to terminate drawline() with a buttonPushedCallback?
I would like to repeat the drawline command for selecting multiple ROIs in a figure axes, and I hope to stop the while-loop afte...

거의 3년 전 | 답변 수: 1 | 0

1

답변

질문


Why readtable() function cannot read an xlsx file properly?
I have an xlsx file with multiple sheets, and each sheet have 558 rows of data. To read data from a single sheet (e.g. the thir...

거의 3년 전 | 답변 수: 1 | 0

1

답변

질문


How to draw a high-contrast spectrogram?
Some software for sound analysis can draw spectrograms with higher contrast (backgrounds are almost zero). I was wondering what ...

거의 3년 전 | 답변 수: 2 | 1

2

답변

질문


How can I force the time-axis unit of spectrogram to be 'second(s)' ?
When I use the spectrogram function (https://www.mathworks.com/help/signal/ref/spectrogram.html) , I find that depends on the ti...

거의 3년 전 | 답변 수: 1 | 0

1

답변

질문


Trouble with parfor due to the way of indexing a cell
I tried to write the constructor for the Class Analysis I defined. One of its property e is a cell and each element of the cell ...

거의 3년 전 | 답변 수: 0 | 0

0

답변

질문


How to design a Class to apply operations for a collection of data?
For example, I have two collections of data, audio stimuli and neurons' response to these audios. What I need is to (1) calculat...

거의 3년 전 | 답변 수: 1 | 0

1

답변

질문


Is it possible to write methods that iteratively process each element of an objectarray without writing for-loops each time?
If I have such an objectarray: classdef ObjectArray properties Value end methods function obj = Objec...

거의 3년 전 | 답변 수: 1 | 0

1

답변