Réponse apportée
Please take a look
Hi, to give more of an answer to your question: don't use textscan in a loop, but simply call data = textscan(fid, '%1d'...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Please take a look
Hi, I would read it differently: % open the file fid = fopen('file.dat'); % read all data as characters: data = frea...

plus de 12 ans il y a | 0

Réponse apportée
Read-Only in Excel
Hi, I'm not sure what your question is. But in any case you will need to call exlWkbk.Save before you close it, since ...

plus de 12 ans il y a | 0

Réponse apportée
Class Hierachie, Inheritance and Access class members
Hi, might be some typo? Should (and does) work like you write: super1.m: classdef super1 < handle methods ...

plus de 12 ans il y a | 0

Réponse apportée
Defining the port names of the Smilunk block within the S function
Hi, no there isn't. But it is best practice to mask the S-function block anyway (for passing the parameters). In the mask you...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Unit-Testing SIMULINK models using basic MATLAB and SIMULINK functionality
Hi, if your model has root input ports and output ports you might think of using model reference to include the model into a ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
create multiple mat files for storing data
Hi Ricky, instead of creating multiple .mat files you might try to create one .mat file and access variables in there in part...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to speed up searching for all items in cell array within another cell array
Hi, the fastest usually is to concatenate the strings, i.e., TBOM = strcat(TBOM_PartNo(:,1), TBOM_PartNo(:,2), TBOM_PartNo...

presque 13 ans il y a | 0

Réponse apportée
how to plot y=ax+b for different equations
Hi Vivi, * set up a vector x between 0 and 1 * compute y * plot y vs. x * hold on * do the same for the interval [1 3] ...

presque 13 ans il y a | 0

Réponse apportée
Analyze the text printing code ...
Hi Masoud, I guess you want to write fmt_item = '%.8f'; Titus

presque 13 ans il y a | 0

Réponse apportée
reading specific data from a ascii file
Hi, for the columns you can use %*f to skip a column. Building the format string will be slightly more complicated of course,...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how to convert RGB to LAB , using D65 illuminant ?
The Image Processing Toolbox has conversion functions implemented: doc makecform should get you started. Otherwise take ...

presque 13 ans il y a | 0

Réponse apportée
Is there a way to auto resize a GUI window according to PC's screen size?
Hi, yes, you can resize it in the opening function. E.g. add set(handles.figure1, 'units', 'normalized', 'position', [0....

environ 13 ans il y a | 3

| A accepté

Réponse apportée
How to create triangulated surface using data points (x,y,z)
Hi Prab, O.K., I understand. Can you use two coordinates only? E.g. x and y only, build the (2D) triangulation and then plot/...

environ 13 ans il y a | 0

Réponse apportée
R6034 error message from running .exe file
Hi Ismaeel, the MCR is stronly versioned, i.e., if you compiled on MATLAB version R2012a, then you have to install on the tar...

environ 13 ans il y a | 0

Réponse apportée
How to create triangulated surface using data points (x,y,z)
Hi Prab, I think you are looking for the convex hull? So take a look at convhulln or convexHull (depending on your MATLAB ver...

environ 13 ans il y a | 1

Réponse apportée
Binary representation of stored integer of fi object
Hi, if you only specify the word length and not the fraction length you get two different objects: >> fi(0.25, 0, 16) a...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to use ISMEMBER when not all rows match
Hi Sophia, what about this? compare = [A zeros(size(A,1),1)] [ismemb,idx] = ismember(A(:,1), B(:,1)) compare(ismemb,3)...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to display a value number in the figure
Hi, you can use a text uicontrol. So in GUIDE you add a text, and in the callback of your button you have something like ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Matlab Compiler Magic Numbers example won't work
Hi Ryan, a good way to find out: start a windows command window (hit the windows start button, enter "cmd" as command. It sho...

environ 13 ans il y a | 1

Réponse apportée
Opening an external file in a deployed application
Hi James, you can use the function ctfroot zu build up an absolute path to where your .pdf is when packed into the ap...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Problem with missing data in a time series
Hi, this answer is more of a general advice rather than answering the question, sorry for that ;-). I'm not sure that it w...

environ 13 ans il y a | 0

Réponse apportée
How to label axis in patch function
Hi, I'm not sure I understand the question: are you asking for labelling the axes of the plot? That's xlabel, ylabel, zlabel....

environ 13 ans il y a | 1

Réponse apportée
Close command and Invalid figure handle
Hi Jared, you need to close the *figure*, not the *plot*. Did you write the GUI using GUIDE? In this case you could write ...

environ 13 ans il y a | 1

Réponse apportée
matrix element is not controlled through function
Hi, hmm, the interesting part is in the "...": do you pass jv into Tflux? I.e., do you have for nk=1:10 [j,jv,u] = ...

plus de 13 ans il y a | 0

Réponse apportée
suggested mcc path handling improvements
Hi Balint, some comments, although not necessarily answering your questions (let's see). First: avoid addpath in the MATLA...

plus de 13 ans il y a | 0

Réponse apportée
Put a condition on 't' in ode15s ? Imp. question
Hi, yes, that's possible. It's the "event location property". Take a look at doc odeset and look there for "Events". ...

plus de 13 ans il y a | 0

Réponse apportée
export to one Excel-Sheet with different Columns
Hi, what I don't understand from your question: why don't you write all columns at once? I.e. xlswrite('test.csv', Buff,...

plus de 13 ans il y a | 0

Réponse apportée
S-Function Builder Outputs
Hi, please keep in mind, that Simulink (and S-Function Builder) assumes all signals to possibly be vector valued. Therefore, ...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
Variable cannot be saved to MAT-file whose version is older than 7.3
Hi, what does whos text_data tell you about the size of text_data? I suspect it's more than 2GB (e.g. 6.5GB?), that's...

plus de 13 ans il y a | 1

Charger plus