Réponse apportée
How to change the font of ticks in a colorbar?
Changing the TickLabelInterpreter won't make it match the latex serif roman numbering style, which is what I assume you want to ...

plus de 9 ans il y a | 1

| A accepté

A résolu


counter function
Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

plus de 9 ans il y a

Problème


Persistence will help you solve almost any problem.
Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

plus de 9 ans il y a | 1 | 26 solveurs

Réponse apportée
Loading of selected data and then division of the data with a constant and then plotting out the results?
Just drag the text file into your workspace, use the GUI to set up how you would like to import the data (correct data types, de...

plus de 9 ans il y a | 0

Réponse apportée
how retain value of variable in memory between calls to the function?
I think you might want to have a look at object oriented programming in Matlab: mathworks.com/discovery/object-oriented-programm...

plus de 9 ans il y a | 0

A résolu


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

plus de 9 ans il y a

A résolu


Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

plus de 9 ans il y a

A résolu


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

plus de 9 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

plus de 9 ans il y a

Problème


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

plus de 9 ans il y a | 1 | 39 solveurs

A résolu


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

plus de 9 ans il y a

A résolu


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

plus de 9 ans il y a

A résolu


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

plus de 9 ans il y a

A résolu


cody exploit
I made this one to bring attention to a cody exploit that a lot of people seem to be abusing.

plus de 9 ans il y a

Réponse apportée
How can I put a greek letter into an input sentence
input(char(948)) (look up ASCII tables for other letters).

plus de 9 ans il y a | 0

Réponse apportée
How can I detect the difference b/w indices of vector and stop it as well?
You should include an IF statement x_diff = abs([inf; diff(x)]); ind = find(x_diff < Other_threshold, 1); %index where d...

plus de 9 ans il y a | 2

| A accepté

A résolu


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

plus de 9 ans il y a

Réponse apportée
How can i correct the subscript of a vector in a for loop ?
Your problem is that you are inxexing X with w, which may be a decimal. To correct it, use: ind = 0; for w=wr(1):wr(4...

plus de 9 ans il y a | 0

| A accepté

Problème


Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

plus de 9 ans il y a | 1 | 51 solveurs

A résolu


99 bottels of beer...
(don't know the song? -> <https://en.wikipedia.org/wiki/99_Bottles_of_Beer>) Create the count down vector in y

plus de 9 ans il y a

Réponse apportée
Optimise code and identify bottlenecks - hints and tips
mathworks.com/company/newsletters/articles/programming-patterns-maximizing-code-performance-by-optimizing-memory-access.html ...

plus de 9 ans il y a | 0

Réponse apportée
Create and save imfreehand() positions until the user clicks a button to finish
You could use img = imread('myfig.jpg') imshow(img) i = 1; finished = 'NO'; i = 1; while strcmpi(finished,'NO') h...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
How can I change the font size of the tick labels without changing the font size of the axis labels?
xl = get(gca,'XLabel'); xlFontSize = get(xl,'FontSize'); xAX = get(gca,'XAxis'); set(xAX,'FontSize', Fontsize) set(xl, '...

plus de 9 ans il y a | 3

Réponse apportée
Error conversion to double from sym is not possible
The line td = 0:1:tn creates a double. So the line a_r1=subs(a_r,t,td); also creates a double. With plo...

plus de 9 ans il y a | 1

Réponse apportée
When starting MATLAB 2012b I receive a dialog box that states:
Refer to the answer in this post: https://de.mathworks.com/matlabcentral/answers/102371-why-do-i-receive-a-fatal-error-on-sta...

plus de 9 ans il y a | 0

Réponse apportée
How to connect to onedrive
It's hard to determine from your question what exactly you are trying to do. But this may help: Using the line hostname...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Input argument error length of variables
The problem is exactly what the error message says: Somewhere in your script is the keyword "nargin". nargin is used to check...

plus de 9 ans il y a | 0

Réponse apportée
Problem in training neural network to make a standalone application in Matlab 2016?
I don't think you can train a neural network in a standalone. It should be possible to train the network in Matlab, save it in a...

plus de 9 ans il y a | 1

Réponse apportée
Add various horizontal lines to a plot
If you want the line to have specific end points, you can use the line function. For example, this code draws a horizontal line ...

plus de 9 ans il y a | 25

| A accepté

Réponse apportée
ColorBar ignore range with blank color
I had a similar problem once. I can't find the script I had the solution in, but what I did was set the NaNs to a number smalle...

plus de 9 ans il y a | 1

Charger plus