Community Profile

photo

Ben11


Université Laval

Last seen: 대략 3년 전 2014년부터 활동

I'm interested in microscopy, neuroscience and image processing.
Professional Interests: microscopy, image processing

통계

  • 6 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 4
  • First Answer

배지 보기

Content Feed

보기 기준

답변 있음
How to generate surface of fixed width from know coordintes of curve and add pixel covered by the surface
This should do it: clear clc close all %// Define x and y to plot curve x=-10:10; y=-x.^2; %// Bu...

거의 9년 전 | 0

답변 있음
MATLAB R2014A - Undo/Redo buttons
Just to complement Sean's answer, they are supposed to be at the top right corner of the window right aside the search box. H...

9년 초과 전 | 13

답변 있음
How do i convert an image plot to a matrix.
Maybe I misunderstood but you might want to use getframe and get the cdata property: Example: x = -10:10; y = x.^2; ...

9년 초과 전 | 0

답변 있음
Please help me make this easy plot work
Please format your code in the question. The error occurs because MATLAB does not recognize 3t as an expression. You need to ...

9년 초과 전 | 0

답변 있음
Problem merging two images
This will work: clc clear close all I = imread('peppers.png'); [height, width,Channels] = size(I) bl...

9년 초과 전 | 1

| 수락됨

답변 있음
i have an output of the following code...but i need to do haar wavelet transform of that output.PLEASE HELP ME IN CODING
You can use <http://www.mathworks.com/matlabcentral/fileexchange/40661-haar-wavelet-transform this> submission from the File Exc...

9년 초과 전 | 0

| 수락됨

답변 있음
How do I show relative frequency on histogram?
The relative frequency is supposed to show up on the y-axis... what about this: clear all data= 10*rand(1,1000); ...

9년 초과 전 | 0

답변 있음
mcc compiled executable didn't work!!
I think that's because, as trivial as it may sound, the disp command is used to display stuff in the Command Window, which is no...

9년 초과 전 | 0

답변 있음
imfinfo unable to open a file
It looks like you try to open a directory instead of an image. I tried your syntax and got the same error. What if you try so...

9년 초과 전 | 1

답변 있음
In the program below, the loop stops at theta(4). It will be a great help if you can please help me to rectify the error.
Initialize your array theta and change the upper limit of your for loop like so: theta = zeros(1,30); theta(1)= inpu...

9년 초과 전 | 1

| 수락됨

답변 있음
Read value from a graph
Not sure to understand how you would like to 'enter' the value of x, but here is a very simple example: User_x = inputdlg('...

9년 초과 전 | 1

답변 있음
how to draw a horizontal line at 63% of process curve, and vertical line to intersection of process curve, on a plot?
Add these lines after your call to plot: line([0 10],[15.75 15.75],'Color','k','LineWidth',2) % Horizontal line line([10...

9년 초과 전 | 0

| 수락됨

답변 있음
Passing data between axes
You can: 1) Create a dummy original image and store it in the handles structure of your GUI. handles.DummyImage = Ori...

9년 초과 전 | 1

| 수락됨

답변 있음
How to check in which step MATALB code is running?
You might also want to look into <http://www.mathworks.com/help/matlab/ref/dbstack.html dbstack>, which tells you the actual lin...

9년 초과 전 | 0

답변 있음
i got an error as Warning: Ignoring extra legend entries
What if you use: legend([h1(1);h2(1);h3(1)],'f1=30','f2=120','f3=400','fontsize',10); Just an idea; h1, h2 and h3 might ...

9년 초과 전 | 0

| 수락됨

답변 있음
Help with edit text GUI
At the beginning of this button's callback, use something like this: set(handles.edit3,'String','') which displays an em...

9년 초과 전 | 0

| 수락됨

답변 있음
What's the best format to export figure?
Look at the <http://www.mathworks.com/help/matlab/ref/print.html print> function, with which you can export figures in eps or pd...

9년 초과 전 | 0

답변 있음
how to change the font size in a plot (only for the axes numbers)?
Use the 'FontSize' property of the current axes: set(gca,'FontSize',20)

9년 초과 전 | 9

| 수락됨

답변 있음
How to extract the value pixel values from an image or masked image?
You can get the histogram of pixel values using <http://www.mathworks.com/help/images/ref/imhist.html imhist>. For example: ...

9년 초과 전 | 0

답변 있음
help with for statement
Adding an index to Pfwm and m might do the trick; with an alpha of 0.5 (arbitrary value) it did not give an error when I tried i...

9년 초과 전 | 0

답변 있음
How can I get more tick marks/precision plotyy()'s y-axis using set() or simple method?
Yes you can set the Tick marks like this: set(gca,'XTick',Begin:Increment:End); so you can customize through the Increm...

9년 초과 전 | 3

답변 있음
display value in message box
You can use sprintf to format the message: Message = sprintf('The value selected is %d\n',a); h = msgbox(Message)

9년 초과 전 | 0

답변 있음
Matrix Dimensions must agree
You're missing a "." in your division: x = [0:0.01:10]; gx = 1-(2./x.^2); plot(x,gx); axis([-1,12,-1,12])

9년 초과 전 | 2

답변 있음
how to plot two graphs combined
Maybe something like this: x=linspace(0,1,50) g=10; A=0.33 M=0.125 s=(A-0.5)*M.*g-(A^2)/4; theta=s./(2...

9년 초과 전 | 0

| 수락됨

답변 있음
Problem with a conversion into avi file
You just need to convert sub_movie(:,:,k) to a double before exporting. For example: for k = 1:number writeVideo(wr...

9년 초과 전 | 1

| 수락됨

답변 있음
Bar Graph with varying widths
For your 2nd question: In order to change the bar colors, use findobj to get the patch objects forming the bars and change th...

9년 초과 전 | 0

| 수락됨

답변 있음
eigenvalues and orthonormal eigenvectors
Yes there is. Look at the <http://www.mathworks.com/help/matlab/ref/eig.html eig> function.

9년 초과 전 | 0

| 수락됨

답변 있음
How can I display image size, dimensions and color type in the GUI?
You can get the information about an image file using <http://www.mathworks.com/help/matlab/ref/imfinfo.html imfinfo>, which out...

9년 초과 전 | 3

| 수락됨

답변 있음
how can I concatenate cropped images from a folder?
Here is a bit of code to get you going. It creates a dialog title to allow the user to select the folder containing tiff files (...

9년 초과 전 | 1

답변 있음
Help with GUI callback - existence condition
You can check for the non-existence of a variable using this line: if ~exist('a','var') % Code else % ...

9년 초과 전 | 0

더 보기