Community Profile

photo

DGM


Last seen: Today 2015 이후 활성

Hi, I'm nobody.
I don't belong here, but I have nothing better to do.
Matlab used to be part of my work.
Now it's part of my hobbies.
That's pretty sad, really.

Statistics

All
  • 6 Month Streak
  • Guiding Light
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 4
  • Explorer
  • Thankful Level 2
  • First Answer
  • Personal Best Downloads Level 3
  • First Review
  • First Submission

배지보기

Content Feed

보기 기준

답변 있음
How can I form a matrix of all possible values of three variables?
This is what I did off the top of my head v = [0.1 0.5 0.9]; k = 3; combs = unique(nchoosek(repmat(v,[1 k]),k),'rows') Thi...

약 12시간 전 | 0

| 수락됨

답변 있음
Maximum arrays of a matrix
If all you need to work on is a numeric vector, then W = [3 5 4 6 7 8 66 444 33 23 4]; Wmx = maxk(W,5) % R2017b or newer Note...

2일 전 | 0

| 수락됨

답변 있음
plots are not displaying with on double y-axis graph
Something like this: t = 1:10; P_sp = rand(1,10); P = rand(1,10); L_sp = rand(1,10); L = rand(1,10); hold on; % <-- this...

2일 전 | 1

| 수락됨

답변 있음
.PFM format in matlab
Imread does not support PFM. The HDR toolbox appears to have a utility to read PFM files: https://www.mathworks.com/matlabcent...

2일 전 | 0

답변 있음
How to get the original matrix back?
This should work at least for even sized arrays. I'm sure there are other ways. s = 8; % must be even A = reshape (1:s^2 ,s,s...

3일 전 | 1

| 수락됨

답변 있음
Write a well tabulated txt file
As @Benjamin suggests, you can use fixed field widths in your output. dataset_lin=importdata('dataset_lin.mat'); stepsize0...

4일 전 | 0

답변 있음
how to trace all the coordinates on the graph drawn by mouse pointer.
It depends what you mean by "drawn with the mouse". What are you using to draw with the mouse? If you have IPT, you can use im...

4일 전 | 0

답변 있음
Making an animation of pixels of same value appear in an image
Don't do this. Displays are for viewing. You're basically taking a screenshot of the image. If you want to save an image, jus...

4일 전 | 0

답변 있음
How to denoise an image
This isn't a median filter. It's an average filter, and it's working on some arbitrary vectorized section of the image. Applyi...

5일 전 | 0

답변 있음
How to solve for x give the equation of a circle and the equation of a line?
Consider the example of finding the intersection of a parabola and a circle. Note that this can all be done with the equations ...

5일 전 | 1

답변 있음
How to compare two columns of every row and display them?
Well, this is what I did. % PART 2 M = [1042 713 4 42; 30 48 0 12; 4 160 12 1; 1 111 2 0] extra = M(:, 4); sum3col = sum(M(:...

5일 전 | 0

| 수락됨

답변 있음
I'm getting this as error on 2nd line --> Index in position 2 exceeds array bounds (must not exceed 1).
The functional syntax for load behaves differently than the command syntax. Say you have a matfile containing arrays X,Y, and Z...

5일 전 | 0

답변 있음
how can i contour level control use with 'plot'
You can set the LevelList property x=[1200 1200 1200 1200 1100 1100 1100 1100 1000 1000 1000 1000 900 900 900 900]'; y=[-2 -1 ...

5일 전 | 0

| 수락됨

답변 있음
how to use ismember() to check if an inputted number exists in a matrix.
This might be a start: % read file as table, since a matrix can't hold both datatypes Data = readtable('NaiveBankData.csv'); ...

5일 전 | 0

| 수락됨

답변 있음
Comparing elements of cell arrays
Well, I bet there's a more elegant way than this, but this seems to work. p = {[12 11 13 9]}; % denotes a route with links 12-1...

5일 전 | 0

| 수락됨

답변 있음
How to write a video file without changing the pixel values?
As far as I know, no. Anyone is free to correct me on that. I don't know of any common formats for lossless video that use flo...

5일 전 | 1

답변 있음
image analysis to find pH strip and determine pH
Not knowing what any of the other images look like or what other colors need to be accomodated, it's kind of hard to make anythi...

6일 전 | 0

답변 있음
Illegal use of reserved keyword "else".
Start with function q_P = ParticularSolution (K,M,f_0,t,w_R,roadflag) Q = [-K,-w_R*M,w_R*M,-K]; % fix imbalanced brackets ...

6일 전 | 0

답변 있음
Creating a plot that changes colour as the month changes
I answered a very similar question yesterday, iirc. https://www.mathworks.com/matlabcentral/answers/1599669-for-loop-which-cha...

6일 전 | 1

| 수락됨

답변 있음
Converting RGB Image to Grayscale Intensity on arbitrary Colormap
Something like this might be a start: % you already found a colormap cmap = parula(64); % generate false-color test image ...

6일 전 | 0

답변 있음
Splitting a Colorbar into 12 parts according to months from data
If you're doing a line plot, it may make more sense to just use a legend. % the selected colormap cmap = jet(12); % dummy d...

6일 전 | 1

| 수락됨

답변 있음
Display L*A*B space channels separately
Lemme try that again... RGB = imread('peppers.png'); [L A B] = imsplit(rgb2lab(RGB)); Lfill = 50*ones(size(L)); % pick some...

6일 전 | 0

| 수락됨

답변 있음
Why I do not get the graphics as I want. It is not a code problem
You have to plot more than one data point. load DataRaval2.mat load TempRaval2.mat for k = 1:48:numel(TempRaval) ...

6일 전 | 1

| 수락됨

답변 있음
I have to combine 90 txt files in one txt file
This is a start. In this simplified example, there are three files, each with three lines. You might have to tweak the delimit...

6일 전 | 0

답변 있음
can someone please tell me how to colour the mark area A,B,C,D?
Something like this: x1=[0.8043 0]; y1=[0 0.0789]; x2=[0.8407 0]; y2=[0 0.0825]; x3=[0.8726 0]; y3=[0 0.0890]; x4=[0.1 0....

7일 전 | 1

답변 있음
Heatmap log colour scale: caxis() doesn't map values correctly?
You're expecting that caxis expects log10(limits). It's actually expecting the natural log. % Create log values and generate h...

7일 전 | 1

| 수락됨

답변 있음
How to display a 256x256 image from .mat file?
Almost had it. S = load('GrayScaleMRI.mat'); imshow(S.GrayScaleMRI) When using the functional syntax for load(), the output...

7일 전 | 0

| 수락됨

답변 있음
How can I plot xticklabels from a 3-column matrix?
You can try something like Adam's answer here: https://www.mathworks.com/matlabcentral/answers/101922-how-do-i-create-a-multi-l...

7일 전 | 1

| 수락됨

답변 있음
Trying to increase marker size in scatter plot caused my plot and data to be replaced by a blank blue screen.
You're dealing with 2D data, so ideally you'd be using 3 dimensions to visualize it. That said, there are only 2 unique values ...

7일 전 | 0

답변 있음
File Installation Key Freezes during install
The broken UI elements is a longstanding bug. https://www.mathworks.com/support/bugreports/1797911 https://www.mathworks.com...

7일 전 | 0

더로드