Réponse apportée
How to read Excel file with changing the range automatically
i=1; j=1000; range_array=strcat('D',num2str(i),':D',num2str(j));

plus de 11 ans il y a | 0

Réponse apportée
Is it possible to split a large text file into half and subsequently use textscan for both parts?
You can use for loops to auto-generate the formatSpec for textscan(). For example, you can read two column at a time by definin...

plus de 11 ans il y a | 0

Réponse apportée
Taking weighted means over matrices with missing data
A=[4 NaN 1 NaN; 5 3 8 NaN; 1 6 2 4; 8 4 7 2]; A_u=A./A; A(isnan(A))=0; A_u(isnan(A_u))=0; weight=[0.4 0.3 0.2 0.1]...

plus de 11 ans il y a | 0

Réponse apportée
Trouble with textread function
I've tried your codes with Matlab 2013a and it works well. What's your current release of Matlab?

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Coding the objects for the center of gravity?
I think SimMechanics is the best choice for you to perform the dynamic anlysis. Also, if you have installed ADAMS or some other ...

plus de 11 ans il y a | 0

Réponse apportée
Conditional Optimization problem: inf and NaN
Try other initial values and adjust the tolerance by implementing optimoptions()

plus de 11 ans il y a | 0

Réponse apportée
How can m-file neglect the error "There maybe a singularity in the solution" , produced by Simulink, and does not stop?
You can try warning('off','message_id'). However, this warning indicates that there may be a singlarity in certain closed loop. ...

plus de 11 ans il y a | 0

Réponse apportée
Store cells into Matrix
Make sure each element in the cell variable has the same dimention. Assuming raw is the cell variable (1x2),x is the destination...

plus de 11 ans il y a | 0

Réponse apportée
???Error using feval Undefined function 'pfpower' for input arguments of type 'double'.???
It's Ok, if the fucntion is written in the earlier version. Pls. make sure the script (m file) which defines the function is in ...

plus de 11 ans il y a | 0

Réponse apportée
How to call pop-up-menu call back in Pushbutton???
Try remove the selections codes from the opening function to other callback functions And try get(handles.method_popup, 'V...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Sorting a directory of txt files.
Implement dir to list all the file names in the specific directory. Use if-else to find the number files (char(48) to char(5...

plus de 11 ans il y a | 0

Réponse apportée
Reading file paths into cell array
Try list=dir() all the file names under the specific folder will be listed and stored in the variable list

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Running program from the middle of the script
Keep the results of the the loop in workspace. Select the subsequent codes which you wanna test, and press F9 (F7 in Mac OS). ...

plus de 11 ans il y a | 0

Réponse apportée
How to read cell range from one cell in file
Try raw{2,3}={3:4,6:10}; x=rand(10,10); x(3:4,6:10) x(raw{2,3}{1,1},raw{2,3}{1,2})

plus de 11 ans il y a | 0

Réponse apportée
plot two data sets over different time in the same plot
plot(t,x) hold on plot(t2,y)

plus de 11 ans il y a | 0

Réponse apportée
"if condition not worked"
You must define the logical relationships between the conditions

plus de 11 ans il y a | 0

Question


How to display a jpg or bmp figure on GUI pane with high quality?
The jpg or bmp figure displays well if I open it outside matlab. But if I implement imread()and image() to display the image ...

plus de 11 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
how to create a mat file of a given image with the same file name?
try strcat() to define the name of the mat file For example, filename='a'; matfilename=strcat(filename,'.mat'); ...

plus de 11 ans il y a | 0

Réponse apportée
Matlab Coder Load function fails to locate files in subfolders
I've test the codes below on my macbook air, it ran well. load('/Users/liyao21/Documents/MATLAB/aa/a.mat')

plus de 11 ans il y a | 0

Réponse apportée
Matlab Coder Load function fails to locate files in subfolders
You have to use the full path. For example, S = load('c:\...\subfolder\myfile.mat'); Pls. use backslash '\' instead of ...

plus de 11 ans il y a | 0

Réponse apportée
How to place each section title on a new page in report generator?
I've fixed it by adding a text component with only carriage returns at the end of each section, but I don't think it's a good so...

plus de 11 ans il y a | 0

| A accepté

Question


How to place each section title on a new page in report generator?
I think this could be set in the component Section Title Properties, but I am sure how to make it. Could anyone help?

plus de 11 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
how to generate pulse with different interval in Matlap/simulink?
The block named Signal builder

plus de 11 ans il y a | 0

Réponse apportée
why do i get an error while using arcsin(x) function?
sind(45); asind(0.7071);

plus de 11 ans il y a | 0

Réponse apportée
Help with a function in a loop
sampledata={'hello world','hello','hello world world'}; length(sampledata) for i=1:length(sampledata) for j=1:len...

plus de 11 ans il y a | 0

Réponse apportée
3D graph from txt file
I think the problem may result from the cell variable temp. You can try: temp = cell2mat(textscan(fid, '%f, %f, %f')); C...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
converting array char cells conversion to decimal numbers
double(cell2mat(v))

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I properly communicate and edit real-time with master and child structs using GUIDE?
I'm not quite sure what you want. But can your problem be fixed if some variables are saved to the 'base' workspace? If it works...

plus de 11 ans il y a | 0

Réponse apportée
Populating array with values from each iteration
for n=1:9 and for m=1:9

plus de 11 ans il y a | 0

| A accepté

Charger plus