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

mehr als 13 Jahre vor | 1

| akzeptiert

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

mehr als 13 Jahre vor | 0

| akzeptiert

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

mehr als 13 Jahre vor | 2

| akzeptiert

Frage


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

mehr als 13 Jahre vor | 2 Antworten | 2

2

Antworten

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

Beantwortet
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. =) ...

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

Gelöst


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

fast 14 Jahre vor

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 9

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

| akzeptiert

Mehr laden