Risposto
How do I make a 3d plot of black body radiation
Assuming I typed it correctly, here is the code you provided: C1(1:100) = 3.742*10^8; C2(1:100) = 1.439*10^4; Lambda ...

circa 8 anni fa | 0

| accettato

Risposto
How do I draw a colour bar with known discrete RGB values and known percentage of pixels represent each RGB values?
You can use a |<https://www.mathworks.com/help/matlab/ref/patch.html patch>| object for this. values = [0.5 0.3 0.2]; co...

circa 8 anni fa | 0

Risposto
i want code to convert image to text
You probably want a Neural Network and Deep Learning, but explaining what that is will take more than a blog post. One place ...

circa 8 anni fa | 0

| accettato

Risposto
Error using * (multiplication mark)
It would help to know the size of |b1|, the value of |N|, etc. to give a definitive answer, but I suspect the issue is that you ...

circa 8 anni fa | 0

Risposto
General usage of ParseInputs
Are you referring to |inputParser|? As far as I can tell, there is no MATLAB |ParseInputs|. If your concern is performance, m...

circa 8 anni fa | 1

| accettato

Risposto
How can I use pbaspect and MinorTick in subplot with three plots?
What isn't working when you use three plots instead of two? I just tested your code, and the only thing I noticed is that as ...

circa 8 anni fa | 1

Risposto
3D graph interactive control using checkboxes
If you are using a recent MATLAB release, you may be able to get the functionality you are looking for using the |ItemHitFcn| bu...

circa 8 anni fa | 1

| accettato

Risposto
What happened for "simple" command in matlab 2016
It looks like the |simple| command (from the Symbolic Math Toolbox) was removed in R2015a. It is present in R2014b. The <https:/...

circa 8 anni fa | 2

| accettato

Risposto
What is my Y axis and what does it depend on
Let's start with something simple: x = [0 2 1 0]; y = [0 1 3 0]; z = conv(x,y); plot(z); <</matlabcentral/answe...

circa 8 anni fa | 0

Risposto
How to segment Blue color object on this images?
Do you have access to the Image Processing Toolbox? If so, check out these options: * <https://www.mathworks.com/help/images/...

circa 8 anni fa | 1

Risposto
Read Textfile (lines with different formats) line by line
There are many different strategies, but I think you are going to have to use |<https://www.mathworks.com/help/matlab/ref/regexp...

circa 8 anni fa | 1

Risposto
Compute mean and diff faster
It may be time to start looking into the Parallel Computing Toolbox or some of the new Big Data capabilities in MATLAB (such as ...

circa 8 anni fa | 0

Risposto
Find beginning and end of a series of events
My first thought is to use |diff| on the timestamps (to get the time between events) and then threshold the results (anything ov...

circa 8 anni fa | 0

| accettato

Risposto
How to change the x-axis so you only view the image (axistight)?
There are a few ways to change the x-axis limits: xlim([-inf inf]) % Fit the x-limits tight to the data. axis tight % Fi...

circa 8 anni fa | 0

Risposto
How to specify the absolute length (e.g. in [mm]) of the x-axis when printed to e.g. pdf?
Are you setting the |Units| property on the Axes to be |centimeters|? axes('Units','centimeters','Position',[1 1 10 10]) ...

circa 8 anni fa | 0

Risposto
Hourly average of the data which is not continuous?
If you have MATLAB R2016b or newer, you can use the |<https://www.mathworks.com/help/matlab/ref/retime.html retime>| method on t...

circa 8 anni fa | 0

Risposto
im getting this error Undefined operator ' ' for input arguments of type 'matlab.ui.Figure'.
Sounds like the code you are using was written for MATLAB prior to R2014a, when figure handles were doubles. Starting in R2014b,...

circa 8 anni fa | 1

| accettato

Risposto
How to create 2D plot from 3D table?
Assuming you are referring to 2D matrices, which you have concatenated into a 3D matrix (MATLAB |table| objects do not support 3...

circa 8 anni fa | 0

Risposto
''Error using reshape: To RESHAPE the number of elements must not change''
What is the size of |I| both before and after calling |imresize| on the second image? Is one of the images grayscale or black an...

circa 8 anni fa | 0

Risposto
given a large array of words and little cell how can i find for each word in the array the number of occurrences in the cell
Check out |<https://www.mathworks.com/help/matlab/ref/ismember.html ismember>|. Also, double-check your syntax for specifying...

circa 8 anni fa | 1

| accettato

Risposto
Help: Matlab code to import stock price data from an excel file using the function input.
The first issue is the command: prices{i}=xlsread('Stocks.xlsx','29112013','30112017',tickers{:,i}); You are specifying ...

circa 8 anni fa | 0

| accettato

Risposto
Display content on http requests returned with error status (400, 500)
What version of MATLAB are you using? The specifics of this behavior have changed a little over the past few releases. Even w...

circa 8 anni fa | 0

Risposto
What happens in response to fprintf commands when a deployed app is created using deploytool?
You can specify a file identifier (created using |fopen|) as the first input to |fprintf|, which will send the output to a file....

circa 8 anni fa | 1

| accettato

Risposto
change bar color based on value
You should check out the latest version of MATLAB. Starting in MATLAB R2017b you can specify a color for each bar in a bar serie...

oltre 8 anni fa | 0

Risposto
Histogram plotting where the x-axis is in multiples of 0.1
You have two options: 1. You can use the |<https://www.mathworks.com/help/matlab/ref/histogram.html histogram>| command. When...

oltre 8 anni fa | 2

| accettato

Risposto
How can I replace values that meet a condition when I work with matrices and structures?
Based on just your first sentence, this is what you are trying to do: for tt = 1:NumTimesteps for ch = 1:size(efSin09,...

oltre 8 anni fa | 0

| accettato

Risposto
lloyd function is in the path, but is not recognised when executed
I think I would start with: restoredefaultpath rehash toolboxcache That will (temporarily) reset your path to the def...

oltre 8 anni fa | 0

Risposto
How can I find all possible combiantions of 3 numbers in a 6 number array using a for loop?
There are probably more efficient ways of doing this, but here's one attempt: Matrix=[-4 2 1 -1 -1 0]; n = numel(Matrix)...

oltre 8 anni fa | 0

| accettato

Risposto
How can I plot a 12x12x12 matrix with a point in [1,1,1 ] , [1,1,2] , etc
I can interpret your question in two different ways. The first way, I think the command you are looking for is |<https://www....

oltre 8 anni fa | 0

Carica altro