Risposto
how to combine several graph becoming one (different length)
I would advise two things: # Rethink your data structure. When there is a number in a variable name, that usually means a |ce...

quasi 9 anni fa | 0

Risposto
How to split the name in to two cells
Easy to solve with looping through the list from the end: for n=length(c):-1:1 idx=strfind(c{n},' '); if ~ise...

quasi 9 anni fa | 1

Risposto
How to use for loop inside switch case?
If you really insist on a |for|-loop, you can use curly brackets. Most times there will be a better solution for this, which wil...

quasi 9 anni fa | 0

Risposto
Creating a 50x50 3D matrix composed of 2x1 vectors
Have a read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answe...

quasi 9 anni fa | 0

Risposto
Callback Function for update plot with multiple functions
If that |k| should contain the value of the slider, make sure the slider exist before the first plot and the use |k=get(b,'Value...

quasi 9 anni fa | 0

Risposto
How to use for loop ?
Why insist on a loop? A(sub2ind(size(A), B(:), C(:))) = D(:); That should do the same thing. Edit: the difference bet...

quasi 9 anni fa | 0

Risposto
is there any expert person in matlab ( image processing) in Madrid?
Yes. My experience is that online tutorials, just trying and reading a lot on this forum helps a lot. If you really need a co...

quasi 9 anni fa | 0

Risposto
Printing string as a variable
If your |table| is called |mytable|, you can create a new column the same way as you can add a field to a struct: for i = 1...

quasi 9 anni fa | 0

| accettato

Risposto
problem of displaying the progress bar on a separate figure
Why go to the trouble of making something yourself when Matlab has a nice and ready solution for you: waitbar. It has been in Ma...

quasi 9 anni fa | 1

| accettato

Risposto
how calculate the size of image after compressed image
This was my first hit on Google for <https://www.mathworks.com/matlabcentral/answers/30937-determing-file-size file size Matlab>...

quasi 9 anni fa | 2

Risposto
How do I create a rectangle length=100, width=100 and divide into 100 equal blocks?
You probably want to do something with it, so I suspect this will not be help enough, but what you describe is trivial with the ...

quasi 9 anni fa | 0

Domanda


list of possible attributes in validateattributes
I have a function that accepts an nx2 or nx3 array. I want to have a robust method of checking my inputs, which is why I use |va...

quasi 9 anni fa | 0 risposte | 1

0

risposte

Risposto
How to use reshape
Assuming you want to change all 3rd dimension values to the vector f, this code should do what you want. for n=1:length(f) ...

quasi 9 anni fa | 0

| accettato

Risposto
How to load and separate value vectors from a matrix mat-file and turn them into graphs?
This is stuff that will be addressed in most tutorials, so I advise you to Google one. filename='C:\folder\file.mat'; S=...

quasi 9 anni fa | 1

Inviato


isHG2
Find out if the Matlab/Octave version running this code is HG1 or HG2.

quasi 9 anni fa | 2 download |

0.0 / 5

Risposto
How to generate grayscale from equation?
# Get the 800x800 coordinates with |meshgrid| # Convert the coordinates to polar coordinates wit |cart2pol| # Apply the formul...

quasi 9 anni fa | 0

Risposto
What kind of method should be used to stack 2D CT slices to get a 3D image?
MRI data can be discontinuous, but CT is almost always well-behaving, so you won't need interpolation. You do need to make certa...

quasi 9 anni fa | 0

| accettato

Risposto
Matlab as trading tool
Matlab is very flexible, so sure, it will be possible, at the very least with some external tools you control with Matlab. Matla...

quasi 9 anni fa | 0

Risposto
How can i get the output?
I'm going out on a limb here: I will assume your question is how to remove all rows where the first two values are non-unique. T...

quasi 9 anni fa | 0

Risposto
for loop count number of times logical matrix is true and store
If it is possible, you could use |sum|, specifying the dimension, but assuming that is not possible, you could write the loop as...

quasi 9 anni fa | 1

| accettato

Risposto
How does Iradon and radon work?
Dtheta shouldn't be just one angle. The theta you use in the |radon| function is the same you should use in |iradon|. For fut...

quasi 9 anni fa | 0

Risposto
Trying to speed up a circle machine
You can replace the first loop with this strategy: generate a |logical| the correct image size, set the center coordinates of ea...

quasi 9 anni fa | 0

Risposto
How to plot sin knowing amplitude
Try a tutorial on Matlab. This question is probably covered on most tutorials. upper_limit=1.4; lower_limit=0.3; amp=...

quasi 9 anni fa | 0

Risposto
GUI Compatibility Issues from Early 2000's Matlab script run on R2015a
Do you need to keep this code compatible with the early 2000's one? Because my doc for |uicontrol| suggests the syntax |c=uicont...

quasi 9 anni fa | 0

Risposto
I'm using imhist function why... one picture works imhist function and one doesn't? please tell me^^
You need to look at the documentation of a function that you use if you encounter an error. You either didn't read it, or you re...

quasi 9 anni fa | 0

Risposto
Switching a radio button back to last value
Just save the previous state to the guidata struct. You can easily load it like this: hObject=get(scr,'Parent'); handles...

quasi 9 anni fa | 0

Risposto
Script Within a Script - Return
use a second output for the inner function: %% SCRIPT_1 disp('Running Script 1'); Script_2 %% Call Script 2 if Re...

quasi 9 anni fa | 0

Risposto
Distance Between Points and a Line Segment in 3D
This problem can be tackled by separating the points in 3 parts. Let's define some distances for clarity: dsp is the distance be...

quasi 9 anni fa | 0

| accettato

Risposto
How to construct a big image from many images
This code replicates your sample picture. If this is the intention, I suspect the implementation of |repmat| is more efficient: ...

quasi 9 anni fa | 0

Risposto
Converting polar coordinates to X,Y,Z for 3d plots
Is there a reason that you can't use the built-in <https://www.mathworks.com/help/matlab/ref/pol2cart.html |pol2cart|>? If so, I...

quasi 9 anni fa | 0

Carica altro