Community Profile

Kareem Elgindy

Last seen: 5日 前 2020 年からアクティブ

All

バッジを表示

Content Feed

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...

27日 前 | 1 件の回答 | 0

1

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?

27日 前 | 1 件の回答 | 0

1

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...

2

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:...

4ヶ月 前 | 1 件の回答 | 0

1

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...

7ヶ月 前 | 1 件の回答 | 0

1

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...

8ヶ月 前 | 1 件の回答 | 0

1

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...

8ヶ月 前 | 1 件の回答 | 0

1

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...

8ヶ月 前 | 1 件の回答 | 0

1

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...

8ヶ月 前 | 0 件の回答 | 0

0

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...

8ヶ月 前 | 1 件の回答 | 0

1

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 ...

8ヶ月 前 | 1 件の回答 | 0

1

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...

10ヶ月 前 | 1 件の回答 | 0

1

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...

10ヶ月 前 | 3 件の回答 | 0

3

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

10ヶ月 前 | 1 件の回答 | 0

1

Which is Better for Polynomial Equations: roots or solve?
An outstanding answer!

10ヶ月 前 | 0

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

10ヶ月 前 | 2 件の回答 | 0

2

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?

10ヶ月 前 | 1 件の回答 | 1

1

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...

11ヶ月 前 | 1 件の回答 | 0

1

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?

1

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 ...

1

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...

2

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...

2年弱 前 | 1 件の回答 | 0

1

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.

2年弱 前 | 1 件の回答 | 0

1

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...

2年弱 前 | 0 件の回答 | 0

0

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,...

2年以上 前 | 2 件の回答 | 0

2

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...

2年以上 前 | 1 件の回答 | 0

1

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 ...

2年以上 前 | 1 件の回答 | 0

1

When Should a User Use timeit, cputime, or tic toc?
I typically try to compare execution times between various algorithms in my research, so learning about this matter could be ver...

2年以上 前 | 1 件の回答 | 0

1

Why Euler's number e = 2.71828... is not a built-in constant in MATLAB?
Great feedback @Rik. Could you tell us more about JIT compiler or perhaps pointing out to a simple reference to learn about it q...

2年以上 前 | 0

What is the Order of Function Precedence in MATLAB 2019b or 2020a?
If I put a .m file in the current directory or in MATLAB search path, and then call it from the MATLAB Command Window, would MAT...

2年以上 前 | 1 件の回答 | 0