Question


make tab-expansion case-sensitive in 2020?
Newer (I think it started before 2020a?) have case-insensitive tab-expansion as default, at least on linux. Is there any way to ...

5 years ago | 0 answers | 0

0

answers

Answered
Theory/ mathematics behind pspectrum
If you go to the help and online documentation you will find two references: [1] harris, fredric j. “On the Use of Windows for ...

5 years ago | 0

Answered
Second derivative of solution from ode45
After integrating your ODE-system you will have for some , and you have the function for your ODE-equations, f(t,X), one way to ...

5 years ago | 2

| accepted

Answered
Find wavelength in an image
Ok, there are a couple of points to make. 1, Your selected column is not entirely filled with you object but also contains a bi...

5 years ago | 1

Answered
Equation of motion of Non linear pendulum
Note that the function you use for the input-argument to ode45 is pendulum while the function you implemented for the pendulum h...

5 years ago | 0

| accepted

Answered
Mutilspectral image to RGB
To simply put each image into one of the R, G or B-layers of an RGB-image just do this: img = peaks(12); % just something to gi...

5 years ago | 0

| accepted

Answered
How to compute mean squared error of interpolated data?
Your problem is that the interpolation will, by definition, match the values of your data at the points of your data, just try t...

5 years ago | 0

Submitted


Recaman_seq
Recaman_seq - Recaman-sequence-function. This function calculates the N first numbers (decorative plot optional) of the Recaman ...

5 years ago | 0 downloads |

0.0 / 5
Thumbnail

Answered
Removing rows in a matrix
If you can determine/calculate all rows you want to remove at once it is best to do the re-sizing of the array at once, instead ...

5 years ago | 0

Answered
How to calculate the field on the surface created with Delaunay triangulation?
If you have the magnetic field components at the points [x,y,z] then you should be able to use TriScatteredInterp or (preferably...

5 years ago | 0

Answered
Too many output arguments ode23t
Try to change your maxh_d function to explicitly return dxdt: function dxdt = maxh_d(t,x) dxdt = zeros(2,1); % x(1) refers to ...

5 years ago | 0

| accepted

Answered
Contour plot size reduction
To get the figures "just right" you might have to manually masage them a little bit. When it comes to colorbars I often have to ...

5 years ago | 0

Answered
Reversing/Alternatives of function handles
Some of our mathematic operations does not only depend on calculations of their value at a fixed set of known points. For exam...

5 years ago | 1

Answered
Optimal Code Structuring - Global Variables
Matalb allows you to write functions with multiple out-put variables: function [phi_12,l_12] = a_silly_fcn(r1,r2) phi_12 = ata...

5 years ago | 0

Answered
Reverse/flip values in the colorbar axis
If you want exactly that colormap, but flip it you can do this: cmp = colormap; cmp = flipud(cmp); colormap(cmp); You shou...

5 years ago | 0

Answered
How can I utilise shooting method for following equation
Since you are a matlab-beginner you should first start to work through the introduction material, there are some intro-course-we...

5 years ago | 0

| accepted

Answered
Display rgb image in cartesian plane
Previously I've used: tcolor, with good results. HTH

5 years ago | 0

| accepted

Answered
Speeding up calculation and removing symbol operation for modelization
You can simply define your model-function something like this: func = @(B,x,y) B(3)*x+B(1)*exp(B(2)./y); There is no reason to...

5 years ago | 0

| accepted

Answered
What is the difference between conv2 and imfilter?
The first question is very simple to answer, conv2 has as its default behaviour: 'full' - (default) returns the full 2-D conv...

5 years ago | 1

Answered
Dot indexing is not supported for variables of this type.
When you get a problem like this it is because the variable is not of a struct as you expect. In general you can add a line with...

5 years ago | 0

Answered
How to close mutiple uifigure using command
If you want to keep some figures you can close a subset of them if you keep the figure-handles in an array. If you modify your c...

5 years ago | 0

Answered
Blurred latex figure label
Print your figure to post-script format using the -painters renderer: print('-depsc2','-painters','Your-new-and-pretty-figure-0...

5 years ago | 1

| accepted

Answered
Extract data from contour plot of .png file?
In case the conversion of the colormap to grayscale doesn't work well (i.e. multiple colours mapping to the same gray-level) I o...

5 years ago | 1

Answered
Any Precondition for the slow decay singular value??
Unfortunately I could not access the paper. However, I'll offer my opinion anyway. Once you've calculated your SVD-decomposition...

5 years ago | 0

| accepted

Answered
2 dependent ode45 equation
If you have 2 coupled ODEs: Then it is best to integrate them toghether. If you for some reason cannot do that or your prob...

5 years ago | 2

| accepted

Answered
Find the element that is a sqrt of another element in the same array function?
Hint: Which number are you actually comparing, and which number-combinations do you need to compare? One thing I'll suggest is ...

5 years ago | 0

Answered
Linear interpolation Using Polyfit
Repeat question. What's missing from the answer I gave you here: Using polyfit for linear regression? Perhaps explicitly telli...

5 years ago | 0

Answered
Vertical concatenation of structure fields (compact form)
This gets you to a 2-by-suitable char array: char(structure.field) But this will obviously not be a general solution for field...

5 years ago | 2

Answered
Using polyfit for linear regression
Your code looks OK. Your problem might be that you expect a result identical to the figure from the documentation. However, you...

5 years ago | 0

Submitted


Scrollsubplot
scrollsubplot(n,m,p) p<0 and p>nm, Extends subplot to infinite canvas ...

5 years ago | 4 downloads |

4.8 / 5
Thumbnail

Load more