Answered
Tool box used by environmental engineer
It depends. What do you want to do with MathWorks products? The page on earth, ocean, and atmospheric science may be of interes...

7 years ago | 1

Answered
Difference between clear var and clear var*
Let's start with a blank workspace. >> clear all Create three variables and check that they all exist in the workspace. >> a ...

7 years ago | 0

| accepted

Answered
Confused with the switch-case outputs with nargin
Why the function chooses the second case to execute? Because you called the function with two inputs. MATLAB first checks the c...

7 years ago | 1

Answered
How use "bitget" and "bitset" function?
I thought the examples on the documentation page were pretty clear about how to use the functionality. But now that I take a clo...

7 years ago | 0

Answered
HERE HDLM (hereHDLMCredentials)
Since this function was introduced in release R2019a, the best process is to install release R2019a. We don't support mixing an...

7 years ago | 0

Answered
Maths / ODE / Why do I get complex results?
Each of your ODE functions includes this line: Phi= 1-exp(-(47.58*u^1.877+0.10085*Tp*u^1.0585)); For sake of argument, let's l...

7 years ago | 1

| accepted

Answered
Calling evalin with three arguments
In (much) older releases of MATLAB the eval and evalin functions were documented with one more input argument than they are docu...

7 years ago | 2

Answered
standalone app access-icon is grayed out
Check the output of ver to learn if you have MATLAB Compiler installed. If you do have it installed check the output of the lice...

7 years ago | 2

Answered
q matrices element matching
I suspect this is a homework assignment so I'm only going to give a hint. You want the most common element as long as it appears...

7 years ago | 0

Answered
how to generate absolute difference between two different histograms
Let's create some sample data and a collection of edges that should span the data. x1 = randn(1, 1e3); x2 = randn(1, 1e3) + 0....

7 years ago | 0

Answered
Can I draw the figure with the help of MATLAB code ?
A regular N-sided polygon (for large N) is visually indistinguishable from a circle. Try: >> A = nsidedpoly(1000, 'Center', [0 ...

7 years ago | 1

Answered
How to enable datacursormode and zoom for only one axes in a figure?
For your first question, call setAllowAxesZoom on the zoom mode object returned by the zoom function. See the "Zoom Mode Utility...

7 years ago | 1

| accepted

Answered
I can acess bit by bit of pixel in an image with Matlab?
See the bitget and bitset functions as well as any functions listed as the "See Also" sections of those two functions' documenta...

7 years ago | 0

Answered
Vectorizing cumsum of table-vectors in a for loop
You say you're using a cell array so I assume the arrays inside different cells are different sizes, shapes, or types. That woul...

7 years ago | 0

Answered
I have R2018b and the phased array toolbox. I am trying to use rardarWaveformAnalyzer. Why do I not see the signal library and other features described in the app help? Only a couple of tabs are availalbe in my window...
According to the Release Notes for Phased Array System Toolbox, the interface for that app was redesigned with additional capabi...

7 years ago | 0

Answered
Retime timetable out of bounds
In this case, retime is not the right tool for the job. synchronize them instead. Since you have a cell array of timetable array...

7 years ago | 1

Answered
please explain me how does the code work?
You should probably ask the author your questions about this code. You might also suggest that he or she comment their code whic...

7 years ago | 0

Answered
error for equality of default
My guess is that you have too many end keywords in your code (or perhaps too few.) Smart indent your code (see the Code View Sho...

7 years ago | 0

Answered
Adding vertical line to graph at certain height
I'd use the stem function. First, generate some sample data and plot it. Turn hold on so we can add the stem plot later. x = 1:...

7 years ago | 1

| accepted

Answered
Error creating or updating surface?
[time:time] You have a typo here. This results in a scalar, not an array the same size as your other inputs to surface. Try: [...

7 years ago | 0

| accepted

Answered
how to choose different colors for nodes
When you call plot on your graph or digraph object, specify the 'NodeColor' property. For example, here are two ways to create a...

7 years ago | 1

| accepted

Answered
function with duplicate name cannot be defined
The error message states that the function definition is on the second line of the file, so I suspect you have other code on the...

7 years ago | 0

Answered
Having an instance of a class take on a value?
You can customize how your object is displayed and overload operators and functions for your class.

7 years ago | 0

| accepted

Answered
How to combine two histograms
Combine them as in show them in the same axes with the same bins, combine them as in add the bin counts together, or something e...

7 years ago | 2

| accepted

Answered
Section headers are formatting as comments: how to get SH working again?
You have an error in your code near the end of the file. You're missing the loop variable. for 1:totalNumberOfFiles Because of...

7 years ago | 1

| accepted

Answered
How to extract tweets given an ID
Looking at the definition of the getdata method for twitter objects I suspect you want to either specify a number for the 'id' q...

7 years ago | 0

Answered
Directory Issue - not finding subfolder
Since you're using release R2016b, you can use the functionality added to dir in that release to recursively search through fold...

7 years ago | 1

Answered
How to replace outliers with NaN
You can use grouptransform with an anonymous function that calls filloutliers. Let's use your sample data. group = repelem(['A'...

7 years ago | 1

Answered
Tracking instantiation when running an OOP program
In order to do this, I will need a good understanding of how the code runs. Is there a simple way of tracking the order of inst...

7 years ago | 0

Answered
How can I increase the resolution of Contourf plot?
contourf(Z)%this will give the contourf with increased x,y axis! That's correct. What does contourf use as X and Y coordinates...

7 years ago | 0

Load more