Answered

convert image pixels to binary file

If you mean you want to convert the image intensity values to an actual binary representation you might want to look at: https:...

convert image pixels to binary file

If you mean you want to convert the image intensity values to an actual binary representation you might want to look at: https:...

3 months ago | 0

Answered

How to stop the subplot at different time loop

By time do you just mean loops? Like this: figure for i = 1:20 x = rand(100,1); if i==1 subplot(1,2,1) ...

How to stop the subplot at different time loop

By time do you just mean loops? Like this: figure for i = 1:20 x = rand(100,1); if i==1 subplot(1,2,1) ...

3 months ago | 0

Answered

"Find and Replace" in Matlab Editor

I don't think this is a feature in Matlab's find & replace utility. You could write your own code to do this though - just open...

"Find and Replace" in Matlab Editor

I don't think this is a feature in Matlab's find & replace utility. You could write your own code to do this though - just open...

3 months ago | 0

| accepted

Answered

How to change several text parts in legend to be bold and colored and unchange others?

What is wrong specifically with using the tex interpreter?: figure plot(rand(10,1),rand(10,1),'ko',rand(10,1),rand(10,1),'ro',...

How to change several text parts in legend to be bold and colored and unchange others?

What is wrong specifically with using the tex interpreter?: figure plot(rand(10,1),rand(10,1),'ko',rand(10,1),rand(10,1),'ro',...

3 months ago | 2

| accepted

Answered

Transformation of matrix indices in polar coordinates - quicker way

You can just pass all of the indices to cart2pol as vectors: mat = rand(120,100); cent = size(mat)./2; [rr,cc] = meshgrid(1:s...

Transformation of matrix indices in polar coordinates - quicker way

You can just pass all of the indices to cart2pol as vectors: mat = rand(120,100); cent = size(mat)./2; [rr,cc] = meshgrid(1:s...

3 months ago | 1

| accepted

Answered

Users not getting License from Assigned group

This is a question for Mathworks support: https://uk.mathworks.com/support/contact_us.html?s_tid=sp_ban_cs

Users not getting License from Assigned group

This is a question for Mathworks support: https://uk.mathworks.com/support/contact_us.html?s_tid=sp_ban_cs

3 months ago | 0

Answered

how to create convex hull from white pixels

You can use bwlabel to label parts of a binary image, but your line is broken so you will have to dilate the image first to make...

how to create convex hull from white pixels

You can use bwlabel to label parts of a binary image, but your line is broken so you will have to dilate the image first to make...

3 months ago | 0

Answered

I Want to find stable output of transfer function using oid but the comment is '??? Undefined function or variable 'pid'.'

You want to use the function 'pid': https://uk.mathworks.com/help/control/ref/pid.html but you get an error? Did you check th...

I Want to find stable output of transfer function using oid but the comment is '??? Undefined function or variable 'pid'.'

You want to use the function 'pid': https://uk.mathworks.com/help/control/ref/pid.html but you get an error? Did you check th...

3 months ago | 0

Answered

How to set colorbar tick labels between ticks

Does it matter if the ticks are moved as well? figure('Position',[200 200 1000 200]) plot(0,0) cc = colorbar('Location','Sout...

How to set colorbar tick labels between ticks

Does it matter if the ticks are moved as well? figure('Position',[200 200 1000 200]) plot(0,0) cc = colorbar('Location','Sout...

3 months ago | 0

| accepted

Answered

Infil NaN for missing years in time series

If you don't mind converting your data to tables you can use outerjoin: A = [1981 0.79 1.56 0.90 1.15; 1982 0.62 0.83 0.84 0.7...

Infil NaN for missing years in time series

If you don't mind converting your data to tables you can use outerjoin: A = [1981 0.79 1.56 0.90 1.15; 1982 0.62 0.83 0.84 0.7...

3 months ago | 0

| accepted

Answered

plotting 2D data with respect to a third property

Can you be more specific about what is wrong with scatter? x = rand(100,1); y = rand(100,1); z = rand(100,1); figure scat...

plotting 2D data with respect to a third property

Can you be more specific about what is wrong with scatter? x = rand(100,1); y = rand(100,1); z = rand(100,1); figure scat...

3 months ago | 0

| accepted

Answered

Replacing missing data with the previous data in a column

You are making cell arrays in your question by using curly {} brackets. I'm going to assume this is a mistake because you call t...

Replacing missing data with the previous data in a column

You are making cell arrays in your question by using curly {} brackets. I'm going to assume this is a mistake because you call t...

3 months ago | 0

Answered

Looping within a structure

What are the values stored in point1.struct? Is your question about accessing fields of the table generally? If so you should l...

Looping within a structure

What are the values stored in point1.struct? Is your question about accessing fields of the table generally? If so you should l...

3 months ago | 0

Answered

Different conditions, matching values

I don't really see how the output you give represents what you described in the question, or what you mean by "that calculatio...

Different conditions, matching values

I don't really see how the output you give represents what you described in the question, or what you mean by "that calculatio...

3 months ago | 0

Answered

could anyone help me to solve the issue

Its sounds like your question is: Each row can only have maximum 3 numbers greater than zero and each row must have these maxim...

could anyone help me to solve the issue

Its sounds like your question is: Each row can only have maximum 3 numbers greater than zero and each row must have these maxim...

3 months ago | 0

Answered

Error using horzcat in linprog

It's hard to read your answer, please look at this first next time: https://uk.mathworks.com/matlabcentral/answers/6200-tutoria...

Error using horzcat in linprog

It's hard to read your answer, please look at this first next time: https://uk.mathworks.com/matlabcentral/answers/6200-tutoria...

3 months ago | 0

Answered

How to generate random numbers from the Weibull-Gamma distribution ?

I'm not really familiar with the Weibull-Gamma distribution, do you mean the Gamma-Weibull distribution? Or do you mean you wa...

How to generate random numbers from the Weibull-Gamma distribution ?

I'm not really familiar with the Weibull-Gamma distribution, do you mean the Gamma-Weibull distribution? Or do you mean you wa...

3 months ago | 0

| accepted

Answered

Index out of bounds error but cannot see why variable isn't generating properly.

This is really hard to debug without the actual code (generally posting the actual code is far more helpful than posting images ...

Index out of bounds error but cannot see why variable isn't generating properly.

This is really hard to debug without the actual code (generally posting the actual code is far more helpful than posting images ...

3 months ago | 0

Answered

Does anyone knows an Answer to this question?

Well let's think about it a little, in Matlab the multiplication sign (i.e. 5 x 5 = 25) is represented by an asterisk (*). Gener...

Does anyone knows an Answer to this question?

Well let's think about it a little, in Matlab the multiplication sign (i.e. 5 x 5 = 25) is represented by an asterisk (*). Gener...

3 months ago | 1

| accepted

Answered

How to eliminate the jaggedness of the picture drawn by Matlab

The jaggedness is called aliasing and it happens when in image, shape or function is downsampled, for instance when an exact fun...

How to eliminate the jaggedness of the picture drawn by Matlab

The jaggedness is called aliasing and it happens when in image, shape or function is downsampled, for instance when an exact fun...

3 months ago | 1

| accepted

Answered

Help with creating clustering

I think the biggest problem here is that you have very few data points. Have you tried looking at the various options on this p...

Help with creating clustering

I think the biggest problem here is that you have very few data points. Have you tried looking at the various options on this p...

3 months ago | 0

| accepted

Answered

Cant change the background using image segmentaton

This image looks like a real nightmare for edge detection etc and I don't know if you are really every going to get something sa...

Cant change the background using image segmentaton

This image looks like a real nightmare for edge detection etc and I don't know if you are really every going to get something sa...

3 months ago | 0

Answered

Cropping image with Bounding Box

What sort of image is 'IMG_1800.jpg'? Because regionprops expects a logical or labelled image as the first input. If your imag...

Cropping image with Bounding Box

What sort of image is 'IMG_1800.jpg'? Because regionprops expects a logical or labelled image as the first input. If your imag...

3 months ago | 0

Answered

How to trace (detect) the boundary changing under compression?

It seems like you have 3 regions; a light background a darker inner ring and then a really dark core. You want to detect the in...

How to trace (detect) the boundary changing under compression?

It seems like you have 3 regions; a light background a darker inner ring and then a really dark core. You want to detect the in...

3 months ago | 0

Answered

Multiple Y variables in RealTime

If you mean that distance1 has too many elements to be plotted you could just downsample it - i.e. by taking every 10th or 100th...

Multiple Y variables in RealTime

If you mean that distance1 has too many elements to be plotted you could just downsample it - i.e. by taking every 10th or 100th...

3 months ago | 0

Answered

Refreshdata slowing down unrelated plots/functions

I'm not really familiar with uicontrols, but you could try clearing your axes when they are updated. i.e. function update_plot...

Refreshdata slowing down unrelated plots/functions

I'm not really familiar with uicontrols, but you could try clearing your axes when they are updated. i.e. function update_plot...

3 months ago | 0

Answered

Error of subscript indices must either be real positive integer or logicals.

Run this command at the command line: dbstop if error When you get your error Matlab will point you to a specific line, go the...

Error of subscript indices must either be real positive integer or logicals.

Run this command at the command line: dbstop if error When you get your error Matlab will point you to a specific line, go the...

3 months ago | 1

Answered

SSIM between grey-scale images

Can you check by typing 'ver' in the matlab command window and telling us what shows up? Also can you type 'which ssim' in the ...

SSIM between grey-scale images

Can you check by typing 'ver' in the matlab command window and telling us what shows up? Also can you type 'which ssim' in the ...

3 months ago | 0

Answered

How to change the date form in the figure from default to yyyy-MM-dd

I don't know about the Chinese system language, so I would probably suggest getting the date in whatever format you want using d...

How to change the date form in the figure from default to yyyy-MM-dd

I don't know about the Chinese system language, so I would probably suggest getting the date in whatever format you want using d...

3 months ago | 0

Answered

Calculating moving average of a 3D matrix

I don't quite understand what you want, you have a 3D matrix which is 412x314x200 and you want to get a 1x200 vector where each ...

Calculating moving average of a 3D matrix

I don't quite understand what you want, you have a 3D matrix which is 412x314x200 and you want to get a 1x200 vector where each ...

3 months ago | 0

| accepted