Risposto
Error:Unexpected MATLAB operator and Error using feval when trying to Run Figure on GUIDE
There are three ways to structure multiple functions in Matlab. In Octave they are all equivalent, but in Matlab the last one is...

oltre 8 anni fa | 0

Risposto
Find double repetitions in a (sorted) array.
It always pays off to get rid of loops and/or pre-allocating your output. x= [2; 2; 5; 5; 5; 8; 8; 13; 13; 13; 13]; s = s...

oltre 8 anni fa | 0

Risposto
Adding full figure edit options to an executable?
Why do you need them? Surely it is better to have the size of the axis hardcoded in either an absolute unit or with |'Units'| se...

oltre 8 anni fa | 0

Risposto
What's the unit of the normalized frequency in Matlab.
It is normalized, and therefore it doesn't have a unit. Think of it like a percentage or a probability distribution.

oltre 8 anni fa | 0

| accettato

Risposto
This assignment writes a 'char' value into a 'double' type.
You should change various things. See the version below. function word = fcn(L,Ne,re,templates) %initializing to empty ...

oltre 8 anni fa | 0

Risposto
Use of save inside parfor
The result of |perfs| is not the same for each iteration of the loop, which is why you can't access it after the loop has finish...

oltre 8 anni fa | 0

| accettato

Risposto
How do I specify number format in a plot axis in Matlab R2015a?
Maybe you should |get| the actual values, instead of the labels. That would save you a conversion from string to number and solv...

oltre 8 anni fa | 0

Risposto
How can put the values inside tolerances?
What do you mean, it doesn't stop? These are for-loops, so they will exit. Do you mean you want to |break| out of both loops at ...

oltre 8 anni fa | 0

Risposto
build image with pixeling effect
<https://www.mathworks.com/help/images/ref/blockproc.html> (also: you can find guidelines for posting homework on this forum ...

oltre 8 anni fa | 0

Risposto
function that outputs a matrix with matrix elements referenced explicitly
function [temp, elevation, sec] = func(arg) ... end You may also want to have a look at |varargin|, |varargout|, |nar...

oltre 8 anni fa | 1

| accettato

Risposto
How can I plot several graphs with slightly different name in a loop?
You were looking for |eval|. <https://www.mathworks.com/matlabcentral/profile/authors/3102170-stephen-cobeldick Stephen Cobeldic...

quasi 9 anni fa | 0

| accettato

Risposto
It is possible to rebuild a 3D surface from its 2D slices?
Yes. This is how the result from a segmentation on a CT-scan or MRI are sometimes exported to other programs. If you need a m...

quasi 9 anni fa | 1

Risposto
How do I select and mark points and calculate angle and distance between them
What have you tried so far? The function |getpts| should be of help here. You need to plot the numbers separately, but otherw...

quasi 9 anni fa | 0

Risposto
Plot the same function several times in one go (Random walk)?
You should always include a link to the old question, so people can look there for context. Of course it is always best to use v...

quasi 9 anni fa | 0

| accettato

Risposto
Frequency histogram for selected values in a vector
You can use logical indexing to filter your data: LowWindData=data(WindSpeed<4); histogram(LowWindData) See |doc hist...

quasi 9 anni fa | 0

| accettato

Risposto
Protecting the sub system
Why do you want to hide it? Personally I dislike it when people do that. But putting that to the side: googling on 'obfuscate...

quasi 9 anni fa | 0

Risposto
skip legend entries while plotting data
I use multiple calls to |plot|, so I can get a list of handles, which you can then use in the call to |legend| h=[]; h(1...

quasi 9 anni fa | 1

Risposto
How do you add a 0 in front of single digit numbers in a numerical array?
|num2str|, |fprintf| and |sprintf| all have options to specify a format when converting a numeric value to a string. a=num2...

quasi 9 anni fa | 0

Risposto
Simple question regarding bar plot with categorical data
The problem is not in |bar|, but in |categorical|. I can't find in the doc how to preserve order (with |unique| I know there is ...

quasi 9 anni fa | 0

Risposto
syntax question-- how to reference a file based on same starting file name?
Matlab helps you a lot with data type conversion, but it doesn't go all the way. You tried to concatenate a numeric value with a...

quasi 9 anni fa | 0

Risposto
Append cell column to a matrix
You can't. A possible workaround is converting the whole matrix to a cell matrix (for which you can use the |num2cell| function)...

quasi 9 anni fa | 0

Risposto
how to put an if statement within for loop
Time for a pure guess: you want to ignore values in the 250-255 range and calculate the mean over the remaining data? month...

quasi 9 anni fa | 1

| accettato

Risposto
How to put the y axis from 10^-5 to 10^0
<https://www.mathworks.com/help/matlab/ref/semilogy.html |semilogy|> or <https://www.mathworks.com/matlabcentral/answers/279106-...

quasi 9 anni fa | 1

Risposto
Can I install a single license on a PC and a Mac if I don't use them simultaneously?
Based on <https://www.mathworks.com/matlabcentral/answers/158611-matlab-home-license-on-multiple-computers this thread>, I think...

quasi 9 anni fa | 0

Risposto
How to write a function to test for positive or negative numbers
You can find guidelines for posting homework on this forum <https://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-he...

quasi 9 anni fa | 0

Risposto
How to add text or string in App Designer
It sounds like <https://www.mathworks.com/help/matlab/ref/uicontrol.html |uicontrol('Style','text')|> will do the trick.

quasi 9 anni fa | 0

Risposto
Hi every one! I just tried my Matlab to fill the Jacobi method in basic by following every letters in manual Matlab book, but that still has an error. Can anyone tell me about some technician methods that I might be missing.
You can see the orange underlining. This means there is likely some error or inefficiency in your code. This is called an m-lint...

quasi 9 anni fa | 0

Risposto
How do i change indexing values
Just a pure guess: attendenceValues(1:3)=attendenceValues(2:4); This will remove the first entry and replicate the last ...

quasi 9 anni fa | 0

Risposto
install Matlab on two differents computer
This depends on the specific license type. You should be able to find this out via the <https://www.mathworks.com/licensecenter/...

quasi 9 anni fa | 0

| accettato

Risposto
Get data from plot at specific points not available in the original data.
What you want is impossible without fitting a function to your data. This can be achieved in many ways, for example by fitting a...

quasi 9 anni fa | 0

Carica altro