Statistica
RANK
3.175
of 295.448
REPUTAZIONE
18
CONTRIBUTI
18 Domande
8 Risposte
ACCETTAZIONE DELLE RISPOSTE
66.67%
VOTI RICEVUTI
7
RANK
of 153.872
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
How to create two paths parallel to a non-uniform curve on its both sides?
Suppose I have a path y that can be defined in different ways x1 = 1:0.1:20; y1 = [3*x1(1:20) + 6, ... 5*x1(21:100) - 9...
oltre un anno fa | 1 risposta | 0
1
rispostaDomanda
MATLAB can't symbolically solve a definite integration
The following definite integration couldn't be symbolically solved by MATLAB. Is there a way to make it solvable by MATLAB? The...
circa 2 anni fa | 1 risposta | 0
1
rispostaDomanda
Understanding how testCase.addTeardown works with @path
The following code is adopted from this blog post: classdef GoodFixturesTest < matlab.unittest.TestCase methods(Test...
oltre 2 anni fa | 1 risposta | 0
1
rispostaDomanda
How to robustly set class object properties in the class constructor when using name-value approach without handling them one-by-one?
For the following, is there any robust way to set the class object properties at once by copying each input struct field value t...
oltre 2 anni fa | 1 risposta | 0
1
rispostaDomanda
Examples of efficient and inefficient parallel computations on GPU
I am considering buying a new laptop, so I would like to know examples of efficient and inefficient usages of parallel computing...
quasi 3 anni fa | 0 risposte | 0
0
risposteMatlab Live Scripts displaying figures in seemingly random order when multiple code blocks with subplots are used
As a workaround, you can use this MATLAB mechanism in your favor by creating a duplicate dummy figure then delete it to show the...
quasi 3 anni fa | 0
Domanda
Find the normal vector at a specific point on a 3D surface defined by an equation
Consider the following code: rng('default') [Xs,Ys,Zs] = sphere; X = (0.99+0.01*rand(size(Xs))).*Xs; Y = (0.99+0.01*rand...
oltre 3 anni fa | 0 risposte | 0
0
risposteDomanda
Find an index of a cell whose element satisfies a condition
Is there a way to economically fix the code below to make it work so that it returns the index of the cell element whose array h...
oltre 3 anni fa | 2 risposte | 0
2
risposteDomanda
How to show the Unit parameter in the signal attrbutes of a constant block?
For the attached Simulink model I created using MATLAB R2021a, how can I show the Unit parameter in the block parameters of the ...
oltre 3 anni fa | 1 risposta | 0
1
rispostaTo change Current Folder to the folder of .m File
For live scripts, @Qi Wang suggested using this: fileparts(matlab.desktop.editor.getActiveFilename) to get the full path of t...
oltre 3 anni fa | 4
ode45 goes busy endlessly when using the sign of a state variable
Thanks to the explanation of Star Strider, the use of sign() can be replaced by fr*Mass*9.8)*(y(2)>0) to make it work.
oltre 3 anni fa | 0
| accettato
Domanda
ode45 goes busy endlessly when using the sign of a state variable
This term "- fr*Mass*9.8*sign(y(2))" makes ode45 busy forever specifically when using 'sign(y(2))' I just need to make -fr*Mass...
oltre 3 anni fa | 2 risposte | 0
2
risposteDomanda
Changing the same property of some axis children using subsasgn
How to make the following code work in order to change the 'Visible' property of some children plots whose handles are stored in...
oltre 3 anni fa | 1 risposta | 0
1
rispostaHow to write code in MATLAB?
Your code in the question is not clear to me, nevertheless, my code below can be edited to fulfil your needs. x = 1:10; % array...
quasi 4 anni fa | 0
Working a definite integral
Read this Definite Integrals of Symbolic Expressions, then you can do syms x vpaintegral(1/sqrt(1-x^2)*(x^2+1.1202*x+0.2132),[...
quasi 4 anni fa | 1
| accettato
Domanda
How to solve a set of symbolic equations for the same variable?
Is there a way to make the following work and solve the following set of symbolic equations for the same variable and save the o...
quasi 4 anni fa | 1 risposta | 0
1
rispostaDomanda
MeshDensity: How to exactly set the number of evaluation points of fplot?
In the documentation, it is said under 'MeshDensity' option of 'fplot': "Number of evaluation points, specified as a number. T...
quasi 4 anni fa | 1 risposta | 0
1
rispostaDomanda
'deal' doesn't distribute the elements of a calculated array out of cellfun
For the following syms syma symb eqns = [... syma*exp(symb)== 1,... syma*exp(symb*1500) == 5,... ]; vars = [s...
quasi 4 anni fa | 1 risposta | 0
1
rispostaHow do I skip items in a legend?
You can simply delete the last undesired entry by the following: % assume you plotted some curves before this line and all of t...
circa 4 anni fa | 1
autorename if saved file already exist
Revisitng this old question, I followed the idea of Jan to come up with this solution of appending the existent file name with a...
circa 4 anni fa | 1
Domanda
Is it possible to have an inline function inside a cell array to conditionally return an element to be stored?
Consider I have mycondition = true; truestatement = 'yes'; % returned by the inline function when mycondition is true falsest...
circa 4 anni fa | 2 risposte | 0
2
risposteHow to selectively save the names and values of some workspace variables to a CSV file?
Thanks to the inspiring answer of @Rik, I found the following solution without the need to use for loop a = 3; b=7; c=5; d=9; ...
circa 4 anni fa | 0
Domanda
How to selectively save the names and values of some workspace variables to a CSV file?
Consider the following a = 3; b=7; c=5; d=9; save('test.mat') data = load('test.mat'); toSave = { 'b' ; 'c' }; writece...
circa 4 anni fa | 2 risposte | 0
2
risposteDomanda
Write to an already opened Excel file
The following MATLAB code works well for writing eActiveSheetRange.Value to the range eActiveSheetRange However, I have t...
oltre 4 anni fa | 1 risposta | 0
1
rispostaDomanda
Live scripts stored in MATLAB Drive are assumed to be located in Temp folder
I have MATLAB R2019a on Win10 and MATLAB Drive Connector. Some live scripts are stored in the local MATLAB Drive folder. Howeve...
circa 5 anni fa | 1 risposta | 0
1
rispostaDomanda
Reshaping Nodal Spatial Vectors into 3D Matrices for Countourslice
I have a problem of temperature field across a cubic domain. My nodes locations are stored in 3 column vectors of *x=[x1 x2 ....
quasi 10 anni fa | 0 risposte | 0