Risposto
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); ...

oltre 8 anni fa | 0

| accettato

Risposto
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 ...

oltre 8 anni fa | 0

| accettato

Domanda


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...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Risposto
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...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

Risposto
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. ...

oltre 8 anni fa | 1

| accettato

Risposto
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 ...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 1

Risposto
"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 '...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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 ...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 3

| accettato

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 2

| accettato

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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|.

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 2

Risposto
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...

oltre 8 anni fa | 3

Risposto
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...

oltre 8 anni fa | 2

Risposto
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)...

oltre 8 anni fa | 0

Risposto
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 ...

oltre 8 anni fa | 1

| accettato

Risposto
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=...

oltre 8 anni fa | 0

| accettato

Carica altro