Statistics
RANK
1 190
of 295 467
REPUTATION
60
CONTRIBUTIONS
1 Question
32 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
4
RANK
13 055 of 20 234
REPUTATION
23
AVERAGE RATING
0.00
CONTRIBUTIONS
1 File
DOWNLOADS
1
ALL TIME DOWNLOADS
237
RANK
of 153 912
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
how can I get that the thikness of one slice of a CT image is measured at the milimeter level?
Read tags only, not the image: info = dicominfo('filename.dcm'); Get slice thickness in mm: info.SliceThickness
mer än 9 år ago | 0
Events in edit component
The standard "Callback". It has no other name. To set it, right-click in *GUIDE - View Callbacks - Callback*
mer än 9 år ago | 0
| accepted
Make directories for every subject
subjects = [1:18, 20:23, 25:35]; pathprefix = 'PPI_S'; for s = 1:numel(subjects) subj = subjects(s); ...
mer än 9 år ago | 0
| accepted
how to replace a matrix element by the avearage of its surrounding elements
A=[ ... 1 2 3 ; ... 4 5 6 ; ... 7 8 9]; kernel = [ ... 1 1 1; ... 1 0 1 ; ... 1 1 1]; nei...
mer än 9 år ago | 0
function handle and Subfunction in the command window
Hi, the file *myfun1.m* contains two functions, one is the main function *myfun1* , the other is a _local_ function and can n...
mer än 10 år ago | 0
| accepted
Change automatically colors and line style
Yes it's possible. Check the predefined colormaps here: <http://www.mathworks.se/help/matlab/ref/colormap.html Matlab colorma...
mer än 10 år ago | 1
hi .i am browsing image file from source and i want to check accuracy with input image .how to match both image
doc imread <http://www.mathworks.se/company/newsletters/articles/matrix-indexing-in-matlab.html Matrix indexing>
mer än 10 år ago | 0
How to make nice plots?
You can use the hidden LineSmoothing property. Something like this: a = [1.23, 2.34, 5.55, 7, 13.21, 15.66, 18, 20] x = ...
mer än 10 år ago | 0
overwrite matrix A with matrix B (which has another size)
matrix_b = [zeros(1,57) matrix_a]; clear matrix_a matrix_a = matrix_b;
mer än 10 år ago | 0
| accepted
Tools for bi- multiple exponential decay of a MRI pixel
If you want another model, simply change this line g = fittype('a0*exp(-x/t2)','coefficients',{'a0','t2'}); to something...
mer än 10 år ago | 0
command history, update from R2013a to R2014a
New versions are installed in a separate folder in C:\Program Files\MATLAB\ so you should be able to start R2013a from C:\Progra...
mer än 10 år ago | 0
| accepted
Error using .* Matrix dimensions must agree.
Transpose *win* X=[X ; fft(x1.*win')] and append *x* correctly: x=[x ; zeros(z,1)];
mer än 10 år ago | 2
| accepted
"Size inputs must be scalar".
Here is one problem: T = [1000 10000 100000] uexac = zeros(T+1,X+1); T is a vector. *zeros(m,n)* creates ...
mer än 10 år ago | 1
Plot of binary data
If you want to show each value in binary for 50 seconds binary =[1 1 0 1 0 0 1 0]; figure; for idx = 1 : length(b...
mer än 10 år ago | 0
| accepted
Tools for bi- multiple exponential decay of a MRI pixel
use *fittype* to create your fittype object, and pass that to the *fit* command. Something like this g = fittype('a0*exp(...
mer än 10 år ago | 0
Remove duplicates from array for landmark sequence generation
perms(x(2:end-1)) gives you all paths. Add ones and sixes with [repmat(1,factorial(4),1) perms(x(2:end-1)) repmat(6,fa...
mer än 10 år ago | 0
How to compare the index of first 12 values with the next set of 12 values?
Assuming *handles.GEN.kWhprice* is a structure with two fields, one for last year and one for this: if ~all(handles.GEN.kWhp...
mer än 10 år ago | 0
Convert a GUI into a .exe,but it is very big!
Are you using other functions that are very big, or have embedded the Matlab Component Runtime? Try depfun('a.m') to se...
mer än 10 år ago | 0
Checking variables are valid for a set of conditions.
You have got *AND* mixed up with *OR* . *N<1 AND N>8000* can never be true. You should use *OR* instead. *OR* is *|*
mer än 10 år ago | 0
| accepted
how to use fourier transform to analyze time series data?
Hi, your question is not very clear but look up the *fft* command
mer än 10 år ago | 0
how can I see what has been entered in the GUI1 and / or when I get back from the selected GUI2
Hi, If I understand this correctly, in some callback in GUI1, you are calling GUI2 and closing GUI1? You want to pass on para...
mer än 10 år ago | 0
How to connect six scripts of matlab??
I would suggest you turn your scripts into functions and create a script that calls the functions. If that's not possible, y...
mer än 10 år ago | 0
| accepted
Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a(4:-1:1, 3:-1:1)=0 results in
*b* a 4x3 matrix of zeros
mer än 10 år ago | 0
| accepted
what is the best function to comper between images
It depends on what you want to compare. *imshowpair* is probably a good start
mer än 10 år ago | 0
| accepted
Masking dicom multiple files with same mask
Hi, you should load all your dicom files into a 3D matrix. Then, make your mask 3D using repmat. Your code should look someth...
mer än 10 år ago | 0
| accepted
Drawing a rectangle with special specifications
figure; axes('XLim', [-50 200],'YLim', [-50 200]); line([0 172],[172 172],'LineWidth',5,'Color',[0 0 0]) line([17...
mer än 10 år ago | 0
How to use a vector as input for a function?
From your question, you seem to get this error only when u is a vector and not when it is a scalar? It looks like the calc_fi...
mer än 10 år ago | 0
Is there a way to suppress command outputs to command window?
echo off
mer än 10 år ago | 0