Réponse apportée
how to load files which are listed in a cell array
The filenames variable is a cell array, so you need {} to index the contents: M=xlsread(filenames{3}); But it is better to use...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
readtable error in Matlab
The option you are trying to use only works for spreadsheet files. A csv file is just a text file and does not actually describe...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How can I quickly find the difference in function usage between different MATLAB versions? For example, the Name-Value Arguments "QuoteStrings" of the function writetable
A few releases ago Mathworks introduced a changes section at the bottom of the documentation page. Other than that, it is simply...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to write a variable in a Vector with a loop
If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks). See...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to pass filepath to MATLAB executable
You're using Matlab syntax to define a char vector, but that is something that will happen automatically. You can experiment wi...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
input parser on a cell array
You can implement a custom validationFcn to check your requirements, as you can read in the documentation. A = {'1234','4567','...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why does unicode2native returns different values on different Matlab versions?
I couldn't find this in the release notes, but apparently the default encoding changed between these versions (the documentation...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
can we share our original code here,?
The main point of plagiarism is not that text cannot exist anywhere else, but that you are clear about authorship. Some style gu...

presque 3 ans il y a | 2

Réponse apportée
How to point to actual file for LISTDLG selection?
You selected a file name. Now you need to use the load function to read the variables. S=load(fn{indx});

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to make an app after you have written a large program?
In my personal opinion, a GUI should only be an interface to your function (that is after what the I stands for). That means it ...

presque 3 ans il y a | 0

Réponse apportée
Solve Eror Saveas nome
Perhaps you meant saveas(gcf,[num2str(zz) '.png']) instead, since you never define kk in your code.

presque 3 ans il y a | 1

Réponse apportée
How to make the modfunc function work ?
A function should exist in an m file. If you want to put it in a script file, it needs to have a closing end keyword, and no oth...

presque 3 ans il y a | 0

Réponse apportée
Calculate the sum of two RMS values and theoretical RMS.
With vectors of the same size you shouldn't notice a difference, but you are calculating a root sum square, not a root mean squa...

presque 3 ans il y a | 0

| A accepté

A soumis


RegGrow
Region growing algorithm (supports 2D, 3D, and ND)

presque 3 ans il y a | 5 téléchargements |

0.0 / 5
Thumbnail

Réponse apportée
Why is sum(f,1) slower than sum(g,2) for g=f'?
I expect this has to do with how a matrix is stored in memory. If I recall correctly, this is column major, so summing along row...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
Is it possible to make the program faster?
Below you will see my attempt and vectorizing your code. As you may notice, this is not actually faster, which shows you that th...

environ 3 ans il y a | 1

| A accepté

Discussion


MATLAB Answers Wish-list #6 (and bug reports)
This is the 6th installment of the wish-list and bug report thread. This topic is the follow on to the first Wish-list for MATL...

environ 3 ans il y a | 1

Question


MATLAB Answers Wish-list #6 (and bug reports)
This is the 6th installment of the wish-list and bug report thread. This topic is the follow on to the first Wish-list for MATL...

environ 3 ans il y a | 6 réponses | 1

6

réponses

Réponse apportée
How to save multiple polts with the source file name using loop?
You have all elements already in your code. Why not uncomment savefig and use files(i).name?

environ 3 ans il y a | 0

Réponse apportée
read value from an external file .txt
You can do it with fscanf, but it you get a lot more flexibility if you use a regular expression instead. If you want to use thi...

environ 3 ans il y a | 0

Réponse apportée
Shuffle row order within every N rows in a matrix
Just use a loop with randperm: data=[ 1 2 4 1 1 1 2 4 2 1 1 2 4 1 2 1 2 4 2 2 1 2 4 1 1 1 2 4 2 ...

environ 3 ans il y a | 0

Réponse apportée
A compact way to horizontally concatenate rows of many cell arrays ?
Two calls to horzcat and a loop do the trick, although this can probably be improved a lot. % Input a{1} = {[0 0 1 4 1] ...

environ 3 ans il y a | 1

Réponse apportée
Is Matlab generally faster at computing polynomials or trigonometric functions?
You mean you want to approximate your complicated function with many calls by a single polynomial? If that is possible with your...

environ 3 ans il y a | 0

Réponse apportée
Calculations wrong in appdesigner
app.mdot_P33 = 1.2; app.mdot_P3 = 2.4; app.T3 = 315; app.mdot_P4 = 1.2; app.T4 = 316; app.T5 = (app.mdot_P33/app.mdot_P3)*a...

environ 3 ans il y a | 0

Réponse apportée
Selecting a file to create a plot on MATLAB
You mean like uigetfile and prompt?

environ 3 ans il y a | 0

Réponse apportée
Is it possible to implement a GUI in a Matlab script?
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread. It will show you dif...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Sound files with 4 channels in MATLAB
S = load('handel'); new_y = repmat(S.y,1,4); size(new_y) Now you can no longer use the sound function, as that only supports ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to present this equation for plotting
You need either power or .^ (otherwise you perform a matrix power). So apart from that correction, either will work. I would ...

environ 3 ans il y a | 0

Réponse apportée
2012 and 2018 compatibility
It is not completely true that all code that runs without error on R2012a (or b) will run with the same effect on R2018a (or b)....

environ 3 ans il y a | 0

Réponse apportée
Why does subtracting '0' from an array of char appear to convert it to a numerical double.
The minus function is not really defined for char, so the operands need to be converted to a datatype that is supported. Since ...

environ 3 ans il y a | 1

| A accepté

Charger plus