Community Profile

Kareem Elgindy

Last seen: 10 dagen ago Active since 2020

All

Content Feed

View by

Question

Multiply Constant Array by Another Cell Array
How to multiply each element of [2 3] by {(1:3)';(-1:2)'} so that the output is {[2,4,6]';[-3,0,3,6]'}?

17 dagen ago | 1 answer | 0

1

Question

Is There a Command in MATLAB Like WorkingPrecision in MATHEMATICA?
In MATHEMATICA, WorkingPrecision is an option for various numerical operations that specify the number of digits of precision th...

ongeveer een maand ago | 2 answers | 0

2

Question

Can we Generate a Random Matrix with No Repeated Elements
I'm aware of randperm, but it gives vectors rather than 2D matrices. One may also use a loop with randperm to generate a rand...

3 maanden ago | 1 answer | 0

1

Question

Adjust the Motion Speed of animate Option in ezplot3
Consider syms t; ezplot3(t.^2,sin(t),t,[-2,2],'animate') How can I control the speed of motion in the animated plot?

3 maanden ago | 1 answer | 0

1

Question

Why does vpa give a sym class variable?
>> vpa(cos(10)) ans = -0.83907152907645243811174395887065 Now, ans is 1x1 sym in the Workspace. Why? Isn't sym mean sym...

3 maanden ago | 2 answers | 0

2

Question

Transparency violation error. See Workspace Transparency in MATLAB Statements.
When I execute the below code I get the title error. Can someone explain the error and how to fix it? N = 2:2:4; parfor j = 1:...

5 maanden ago | 1 answer | 0

1

Question

Pausing to Save data and Then Rerun from the Same State
I have a code that is using parfor and is currently running for more than 6 days. Can I pause the code to save the obtained data...

9 maanden ago | 1 answer | 0

1

Question

Parallel Computing Toolbox, Pausing, and Hibernation
Suppose we are running a code with the Parallel Computing Toolbox on a laptop and for some reason, you must leave and take yo...

9 maanden ago | 1 answer | 0

1

Question

Execution of Two Independent parfor Loops in the Same Code
Suppose we have the following two independent parfor loops within the same code: parfor i = 1:a bla bla bla end parfor...

10 maanden ago | 1 answer | 0

1

Question

Estimated Time Left for Executing a Code Using MATLAB Parallel Computing Toolbox
Is there a way to estimate the time left for executing a code using MATLAB Parallel Computing Toolbox? Assume for simplicity tha...

10 maanden ago | 1 answer | 0

1

Question

MATLAB Parallel Computing Toolbox and Process Priority Settings
Before I started using MATLAB Parallel Computing Toolbox, I often set the priority of MATLAB in the Task Manager in Windows as e...

10 maanden ago | 1 answer | 0

1

Question

Broadcast Variable Warning in MATLAB Parallel Computing Toolbox
When I ran a MATLAB code using MATLAB Parallel Computing Toolbox, I got messages like: The entire array or structure 'a' is a b...

10 maanden ago | 1 answer | 0

1

Question

How to Run the Same MATLAB Code Through Two Laptops?
I have a large data and my laptop takes probably a week to finish one run of my code. I'm thinking to reduce the amount of time ...

10 maanden ago | 1 answer | 0

1

Question

Why Does This Definition of a Piecewise Function Produce a Warning Message?
MATLAB issues a warning when defining the below piecewise function syms y(x); y(x) = piecewise(x<1, x+1, 1<=x<2, x-1); But w...

12 maanden ago | 1 answer | 0

1

Question

Main Differences Between Symbolic Variables and Symbolic Functions
What are the main differences between them? I know that to evaluate a symbolic variable we use subs and to evaluate a symbolic f...

12 maanden ago | 3 answers | 0

3

Question

Range of Resolution in exportgraphics
When using the command exportgraphics to save a figure, what is the possible range of Resolution option?

12 maanden ago | 1 answer | 0

1

Which is Better for Polynomial Equations: roots or solve?

ongeveer een jaar ago | 0

Question

Which is Better for Polynomial Equations: roots or solve?
Which one is better in terms of accuracy?

ongeveer een jaar ago | 2 answers | 0

2

Question

Difference Between Export to PDF & Save AS... -> PDF in MATLAB Live Editor
Is there any difference between Export to PDF and clicking Save AS... then choosing PDF in MATLAB Live Editor?

ongeveer een jaar ago | 1 answer | 1

1

Question

Difference Between Copy and Copy Output
If you right click an output in MATLAB Live script you will see "Copy" and "Copy Output" as two among other things you can selec...

ongeveer een jaar ago | 1 answer | 0

1

Question

How to Use the Latex \bm for Math Symbols in ylabel?
Say we want to display x as a bold italics math symbol in ylabel. Is this possible?

ongeveer een jaar ago | 1 answer | 0

1

Question

Command save writes to a nonreadable text file
When I execute the below Script file x = 2; y = x^5; save result.txt y and open result.txt in MATLAB, the text shown is not ...

ongeveer een jaar ago | 1 answer | 0

1

Question

vpa Does Not Show the Required Number of Significant Digits
For the below example, MATLAB shows exactly 50 significant digits: >> vpa(cos(10),50) ans = -0.83907152907645243811174...

meer dan een jaar ago | 2 answers | 0

2

Submitted

Euler's Number
This function gives the numerical value of Euler's number accurate to 10,000 significant digits.

Question

Add a Title for Each Group of Subplots in a Figure Window
Suppose I have 2 rows and 4 columns of subplots in a figure window. How can I add a title for the first row and another title...

bijna 2 jaar ago | 1 answer | 0

1

Question

How to Enclose a Figure Title in a Box?
I'm interested to learn how to place a figure title in a box using title and sgtitle commands.

bijna 2 jaar ago | 1 answer | 0

1

Question

Delete StyleSheet from Print Preview Window
I saved a new StyleSheet named new after I changed certain parameters in the Print Preview Window. How can I delete this new Sty...

bijna 2 jaar ago | 0 answers | 0

0

Question

How to Use arrayfun with a Multivariate Function of n Variables?
Suppose f(X) is a function of a vector X = [x1, x2, ..., xn]. How to evaluate the function at a certain range of values, say y1,...

meer dan 2 jaar ago | 2 answers | 0

2

Question

How to Code This Using filter?
I don't know how to use filter and unfortunately the Help Documentation of filter is not useful enough for me. I'd like to use f...

meer dan 2 jaar ago | 1 answer | 0

1

Question

Why This Vectorization of my Code Does Not Work?
Consider the following two codes: n = 4; % Code 1: c1 = zeros(floor(n/2)+1,n+1); c1(1,1) = 1; c1(1,2:n+1) = 2.^(0:n-1); for ...

meer dan 2 jaar ago | 1 answer | 0