已回答
How to run in same time as C
It happens than C is much faster than Matlab. Even when Matlab is well optimized when it comes to processing speed, C is a lowe...

11 years 前 | 1

已回答
Question about velocity graphs with quiver3
Did you read the _help_? help quiver3 with your code, you are setting the velocities to 0, no doubt you do not get any...

11 years 前 | 0

已回答
How to check the value of a varriable of a subfunction?
You can send the variable, from the local function, to the base workspace using _assignin_: assignin('base', 'my_variable',...

11 years 前 | 0

已回答
reading values from vector into different equal parts over loop
Is this what you need? p1 = haltonset(1); x1 = p1(1:10^6); for i = 2:5 x1 = p1( (i-1)*10^6: i*10^6) ); end...

11 years 前 | 0

已回答
find the center point of color
Try with the built-in function _regionprops_. One of the properties returned by this function is the center of mass of each r...

11 years 前 | 0

| 已接受

已回答
Using GUI in an external function
You just need to define your input/output data as input and output arguments in your function. You can also use variables as glo...

11 years 前 | 0

已回答
How can I have a better plot?
Change the marker size to fit your needs: plot(rand(10), '*','MarkerSize',10) plot(rand(10), '*','MarkerSize',5)

11 years 前 | 0

| 已接受

已回答
How to convert GUI matlab to coding without used GUI
If I understand right, you want to create code to do the same a GUI does. You have a lot of copy/paste to do, delete references ...

11 years 前 | 0

已回答
How to find the nine biggest numbers?
Sort your matrix in descending order: m = rand(5,4); % example matrix [rows cols] = size(m); m2 = reshape(m,rows*cols...

11 years 前 | 0

已回答
Regarding length of an image.
From Matlab point of view, an image is a matrix (sometimes a 3D matrix). if Im is the matrix containing your image, length...

11 years 前 | 0

| 已接受

已回答
how to make a matrix elements randomly distributed
Try this out (adapt the values to your needs): m = 10; n = 3; pos = randperm(m*n,m); M = zeros(m,n); M(pos) = 1...

11 years 前 | 0

| 已接受

已回答
How can I combine two columns?
Use the built-ibn function _cat_: a = [1 2; 3 4]; b1 = [2 4]; b2 = [2; 4]; c1 = cat(1,a,b1); c2 = cat(2,a,b2); ...

11 years 前 | 0

已回答
Creating Menus using GUIDE
You can make use of the message box utility: msgbox('your message here'); Insert you help message and link the _msgbox_ ...

11 years 前 | 1

| 已接受

已回答
Insert radio button inside a listbox
you can not do that.

11 years 前 | 1

| 已接受

已回答
Difficulty Assigning String Values after Regexp
you did not define neither the value of _Gov_ nor _bv_. Your code: x = (GoodObjectValue{Gov}); y = (BadValue{Bv}); i...

11 years 前 | 0

已回答
deleting part of a list of strings
do you have a cell array containing your strings? If my_cell is your cell array, try: str = char(my_cell{k}); for the...

11 years 前 | 0

已回答
deleting part of a list of strings
Since in you GPS data you want to trim right after the "E", you can try this: str='$SDDBT,00006.5,f,0002.0,M,0001.0,F*06,$G...

11 years 前 | 0

已回答
Send data from Matlab to Arduino Mega 2560
When you measure the signal, the voltmeter introduces a voltage drop in the line so that the signal does not arrive its destiny ...

11 years 前 | 0

已回答
Send data from Matlab to Arduino Mega 2560
The two lines you talk about are these: On matlab: a(i)=fscanf(serialPort,'%d'); on arduino: Serial.println(volt...

11 years 前 | 1

已回答
Cases with a changing string length
You are not using the switch-case properly. In your case, your code check the value of _Astr_ and see if it equals any of the ca...

11 years 前 | 0

| 已接受

已回答
There is any way to know the dimensions of an excel file (rows, columns) without using xlsread?
NO, there is not a way to do what you need/want.

11 years 前 | 0

已回答
xlsread with changing Excel name
You can try to adjust the following to your code: my_xls = dir ('*.xlsx'); % struct with your xlsx files for k = 1:l...

11 years 前 | 0

已回答
How to fill the region between two edges of a vein like structure?
Did you explore the built-in function _fill_ ? Could you give some code example?

11 years 前 | 0

已回答
how to concatenate graphs
did you try hold on after plotting the first graph and hold off right after the last one?

11 years 前 | 0

已回答
sending slider values from serial port....
% To construct a serial port object: s1 = serial('COM1'); s2 = serial('COM2', 'BaudRate', 1200); ...

11 years 前 | 0

| 已接受

已回答
Repeat audio button in GUI
In your PLAYAUDIO function, add _times_pushed_ as global: function PLAYAUDIObutton_Callback(hObject, eventdata, handles) ...

11 years 前 | 0

| 已接受

已回答
Loading variable from whos
Try this out: my_vars=whos; for k = 1:length(my_vars) assignin('base',my_vars(k).name,value_to_assign) end ...

11 years 前 | 0

已回答
Repeat audio button in GUI
Try to reset _times_pushed_ with every new wav file. Insert _times_pushed_ as global in the _PLAY AUDIO_ function.

11 years 前 | 0

已回答
Attempted to access C2(3); index out of bounds because numel(C2)=2.
I think you problem ( at least one of them ) lies on: dC(1)=[10^-5; Vm*(Ksl*K*asl/(Ksl*asl-Vl*K))*C1(i)]; inside your _t...

11 years 前 | 0

已回答
How to solve the error?
Obviously, you have a problem with the function: F = get_image_features(I); By the name you gave it, if it does what it ...

11 years 前 | 0

| 已接受

加载更多