已回答
How to do multiple saves during a loop?
I guess all your .jpg are named *image_name.jpg* ? Inside the loop, you coded : imwrite( uint8( cat(3, hot_px, hot_px, ho...

10 years 前 | 0

| 已接受

已回答
How can I eliminate following error?
It seems you're using a 64 bits machine. You need to check if a complier is installed, thit is not provide with Matlab 64 (al...

10 years 前 | 0

已回答
Hide image in GUI using visible on/off
Obviously, _axes1_ is not a field of your structure of handles. put a breakpoint a the line _set(handles.axes1,'visible','off...

10 years 前 | 1

已回答
How do I add a variable date in a graphtitle?
Hi, 1) title(sprintf('Wind rose : %s',date)) 2) set(gcf,'Name','My Figure 01')

10 years 前 | 0

| 已接受

已回答
SIMULINK Action subsystem with 1D-lookup Table, which data is not always available
Hi, First, why don't you use a look-up table block instead of a matlab function ? Second, are you sure of the values of X ...

10 years 前 | 0

| 已接受

已回答
How to generate sine wave in Simulink by using the MATLAB function?
You could just use the sine wave block ? If you really want to use a matlab function, you need to do : <</matlabcentr...

10 years 前 | 3

| 已接受

已回答
How can I solve an algebraic loop error?
As Simulink says it to you : just add a delay to break the algebraic loop. <</matlabcentral/answers/uploaded_files/22286/...

10 years 前 | 10

| 已接受

已回答
Set workspace data to sub GUI by push button on main GUI
See the attached files. Run the Main gui. The pushbutton will open the subgui, load the values a and b stored in the mat f...

10 years 前 | 1

| 已接受

已回答
Line approximation from 5 points in Matlab
Hi, <http://fr.mathworks.com/help/matlab/ref/interp1.html interp1> is your friend

10 years 前 | 0

已回答
Set workspace data to sub GUI by push button on main GUI
Hi, you are not using the right structure of handles. the box _a_ is in the maingui. the box _b_ is in the subgui. ...

10 years 前 | 2

已回答
fopen 'w' not writing
You forget a _fprintf(fid2,..._ line, so you are not writing anything with this code, just open and close the phone.txt file. ...

10 years 前 | 0

| 已接受

已回答
Bar plot with two Y-axes
Hi, try this figure a=[rand(10,1)*100 zeros(10,1) ]; b=[zeros(10,1) rand(10,1)*5 ]; [AX,H1,H2] =plotyy([1:1...

10 years 前 | 1

| 已接受

已回答
differential Equations with ode45
Hi, you wrote : function [dy, Vy, L1 L Uk]=odefun12(t,y) N=0; Uk=0; Uk=N; => Uk = N = ...

10 years 前 | 0

已回答
Disable code generation while runnign the simulation of a model
If you want to simulate in SIL mode, SImulink will generate some code. if you don't want any code generation, you need to set...

10 years 前 | 0

已回答
Error while opening a simulink model
Just Change the extension in mdl instead of MDL.

10 years 前 | 0

| 已接受

已回答
Matlab Function block in Simulink-Error-cell() constructor is not supported for code generation
HI, Cell arrays are not supported for code generation. You're gonna have to rewrite your algorithm using matrix/vectors. ...

10 years 前 | 1

已回答
delete line plot via handles not working
Hi, I think this should work axes(handles.axes5); if ~isfield(handles,'LineH') % create the field the first ti...

10 years 前 | 0

| 已接受

已回答
How to use a push button to go to the next image in a listbox GUI
Hi, For what I see, picfromlist = get(handles.listbox1,'value'); => picfromlist is an integer or a vector of integ...

10 years 前 | 0

已回答
Simulink - join two [512x1] matrices to obtain one [512x2] matrix?
In the _Math Operations_ library : *Matrix Concatenate*

10 years 前 | 0

| 已接受

已回答
initialisation order of blocks in simulink
Hi, To know the sequence in which Simulink calculates. In the toolbar of your Model Display -> Blocks -> Sorted Executi...

10 years 前 | 0

已回答
How to avoid programmatically the data overlapping from legend in plots
2 ways, If you want it inside : % user defined position (ex : right bottom) set(hleg1,'Position',[0.7443 0.1782 0....

10 years 前 | 1

| 已接受

已回答
Enumerated values in StateFlow chart
Hi, Did you check that the data is defined in the explorer and that your chart is configured in C language ? <</matlab...

10 years 前 | 3

| 已接受

已回答
Can anyone tell me where I went wrong below that I get Invalid file identifier error? This code attempts to write data in different output files, where file name includes a number and strings.
You wrote fprintf([file,'Competition Ladder for Round' char(ST+r)]) the *[ ]* are misplaced, it should be : fprintf...

10 years 前 | 0

已回答
How to avoid programmatically the data overlapping from legend in plots
Hi You could just put the legend outside the axe figure x = -pi:pi/20:1; bar(x,cos(x),'b') hold on bar(x,si...

10 years 前 | 0

已回答
Hello, I am new and trying to plot the imaginary parts of a function, can anyone help?
Hi, all the functions you need are <http://fr.mathworks.com/help/matlab/complex-numbers.html here>

10 years 前 | 0

已回答
undefined function 'displaytable' for input arguments of type double
displaytable is a function available on <http://fr.mathworks.com/matlabcentral/fileexchange/27920-displaytable this page>. D...

10 years 前 | 0

| 已接受

已回答
How do I reverse the y-axis in image?
You can change the direction of increasing values along the y-axis by setting the YDir property of the Axes object. If you wan...

10 years 前 | 11

| 已接受

已回答
How do i find a row which follows conditions in colom a and b?
Hi, I guess your cell array (1000x2 cell) is _time_. Not knowing hat are all your data (A,time), I can just guess : ...

10 years 前 | 0

| 已接受

已回答
resize a matrix (1x30) to (1x25)
Hi, you could use interp1 g = rand(1,30); newx = linspace(1,30,25); newg = interp1(g,newx); plot(g,'b-+')...

10 years 前 | 0

| 已接受

已回答
Assigning value to vector in based on conditional
Hi, your code *didn't* reassign new value to all elements. only to the first one. it's just a "display impression". r = ...

10 years 前 | 0

| 已接受

加载更多