Respondida
could anyone help me to solve the following issue
N_UE=10; unused_rows=1:N_UE; while ~isempty(unused_rows); N_UE_rows=2; if (N_UE_rows+1)==numel(unused_rows); ...

más de 8 años hace | 0

| aceptada

Respondida
Splitapply on a matrix of 1X1000
res = splitapply(@(x) sum(x,1), mat, G); This is about 10 times slower for |mat=rand(1,1000)|, but it forces the direction ...

más de 8 años hace | 0

| aceptada

Pregunta


How to shadow the built-in find function
A while ago I have written a FEX submission that extends the capabilities of |find| to also work for 3D and up: <https://www.mat...

más de 8 años hace | 1 respuesta | 0

1

respuesta

Respondida
matlab drive - how to improve
A I understand it, the main advantage for Matlab Drive is that you have access to your files in Matlab Online and their other cl...

más de 8 años hace | 1

Respondida
How to create a function of x for a given value of i
You should not do what you describe. Instead, you should learn the tool you are using. There are many good free Matlab crash cou...

más de 8 años hace | 0

Respondida
How can i fit the signal ?
You are looking for the <https://www.mathworks.com/help/releases/R2017b/matlab/ref/axis.html#inputarg_style |axis|> function. ...

más de 8 años hace | 1

| aceptada

Respondida
How can I show just some slices of a 3D matrix?
Have you tried to index them and use imshow? (so |imshow(A(:,:,50))|) You can use |subplot| to show the separate images side ...

más de 8 años hace | 1

Respondida
Is there a function in MATLAB that calculates the shortest distance from a point to a line?
You can modify the <https://www.mathworks.com/matlabcentral/answers/95608-is-there-a-function-in-matlab-that-calculates-the-shor...

más de 8 años hace | 1

Respondida
"hold on" equivalent in GUIDE
You should always specify the axes you want to affect, so you can use |hold(handles.ax,'on')|. GUIDE is just a shell around '...

más de 8 años hace | 1

Respondida
How to solve this error?
I = dicomread('C:\Users\Click Me\Desktop\NIELIT\images output\img.dcm'); info = dicominfo('C:\Users\Click Me\Desktop\NIELIT...

más de 8 años hace | 0

| aceptada

Respondida
How do you recognize an image of a graph?
Use <https://www.mathworks.com/help/releases/R2017b/images/ref/imopen.html |imopen|> (which is the same as <https://www.mathwo...

más de 8 años hace | 0

| aceptada

Respondida
how I can fix the error "size inputs must be scalar".?
The readability of your question is very poor. You can improve it a lot by selecting your code (when in edit mode), and pushing ...

más de 8 años hace | 1

| aceptada

Respondida
How do I Iterate over similar elements in an array
You can use <https://www.mathworks.com/help/releases/R2017b/matlab/ref/unique.html |unique|> to get the list of classes, and the...

más de 8 años hace | 0

| aceptada

Respondida
Why am I getting an error that matrices must agree?
The <https://www.mathworks.com/help/releases/R2017b/matlab/ref/input.html documentation> states the following str = input(p...

más de 8 años hace | 1

| aceptada

Respondida
Error evaluating sectioned code
As far as I can tell, there is no way to turn this off. See also <https://www.mathworks.com/matlabcentral/answers/364092-run-cod...

más de 8 años hace | 3

| aceptada

Respondida
Inserting zeroes where values of another matrix are missing
Create an empty vector with <https://www.mathworks.com/help/releases/R2017b/matlab/ref/zeros.html |zeros|> to contain the new |B...

más de 8 años hace | 0

Respondida
Loop a script and save each output as a new excel file
Use a loop. Replace all occurrences of "xlswrite('My_file.xls'" with "xlswrite(outputfilename" ext='.xlsx'; xl_file_l...

más de 8 años hace | 1

| aceptada

Respondida
Do calculations for lines that are true
If you have the Image Processing Toolbox, you can use <https://www.mathworks.com/help/releases/R2017b/images/ref/bwlabel.html |b...

más de 8 años hace | 0

Respondida
How to store output vector from optimizations from a foor loop iterating through a matrix(columnwise)?
You indeed need a correct counter to store your results in the matrix. The code below is an example of what you could do. g...

más de 8 años hace | 0

| aceptada

Respondida
How can i use regexprep to replace a variable length match with a string of the same variable length?
As you can find in the <https://www.mathworks.com/help/releases/R2017b/matlab/ref/regexprep.html#inputarg_replace |regexprep| do...

más de 8 años hace | 0

| aceptada

Respondida
How to find the coordinates of a circle
A circle has infinitely many points, but you of course you can approximate it with sufficient points. radius=3;%just an exa...

más de 8 años hace | 2

| aceptada

Respondida
How to plot time on the x-axis if it is from 09pm to 09am (over midnight)
If you explicitly supply a date, this will not happen. The |xtickformat| function was introduced in R2016b, so you might not hav...

más de 8 años hace | 1

| aceptada

Respondida
Need to solve e^x=3*x in tho ways
The roots of |f(x)=exp(x)-3*x| are the same as solving |exp(x)=3*x|.

más de 8 años hace | 0

| aceptada

Respondida
How can i remove the baseline from a plot like the attached image? Below is the code i have tried to use.
You do realize that a linear fit will not fit really well to your data and a second order fit will fit better? The code below...

más de 8 años hace | 0

| aceptada

Respondida
How I can create muli-frame DICOM from 3-D matrix
I didn't notice at first, but you supplied true as a string, so the syntax below should at least run without errors. dicomw...

más de 8 años hace | 2

Respondida
f(x) = e^x-3x matlab code
If you want to store intermediate result, us the |n| for indexing. Also, don't you mean |if abs(f(r(n)))<=tol|? Then you would a...

más de 8 años hace | 3

Respondida
how to calculate the distances between points coordinates and the arbitrary reference point using loops?
If |X| and |Y| contain the coordinates of your sample points, then the code below will give you the Euclidean distance between t...

más de 8 años hace | 2

Respondida
Why is Matlab and Simulink student suite R2017b not free to download?
Because The Mathworks is a commercial enterprise? Many universities buy a license for their students (total academic head-count)...

más de 8 años hace | 0

Respondida
Math operations incorrect GUIDE
|disp| is hiding the fact that |lx| actually contains a char. If you do |double('2')| you will see the result is 50. To fix you ...

más de 8 años hace | 1

| aceptada

Respondida
Not enough input arguments
You forgot to make the first input a function handle, using an @ character. The code below ran without errors for me. data=...

más de 8 años hace | 0

| aceptada

Cargar más