Answered
How can I prealloate a comlex-valued matrix?
I would probably use the 'like' syntax for the zeros function. A = zeros(10000, 500, 'like', 1i);

7 years ago | 3

| accepted

Answered
Is Matlab R2019B compatible with Windows server 2019?
The system requirements say yes, release R2019b is supported on Windows Server 2019.

7 years ago | 0

Answered
tool for performing data preprocessing
MATLAB has a number of functions to perform various types of data preprocessing tasks. That page lists some of the functions for...

7 years ago | 0

Answered
is it a bug?
If you call plot with an output argument to return handles to any lines that are created, you'll see that 100 individual lines g...

7 years ago | 0

| accepted

Answered
Which Add-on contains Simscape Power Systems?
In release R2018b two products, one of which was Simscape Power Systems™, were combined into Simscape™ Electrical™.

7 years ago | 1

Answered
Delete and add new edges in a graph
A graph object is undirected. A digraph object is directed. Construct your network graph using digraph instead of graph on the ...

7 years ago | 0

| accepted

Answered
unexpected MATLAB expression in app designer, using app designer in general
classdef GuiScanner_1 < matlab.apps.AppBase % Properties that correspond to app components properties (Access = public...

7 years ago | 0

| accepted

Answered
Always prepend "app" to shared variable in App Designer?
If by "warnings" you mean the orange underlines of that section of your code, neither. It is a feature not of App Designer but o...

7 years ago | 0

| accepted

Answered
What is defined as an integer type, when calling validateattributes?
The word 'integer' is a slightly overloaded term in MATLAB. Whether it's appropriate for your purposes to use 'integer' in the t...

7 years ago | 0

Answered
Variables Not Showing in Workspace After Clearing/Workspace Won't Update Varaibles
My guess is that you're working with function files rather than script files. One of the key differences between scripts and fun...

7 years ago | 2

| accepted

Answered
Why does setdiff answer depend on order of arguments?
Were you expecting the output to contain elements that are only in one of the inputs but not both? That's not what setdiff does....

7 years ago | 0

| accepted

Answered
Matlab home use. Not for research. What does that mean?
If you want an official answer about whether the way you plan to use the software is compatible with the Home license and/or the...

7 years ago | 0

Answered
'Long-runtime problem', improve code, partial sums.
n=50000;%The sum will be from 1 to n m=1:1:n;%vector from 1 to n partes=80;% divide the calculations in 'partes' parts na=2;%...

7 years ago | 0

Answered
How to compare date in table to Today's date?
You probably want to call datetime with the 'ConvertFrom' and/or 'InputFormat' options. The 'excel' or 'excel1904' values for th...

7 years ago | 0

| accepted

Answered
How to index tables in a struct? (to call each field from App Designer)
app.data = load('workspace.mat'); % command used to load the workspace in App Designer for i = 1 : numel(fieldnames(app.data)) ...

7 years ago | 0

Solved


Add two numbers
Given a and b, return the sum a+b in c.

7 years ago

Answered
How to obtain the second most frequent label using mode function
Do you need to do this using the mode function? If you're looking to compute the K most frequently predicted labels, I'd use hi...

7 years ago | 0

Answered
Write A Tall Array
As stated on that documentation page the first input argument in your call to the write function (which is either location or fi...

7 years ago | 0

Answered
if a variable has the dimension 1 x 1 is it a matrix, scalar, row or column vector
dpb and John are correct that the answer is "all of the above". There are functions you can use to check this (see the "Determin...

7 years ago | 0

| accepted

Answered
Is there a way to split MATLAB m scripts into a header file with multiple include files?
You can do what ES suggested and be okay some or most of the time, but this won't always work. Consider a function: function y ...

7 years ago | 0

Answered
I meet some problem in my coursera homework Echo Generator
I'm going to comment on individual pieces of your code to offer suggestions and avenues for investigation. function [output]=...

7 years ago | 6

| accepted

Answered
Engineering Statics- Baseline Mechanism Problem .M File ONLY!
Show us what you've written so far to try to solve the problem and ask a specific question about where you're having difficulty ...

7 years ago | 0

Answered
Variable in title is appearing as random string characters.
Another option (instead of str2num or sprintf) is to use string operations. og_rows = 15360; og_cols = 1024; title("Form Remo...

7 years ago | 0

Answered
What does it means p(nx,:)?
Set an error breakpoint to cause MATLAB to stop when the error occurs then run your code. When it stops at the error, check that...

7 years ago | 0

| accepted

Answered
Call function by path or namespace?
I have a package that was given to me that has some functions that have the same name as built in MATLAB functions I'd be curio...

7 years ago | 0

Answered
inserting rows in a matrix
Are you trying to turn daily data into hourly data? If so, consider making datetime vectors for each day and each hour and passi...

7 years ago | 1

Answered
I have a time table with a year's worth of current measurements. (Time format is Year-Month-Day-Hour-Min-Sec) How can I take each day and count how many times the current was over a specific reading that day.
The method input argument to retime can be a function handle to a function that accepts a vector of data and returns a scalar or...

7 years ago | 0

| accepted

Answered
Numirecal integration for a vector
See the trapz or cumtrapz functions.

7 years ago | 0

Answered
how to convert array of strings into array of double or int
That str2num output looks right for format short. You overlooked the scale factor at the top of the display of that matrix. >> ...

7 years ago | 0

| accepted

Answered
Figure color become black in latex
Specify the formattype input argument in your call to saveas. Looking at the table for Vector Graphics Formats options on the sa...

7 years ago | 0

Load more