Respondida
comparison/checking without for loop
nneg = sum(a==-1); npos = sum(a==1);

más de 13 años hace | 1

| aceptada

Respondida
Evaluate parameters in matlab
Presumably you have a formula that calculates flow, given all the other parameters. I am guessing that you have wrapped this in...

más de 13 años hace | 0

| aceptada

Respondida
Change default figure properties?
I don't know if there's a way to change the defaults, but you'll save a lot of work if you create a function to apply your 'defa...

más de 13 años hace | 2

| aceptada

Pregunta


Correct way to test if a value is a function?
I'm using the following test to check if a value is a function (standard or anonymous): if isa(value, 'function_handle') ...

más de 13 años hace | 2 respuestas | 2

2

respuestas

Respondida
how to test if toolbox exists?
Try this: v = ver; has_fsolve = any(strcmp(cellstr(char(v.Name)), 'Optimization Toolbox')); Or more specifically: ...

más de 13 años hace | 0

Respondida
How to edit mplay GUI?
I don't have that function in my installation, but is it called |mplay|? If so, just enter this in the command window: edi...

más de 13 años hace | 0

Respondida
finding turning points of a dataset
You can use |diff| or |gradient|. Decide what minimum rate of change is acceptable: tolerance = 1e-4; And then to fin...

más de 13 años hace | 0

| aceptada

Respondida
Subscripted assignment dimension mismatch
Enter the command: dbstop if error Now run your script and wait for it to break. Then, in the command window, execute...

más de 13 años hace | 0

Respondida
how to efficiently find the indices?
This comes straight out of some of my own code... I guess it's the reverse of what you want though. uM = unique(M); I =...

más de 13 años hace | 0

Respondida
Matlab Database Toolbox
Please don't be frightened of coding an SQL join. Look: SELECT <fields> FROM <table1> JOIN <table2> ON <table1.k...

más de 13 años hace | 1

| aceptada

Respondida
Thresholds for a thermal image
My advice is to start with the simplest approach and run with it until you can't go any further. THEN look at the more complex ...

más de 13 años hace | 0

Respondida
hyperthreading question
I'd like to see the results if you expand your operation to something that takes about 10 minutes. And do it with the utter min...

más de 13 años hace | 1

Respondida
how to plot curved fitting but the value of x and y must be key in by the user at the command window.
Do you mean that you are experiencing this: > x = input('x? ') x? 249 191 150 139 130 123 249 191 150 139 130 123 ...

más de 13 años hace | 0

Respondida
rescale histogram
Still not sure I understand your motive completely... But it seems like you have this situation: data = rand(100,1); ...

más de 13 años hace | 0

Respondida
Licensing: Parallel Computing Toolbox labs vs independent MATLAB sessions
Coming from a different programming background I would intuitively say that with parallelisation you can work concurrently with ...

más de 13 años hace | 0

Respondida
This Crosstalk Cancellation Function kills my computer!
I wouldn't be surprised if iTunes takes your computer down. Have you tried plotting the waveform in MatLab? Does it look sen...

más de 13 años hace | 0

Respondida
Making lines between data points smoother.
Perhaps you're looking for something like |spline|. I believe the entire notion of splines was invented by a boat-builder. =) ...

más de 13 años hace | 0

Respondida
Error Message: ??? Undefined function or method 'SimpleSurround' for input arguments of type 'char'.
1. Your function must be stored in a file called |SimpleSurround.m|. 2. That file must be in a directory that is on the MatLa...

más de 13 años hace | 0

Resuelto


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

más de 13 años hace

Respondida
why fgetl read spaces?
I guess my heart is still in C... I love regexp, but if all I wanted to do was read integers (not strings), I'd do this after re...

más de 13 años hace | 1

| aceptada

Respondida
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Lower the reputation required to obtain some kind of 'editor' status. At least to the point where obvious contributors can fix ...

más de 13 años hace | 0

Respondida
insert Image into MS SQL Database
Your question confuses me a little. Do you modify the image using plots etc in the axis control, or is the whole mention of the...

más de 13 años hace | 0

| aceptada

Respondida
Motion Tracking in original video(avi)
Okay, a quick skim over the code and it looks like your tracking algorithm works by thresholding a greyscale difference-image. ...

más de 13 años hace | 0

| aceptada

Respondida
Need help/ideas solving a problem
You can have a go at using simple function minimisation: best fit Start with a vector that represents all your shape characte...

más de 13 años hace | 1

Respondida
How to extract all variable names returned by Simulink.findVars?
Do you mean you have tried: disp(char(allVars(:).Name)); That would pad each name with spaces due to conversion to a cha...

más de 13 años hace | 1

| aceptada

Respondida
Opening an GUI real time
You should also have an m-file associated with these figures. I will assume that you created these GUIs using GUIDE. To invo...

más de 13 años hace | 0

| aceptada

Respondida
Reverse the colorbar axis
The call to |colorbar| returns a handle. There's lots of options in there to set, and you'll find the one you wanted, too. ...

más de 13 años hace | 9

| aceptada

Respondida
Graphing in Cylindrical Coordinates using MATLAB
Advice is to make a start and show us what you have done so far. Here is my primer: r = 0:0.1:1; theta = linspace(0, ...

más de 13 años hace | 0

| aceptada

Respondida
Multidimensional Indices of Multiple pages
You could use linear indexing if you convert each row/column into a page start index, then take the page range.... g1 = r...

más de 13 años hace | 1

Respondida
Matlab display
In the top-right of the window (in the menu bar) you should see a little curved arrow pointing down and right. Click that and i...

más de 13 años hace | 0

| aceptada

Cargar más