Risposto
How to chose the initial values for the coefficeints in nlinfit
The values of "a" known as beta in the functions help are the initial values that the model will use as parameters in your 'mode...

oltre 9 anni fa | 0

Risposto
How to plot a circular Image?
A couple of options for you: % First create an axes and some data: ax = axes; ang=0:0.01:2*pi; xp=1*cos(ang); yp=1*s...

oltre 9 anni fa | 0

Risposto
OpeningFcn with GUI NOT created by GUIDE
As joseph said - you dont need to. One way around it is to create your figure with visible set to off - call your own Openi...

oltre 9 anni fa | 0

| accettato

Risposto
unknown Array type (simple question)
Its a structure: type: verst.VV to see the contents...

oltre 9 anni fa | 0

| accettato

Risposto
Storing Integer Values in Matlab?
you loop is going from 1 to 10 in steps of 0.1 (which is allowed). However you are using your loop indicator is an index in...

oltre 9 anni fa | 0

Risposto
replace -28672 with NaN
You have answered your own question - your data type is a int16. A NaN is a double See: class(NaN) It is type double...

oltre 9 anni fa | 0

| accettato

Risposto
regexp(a,exp) related question.
you could use strfind to find the end of the html string, then parse the end of the string to get the Country.

oltre 9 anni fa | 0

Risposto
create a totally black screen
on windows try this <http://www.mathworks.co.uk/matlabcentral/fileexchange/31437-windowapi FEX>

oltre 9 anni fa | 0

Risposto
Making a new matrix of an existing matrix with the values in reverse order
help fliplr

oltre 9 anni fa | 0

| accettato

Risposto
GUI - What is the best language to make a commercial version?
Matlab can be standalone - as many others have said if you have the compiler. If you are going to redesign your GUI you consi...

oltre 9 anni fa | 2

Risposto
GUI Resize - region of interest???
I'm not clear about the actual question but the position vector defined as: [bottomLeft topRight width height] so are you...

oltre 9 anni fa | 0

| accettato

Risposto
GUI profiler: slowest at FileOpenChooser.doShowDialog
This could be misleading as the time (FileOpenChooser.doShowDialog) also covers the time it takes the user to select the file an...

oltre 9 anni fa | 0

Risposto
how to enter a vector in edit text, GUI
A few places to look: help strread help str2num help textscan There are many ways to do what your looking for. ...

oltre 9 anni fa | 0

Risposto
Replacing values in a column vector.
Your dealing with a matrix - which I assume contains numeric data, so look up the help and examples for *find* and ideally *logi...

oltre 9 anni fa | 1

Risposto
Should I encrypt my files before compilation?
No there is no need to encrypt your mfiles before compiling to an exe.

oltre 9 anni fa | 0

| accettato

Risposto
creating callback for each string of a popupmenu in GUI
Create a single callback for the popupmenu then switch inside that callback based on which string is selected, i.e. function...

oltre 9 anni fa | 0

Risposto
How can I remove Input Variable Not Used Warning?
right click on the function statement line (1) and select the "Suppress "input argument.... " On this line. i.e. you will...

oltre 9 anni fa | 1

| accettato

Risposto
Error: Bad property value for color- why?
It looks like you are passing a *string* into the color command and not the RGB value: i.e. you are doing: plot([ xx flip...

oltre 9 anni fa | 0

| accettato

Risposto
Remove for-loop by using cellfun
Create the dynamic variables inside a struct instead of using eval var_name = {'A','B','C'}; for i=1:length(var_name) m...

oltre 9 anni fa | 0

Risposto
How can i space out my code and interact with the prompt?
To input data from the command prompt use: help input To pause a function you can use: help keyboard You might a...

oltre 9 anni fa | 0

| accettato

Risposto
arrayfun once with 4 variables, or twice with 2 in each, then mult. Why do these two approaches give different solutions?
Your calculations are not the same, in the second method you have: sin(x.*(r*pi/L_x)) sin(y.*(s*pi/L_y)) in the first y...

oltre 9 anni fa | 0

| accettato

Risposto
how to compare two structures
This <http://www.mathworks.co.uk/matlabcentral/fileexchange/46165-comparevars FEX submission> should do what you want. Regard...

oltre 9 anni fa | 0

Risposto
How can I find the largest number
you need to use == for comparison, i.e. if d1==max([d1,d2,d3)] etc...

oltre 9 anni fa | 0

Risposto
Explanation of this statement
Looking at the code, unless sum is an overloaded function that does something other than the standard inbuild sum - it looks red...

oltre 9 anni fa | 0

Risposto
increasing precison of num2str for dlmcell function.
*edit* So its not a display format issue, looking at the help for str2num you can see that it indicates that you can specify ...

oltre 9 anni fa | 0

| accettato

Risposto
Error using ==> dicominfo in standalone exe
You dont need pwd as a global. Did you add the dicom libraries when you compiled your code? if you think the filename is a...

quasi 10 anni fa | 0

| accettato

Risposto
How can I draw a arrow
See <http://www.mathworks.co.uk/help/matlab/ref/annotation.html annotation> for drawing arrows.

quasi 10 anni fa | 1

Risposto
howto multiline error msg
error('ErrorTAG:TagName', strcat ( 'very long error msg ', ... 'bla bla bla') )

circa 10 anni fa | 0

Risposto
Displaying a figure with specified properties
or set ( figure_test, 'visible', 'on' )

circa 10 anni fa | 0

Risposto
How can I add text to a plot?
Is text a variable in your workspace? Type: whos text In the command line to check. clear text To clear the...

circa 10 anni fa | 0

| accettato

Carica altro