Réponse apportée
comparison/checking without for loop
nneg = sum(a==-1); npos = sum(a==1);

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 2

| A accepté

Question


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

plus de 13 ans il y a | 2 réponses | 2

2

réponses

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

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 =...

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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 ...

presque 14 ans il y a | 0

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

presque 14 ans il y a | 0

Réponse apportée
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 ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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. =) ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

A résolu


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

presque 14 ans il y a

Réponse apportée
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...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
[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 ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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. ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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. ...

presque 14 ans il y a | 9

| A accepté

Réponse apportée
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, ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Charger plus