Respondida
Aligning a linear and non-linear x-axis
The axes you are plotting into are linear, so I think the best solution would be to plot both plots using wavelength, and then c...

más de 2 años hace | 1

| aceptada

Respondida
Hydraulic Pipe - SIMSCAPE
Resistance and fluid density are not properties of the Hydraulic Ppeline block. Instead, use Linear Hydraulic Resistance and Hyd...

más de 2 años hace | 1

Respondida
MATLAB graders issues, i want to use one funtion from another problem
Each problem in MATLAB Grader is independent of the other problems. You can add external files to a problem for learners to use ...

más de 2 años hace | 0

| aceptada

Respondida
Unable to perform assignment because the left and right sides have a different number of elements.
Two ideas come to mind. Both require that the number of points freqturned by freq(I) be the same for every sample. If you know ...

más de 2 años hace | 0

Respondida
The "run" command does not work in GARDER.
I assume you are refering to MATLAB Grader. Certain commands and functions are not allowed when running code in MATLAB Grader, i...

más de 2 años hace | 1

| aceptada

Respondida
How can I open a hyperlink from a button callback in AppDesigner?
I get an error when using the command you shared linkstring = 'https://www.mathworks.com'; web(linkstring,'UniformOutput', fal...

más de 2 años hace | 0

| aceptada

Respondida
Which products should I select ?
The good thing is you don't have to decide right now. You can use the Add Ons Explorer to add additional toolboxes as the need a...

más de 2 años hace | 2

Respondida
create script to matlab function
Check out the Refactor button in the ribbon. This will convert the highlighted code to a function. See this video demonstration...

más de 2 años hace | 0

| aceptada

Respondida
Convert Excel to csv with exact formatting
To achieve what you have requested, I believe you will need to load the data into MATLAB and then write it to a csv file using f...

más de 2 años hace | 1

| aceptada

Respondida
MatLab does not reads Excel sheet properly
readtable just loads the data as is. You will still need to write code to perform any manipulation to the data. Perhaps fillmiss...

más de 2 años hace | 0

| aceptada

Respondida
optimization toolbox missing for simbiology
It is a separate toolbox. If it is included in your license, you can install it using the Add-Ons explorer. You can see a list ...

más de 2 años hace | 0

| aceptada

Respondida
split a matrix into two matrices according to some rule
I would look into clustering. Here is an attempt that uses dbscan, a spectral clustring algorithm included in the Statistics and...

más de 2 años hace | 2

| aceptada

Respondida
Not enough input arguments error while running kilosort in matlab
Process data is a function, not a script function [rez, DATA, uproj] = preprocessData(ops) When you call a function, you have ...

más de 2 años hace | 0

Respondida
is it built in function or a structure ?
It is a helper function that is included with this example. On the upper right corner of the example page, use the 'Open in MATL...

más de 2 años hace | 2

| aceptada

Respondida
How can I use splitapply() in matlab appdesigner?
You could use a differnt function that incorporates grouping, like gscatter. load carsmall gscatter(Displacement,Horsepower,Mo...

más de 2 años hace | 0

Respondida
StackedPlot with two tables with specific variables
If they have the same number of rows, I think what you would want to do is T = [A(:,["variable1ofA","var2ofA", "var3ofA"]),B(:,...

más de 2 años hace | 0

| aceptada

Respondida
How to use setvaropts for strangely-formatted text file
You need to set the 'InputFormat' instead of the 'DatetimeFormat'. opts = detectImportOptions('chuSampleFile.csv'); opts = set...

más de 2 años hace | 2

Respondida
error unrecognized function or variable help me please :(
You need to define your function inputs. You have no variable in your workspace names signalsCell. Define one before calling you...

más de 2 años hace | 0

Respondida
I don't know how to fix this
The issue appears to be in your function coderun_radar_simulation, which has not been shared. You are trying to capture the outp...

más de 2 años hace | 0

Respondida
How to pull dates out of character array, to get a datetime array. The character array was created from a log file in txt format.
charArray = ['METRIC ALERT LOG - Sun Jan 1 13:15:20 2023' 'METRIC ALERT LOG - Sun Jan 1 21:30:20 2023' 'METRIC ALERT...

más de 2 años hace | 0

| aceptada

Respondida
How to ignore special characters and retrieve the data prior to the character
I think another rather straightforward approach is to treat * and # as delmiters. I've simplified the read function for readab...

más de 2 años hace | 0

Respondida
MATLAB GUI code the Active Receptor should increased when at TstartLigand but im plot its decreased . Secondly how to get rid of this matlab ui.control even
The items you have circled are the Edit Field labels. An edit field component consists of an edit field and its label. To rem...

más de 2 años hace | 0

| aceptada

Respondida
how to add markers on specific points ??
The MarkerIndices property was introduced around R2016b. This allows you to specify which points have a marker. See this example...

más de 2 años hace | 0

Respondida
How can i create a black and white mask for my thermo image? When i run this code,my mask is just a green block but it should be white and black. Everything under 10 is white
You are changing the colormap for the entire figure. You need to change it for just the specific axis. Try updating the code in ...

más de 2 años hace | 0

Respondida
Adoption of Name=Value in Function Calls what is best practice?
This really comes down to personal preference. They are all equivalent syntatically. Name=value syntax can feel more familiar fo...

más de 2 años hace | 1

Respondida
Quiver plot - vector direction
Your U and V values are all positive, so all quivers will point up and to the right. I think you want U and V to be the differe...

más de 2 años hace | 0

| aceptada

Respondida
Even a simple code I wrote in matlab does not appear in the command window section, only the name of the file appears for example >>untitled1 How can I solve this?
There is nothing to solve. That is how MATLAB works. The command window is telling you what script was executed. It does not pri...

más de 2 años hace | 1

Respondida
How to match colors of an extracted contour with the colors of the main figure?
colormaps by default cover the range of data in your figure. You will want to manually set the color limits in the extracted fig...

más de 2 años hace | 1

| aceptada

Respondida
Reading Clinical EEG (.ezdata) file IN MATLAB
ezdata appears to be a file created by Cadwell EEG Machines (along with .eas and .ez3). Based on what I see in the attached file...

más de 2 años hace | 1

Respondida
How to solve index? error
cValue is a scalar (only contains a single value), so the error is coming from your attempts to index a 2nd and 3rd value.

más de 2 años hace | 0

Cargar más