Réponse apportée
Can I call a class function from Simulink?
I'd suggest you take a look at the MATLAB System block, which is designed to support System objects in Simulink. System objects...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
Dynamically specify namespace/package
A few pieces of documentation explain the behavior where the import list for the function does not update. From the <http://www...

plus de 10 ans il y a | 0

Réponse apportée
How to efficiently use dependent properties if dependence is computational costly?
I would recommend you add a method to compute and update the value of your dependent property and then call that method from the...

plus de 10 ans il y a | 8

| A accepté

Réponse apportée
Saving current progam folder path
It looks like you want to write a string to the text file, but SAVE is not a good fit for this. The help for SAVE -ASCII explai...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Please help write a script to display the first line of this text file using fgetl
You just need to use FOPEN to create a file handle, and then each call to FGETL on that handle will read a line of text. Here's...

plus de 10 ans il y a | 0

Réponse apportée
Can't get Matlab compiler and loadlibrary to work
I suspect the correct reference page is <http://www.mathworks.com/help/compiler/matlab-library-loading.html here> (I'll report t...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
how to download data from websites?
MATLAB supports importing data from OPenDAP sources <http://www.mathworks.com/help/matlab/import_export/importing-network-common...

plus de 10 ans il y a | 0

Réponse apportée
How to read Simulink inputs from Matlab ?
This error suggests that you are not using a data format that the block supports. See the Specifying the Workspace Data section...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Debug and workspace of functions
Each function has its own separate workspace of variables, and you do not typically get visibility of the variables outside of y...

presque 11 ans il y a | 0

Réponse apportée
How can I arrange (collect) values for a couple of variables into a table outside "for loop" ?
This looks like a good use case for the <http://www.mathworks.com/help/matlab/ref/table.html TABLE> function in MATLAB. You can...

presque 11 ans il y a | 0

Réponse apportée
How to use vision.X functions in simulink?
From <http://www.mathworks.com/help/dsp/gs/use-system-objects-in-simulink.html Using System objects> in Simulink: You can in...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
how to concatanate structures of different sizes?
From the doc for <http://www.mathworks.com/help/matlab/matlab_prog/concatenate-structures.html concatenating structures>: ...

presque 11 ans il y a | 0

Réponse apportée
How can I fetch values from 2 vectors of numbers without without changing their format.
You can control how MATLAB displays your data using FORMAT. This is independent of how MATLAB actually stores and handles your ...

presque 11 ans il y a | 0

Réponse apportée
how do you combine character array and a row vector
You can use STRVCAT to add a row to your char matrix: >> strvcat(names, numbers) ans = ellen bobby joe...

presque 11 ans il y a | 0

Réponse apportée
Help on creating structures??
You could enter your data into a two-column cell array and then use CELL2STRUCT: data = {'Krista', [10 5 1993]; ... ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
EngWinDemo Starts a New Instance?!
I suspect the issue is in trying to have the non-admin privileged engwindemo.exe connect to the admin privileged MATLAB process....

presque 11 ans il y a | 0

Réponse apportée
How do i use eval function when the sentence has apostrophe (') in it?
If you need EVAL, I'd suggest using SPRINTF to form your expression. This lets you see the command you are writing more natural...

presque 11 ans il y a | 0

Réponse apportée
How can I create a list of .m files currently open in the editor?
The MATLAB Editor API should handle this. Try: >> openFiles = matlab.desktop.editor.getAll; >> fileNames = {openFiles.Fil...

presque 11 ans il y a | 4

| A accepté

Réponse apportée
regexp to match certain words in a string
Looking at your string, I see parameter value pairs in the pattern of Param{Value}Param{Value}. If that is the case, then a reg...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Interface Matlab Project with C++ Project
Here are a couple more ways to consider interfacing MATLAB with C++: * Write <http://www.mathworks.com/help/matlab/matlab_ext...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
How do I use regular expression to match the last character of a sentence?
Here's a regular expression that might be helpful, which matches if the last character in the string is "." or "!" or "?". >...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
disp() output to command line significantly delayed, not right in time relative to the further program progress?
I would first suggest trying FPRINTF in place of DISP to see if that produces different behavior. Here is an example call: ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
how to find the depth from the image?
You can use IMFINFO to find the bit depth of an image. For example: >> info = imfinfo('ngc6543a.jpg'); >> info.BitDepth ...

presque 11 ans il y a | 1

Réponse apportée
Call embedded matlab function from command line
The code for the MATLAB Function block does not exist as a stand-alone file that you can call in MATLAB. However, you can progr...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to use Comma delimiter for this .txt file. I have a file which looks like this. I have to separate them column wise with comma as delimiter. Urgent. Thanks in advance.
Assuming this text is in a file named mydata.txt and you want to read it into MATLAB, you can use TEXTSCAN. In the data, I see ...

presque 11 ans il y a | 0

Réponse apportée
setter fails/ gets passed by
I believe using the code below reproduces the unexpected behavior you write about, where a set on the top-level object does not ...

presque 11 ans il y a | 1

Réponse apportée
How can I change a simulink "matlab function" using the command window?
You can get and set the code for a MATLAB Function block using the steps in <http://www.mathworks.com/matlabcentral/answers/1026...

presque 11 ans il y a | 0

| A accepté

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

presque 11 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

presque 11 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

presque 11 ans il y a

Charger plus