Risposto
The detectImportOptions not able to recognize and use 2nd row of a file as column name
l=readlines('data.csv') tData=readtable('data.csv','headerlines',1,'readvariablenames',1) opt=detectImportOptions('data.csv','...

oltre un anno fa | 1

| accettato

Risposto
Radio button issue in App Designer
Short answer is "you can't". One button in a uibuttongroup is always selected; MATLAB internal code will set the next one (in ...

oltre un anno fa | 1

| accettato

Risposto
Polyfit isn't returning linear gradient and intercept
testx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] testy =[4, 6, 8, 10, 12, 14, 16, 18, 20, 22] [PolyCoeff] = polyfit(testx, testy, 1) W...

oltre un anno fa | 2

| accettato

Risposto
Combining one matrix into another that are of different sizes
Given V =[ 0 1 0 0 0 0; -1 0 0 0 0 0; 0 0 1 0 0 0; 0 0 0 0 1 0; 0 0 0 -1 0 0; 0 0 0 0 0 1]; ...

oltre un anno fa | 1

| accettato

Risposto
Switching values around in a matrix
A = [2 5; 9 7; 10 2; 3 2; 1 9]; % option A B=A.'; B=B(:) % B=A.'(:); is invalid MATLAB syntax, unfortunately. (Octave allows t...

oltre un anno fa | 2

Risposto
How to change the background color of uiradiobuttons?
UPDATED -- CORRECTED EARLIER USE OF UIBUTTON() INSTEAD OF UIRADIOBUTTON() It turns out for some reason the BackgroundColor prop...

oltre un anno fa | 0

Risposto
How to make a tiled figure, in which the tiles have figures with multiple x and y axes?
I don't think you'll be able to do this with tiledlayout. It has some additional features that subplot doesn't, but it also has...

oltre un anno fa | 0

Risposto
How to undock windows by deafult?
Manually rearrange as you wish and then exit; it will reload as they were last set.

oltre un anno fa | 1

| accettato

Risposto
Creating a grouped bar plot from a table having multiple column
VNames=["ValuationRatios","company","industry","sector"]; VR=[ "P/E Ratio" "Price/Revenue" "Price/Book" "Price to Cash F...

oltre un anno fa | 0

Risposto
How can I declare Hexadecimal enum constants in a classdef
To enter constants in hex base for documentation purposes (consistent with a vendor's data sheet, perhaps) with MATLAB prior to ...

oltre un anno fa | 0

Risposto
Title issues when plotting
In title(['Plate ' InputSheet;'Grain Size' string(Grain(n));... the semicolon is trying to concatenate two char() strings ver...

oltre un anno fa | 0

Risposto
Issue transposing a matrix inside of a timeseries
This is unavoidable with the timeseries object given its internal design and restrictions on dimensions compatibilities. See th...

oltre un anno fa | 0

| accettato

Risposto
Help with Inequalities In Switch Statement
See the Tips section of switch, case, otherwise that notes Tips A case_expression cannot include relational operators such as ...

oltre un anno fa | 0

Risposto
Drawnow for a single element (uilabel)
Use an indeterminate progress dialog and update the .Message property; it will be updated w/o the drawnow. I use it to show pro...

oltre un anno fa | 1

Risposto
i am trying to read excel file from D drive under name mirror1 to put values in app.EditData.Value it gives parse error.thanks alot
Delete the "end" that you manually entered from the callback function, it's superfluous because app designer builds the function...

oltre un anno fa | 0

Risposto
Can uigetfile function be used to return file name & location for a file that is already open?
I cannot reproduce the symptom here. uigetfile returns the filename and path as expected even if the workbook is open in an Act...

oltre un anno fa | 0

Risposto
MATLAB standalone application compiler - code obfuscation
When MATLAB Compiler or Simulink Compiler creates an standalone executable, all the files required for that application are bund...

oltre un anno fa | 1

| accettato

Risposto
How to identify city names from shapefiles with coordinate bounds provided
One would have to have the coordinates of the cities with their names as an auxiliary database. The MATLAB Mapping Toolbox <con...

oltre un anno fa | 0

| accettato

Risposto
Differences in C Code Generation for Switch blocks between Matlab 2021b and Matlab 2024b
As a proprietary product, The Mathworks can choose any implementation they wish that produces the correct end result; the coding...

oltre un anno fa | 0

Risposto
Are Regression Models Deterministic?
By default, the toolset uses bayesopt so the selection is, indeed, randomized. Unless the data are virtually noiseless, one can...

oltre un anno fa | 0

| accettato

Risposto
How would I change the output values on the initialplot graph?
sys = ss([0, tf([3 0],[1 1 10]) ; tf([1 1],[1 5]), tf(2,[1 6])]); x0 = [0.3,0.25,1,4]; ip = initialplot(sys,x0); ip.OutputLab...

oltre un anno fa | 1

| accettato

Risposto
Readtable and Readmatrix Ignore Specified Range and Produce Extra Variables
d=dir('*.csv'); opt=detectImportOptions(d.name); tin=readtable(d.name,'Range','C2:C3','ExtraColumnsRule','ignore') I don't kn...

oltre un anno fa | 0

Risposto
Why does times(A,B) gives me negative values when A and B don't have any ???
mustBePositive(0) shows that zero is not considered positive by mustBePositive. You don't give any klews as to what the magnit...

oltre un anno fa | 2

Risposto
search text in arraycell
newStr = extractBetween(data,"[Wsp]","[Wsp\DetachedWindows]") extractBetween searches in a given string, not between members of...

oltre un anno fa | 0

Risposto
Warning: Error updating FunctionLine in using fplot
function [rt] = Ttr(r) C1=[1; 1-r; 0; r; 0; 0; 0; 0]; P1=[2; 3; 0; (1-2*r)/(1-r); (1-2*r)/(1-r); 0; r/(1-r)*sqrt(1-2*r...

oltre un anno fa | 1

| accettato

Risposto
xcorr raw time series vs normalized time series
DS=readmatrix('DS.csv'); SS=readmatrix('SS.csv'); DS(:,2) = -DS(:,2); %c1 = corr(DS(:,2),SS(:,2)) DSnorm = (DS(:,2)-mean...

oltre un anno fa | 0

Risposto
help with maintaining order of values when removing NANs and converting matrix to column vector
Well, let's find out... load A load B C=[A(:) B(:)]; % combine the two as column vectors ixBoth=nnz(all...

oltre un anno fa | 0

| accettato

Risposto
Is it possible to get the version number of a compiled program inside the program? I am using the Application Compiler.
C:\>wmic /? WMIC is deprecated. [global switches] <command> ... "Starting January 29, 2024, you'll find Windows Manageme...

oltre un anno fa | 0

| accettato

Domanda


Compiled Windows Standalone App Logfile Location and Console Visibility
Is there a way to retrieve the location of the logfile if use the -R option programmatically rather than hardcopy so can be sure...

oltre un anno fa | 0 risposte | 0

0

risposte

Risposto
Extract consecutive elements from a vector in a sliding manner
Alternatively, depending upon end use, without the explicit loop can generate the subsets directly... x=[1:6].'; n=2; slice=a...

oltre un anno fa | 0

Carica altro