Answered
How can I put a greek letter into an input sentence
input(char(948)) (look up ASCII tables for other letters).

ongeveer 8 jaar ago | 0

Answered
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...

ongeveer 8 jaar ago | 2

| accepted

Answered
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...

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

Answered
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...

ongeveer 8 jaar ago | 2

| accepted

Answered
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, '...

ongeveer 8 jaar ago | 3

Answered
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...

ongeveer 8 jaar ago | 1

Answered
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...

ongeveer 8 jaar ago | 0

Answered
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...

ongeveer 8 jaar ago | 1

| accepted

Answered
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...

ongeveer 8 jaar ago | 0

Answered
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...

ongeveer 8 jaar ago | 1

Answered
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 ...

ongeveer 8 jaar ago | 25

| accepted

Answered
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...

ongeveer 8 jaar ago | 1

Answered
How to export .fig file automatically into another format without being pixelated?
This might help: http://de.mathworks.com/matlabcentral/fileexchange/37640-export-figure-to-3d-interactive-pdf

ongeveer 8 jaar ago | 0

Answered
How to Change the brightness of an image by using loops and no loops
What error message are you getting? You should change your code to the following: function [ outimg ] = makebright_L...

ongeveer 8 jaar ago | 0

Answered
Unable to calculate the second derivative of a function
change th = sym('th(t)'); %th is a time dependent variable to th = sym('th'); %th is a time dependent variable ...

ongeveer 8 jaar ago | 0

Answered
difference between mean2 and mean
That's strange. According to your code, there shouldn't be a different output (if A is of type double). It may be a different ou...

ongeveer 8 jaar ago | 0

Answered
How to manually enter the length of axis tick marks?
Setting the TickLength changes the length of the tick markers, not the distance between them. Try set(gca,'TickLength'...

ongeveer 8 jaar ago | 3

Answered
Hello, everyone, i have the following problem
I assume your date_num values are datenums? How about something like: wd = weekday(date_num + i); if wd == 1 i ...

ongeveer 8 jaar ago | 0

| accepted

Answered
error " Unexpected matlab expression workspacefunc 329"
It probably means you have a function somewhere that "shadows" a built in Matlab function, i.e. that has the same name as a buil...

ongeveer 8 jaar ago | 3

| accepted

Answered
How can I plot Latitude and Longitude in a map, color depending on a certain value
Maybe contour() would work better instead of plotting in a loop.

ongeveer 8 jaar ago | 0

Answered
Output argument "rmax" (and maybe others) not assigned during call to "bestdesign".
You should initialize rmax and hmax at the beginning of your function. If r is greater than stop, hmax is never defined and if...

ongeveer 8 jaar ago | 0

Answered
How can I reopen or re-run a GUI figure once I closed the window?
This is not normal behaviour. It sounds like there may be an infinite loop somewhere in your code. Does it say "busy" in the bot...

ongeveer 8 jaar ago | 0

Answered
Trying to run Gauss Siedel method, I have no idea where I'm going wrong in this code. I get an error of "Index exceeds matrix dimensions" Not sure how? Just need this to run Thanks
You have to pre-initialize x1, x2, x3, errorx1, errorx2 and errorx3. The index exceeds the matrix dimensions, because you index...

ongeveer 8 jaar ago | 0

Answered
Write a function [M] = myMax(A), where M is the maximum value in an array A. Don't use the built-in MATLAB function max. Then write a function (M) = myNMax(A,N) where M is an array consisting of the N largest elements in A using the myMax function.
I'm assuming this is a homework assignment, so I won't give you a full answer. Here are some hints as to how you could do it: ...

ongeveer 8 jaar ago | 0

| accepted

Answered
How do i set the axis labels to a specific size?
Try playing around with the XTick and YTick properties in the axes. You can save the XTick and YTick after creating the figur...

ongeveer 8 jaar ago | 0

Answered
Why does input() display this string improperly?
It must be a bug. It seems to be fixed in Matlab R2016b.

ongeveer 8 jaar ago | 1

| accepted

Answered
While creating a new Mathworks login account i clicked as "personal" instead of "student " how to change it now
If you go to https://mathworks.com/mwaccount/ There should be an option to add a license and change the existing one if you hav...

ongeveer 8 jaar ago | 0

Answered
different excel version time convert problem
You may have to check the language setting or the formatting of the date on your mac

ongeveer 8 jaar ago | 0

| accepted

Answered
importdata: index exceeds matrix dimensions
It fails because there is probably no file or folder that matches 'Plane.*' in the current folder on your uni machine. So dir(pr...

ongeveer 8 jaar ago | 0

Load more