MY MATLAB KEEPS ON CRASHING ON MY MAC. ITS THE 2022b

64 views (last 30 days)
my code is very correct but it doesnt run it just crashes with my mac. my mac is very much up to date. anytime i try to do a figure problem or a table (vectors ) it doesnt work. the figure and plotting one crashes while the table one shows an error.
t = 0 : 0.1 : 6; %time in s
h =-4.9*t.^2 + 19.6*t + 58.8; %height in m
v = -9.8*t + 19.6; % v in ms^-1
a = -9.8; % a in ms^-2
figure
plot(t,h) % plot h vs t
title('height of projectile')
xlabel ('time(s)')
ylabel('height in m')
grid on
xlim([0 5])
figure
plot (h)
hold on
plot (v)
legend('height','velocity')
figure
subplot(3,1,1)
plot(t,h)
%details
subplot(3,1,2)
plot(t,v)
%details
subplot(3,1,3)
plot(t,a)
This is the figure and plot one
A1 = 1:7;
A2 = 2:8;
A3 = [A1' A2'];
TA = table(A1', A2')
TA.Properties.VariableNames = {'A1','A2'};
disp(TA)
temp= TA.A1
this is the first table one and
QAdata = readtable('EGR121QAdata.xlsx')
week1 = QAdata.Week1;
week2 = QAdata {:, 3};
MachH = QAdata{end, 2:end-1};
this is the last table one.
Please help me

Accepted Answer

Steven Lord
Steven Lord on 17 Nov 2022
If by "crash" you mean MATLAB shows a stack trace and/or immediately disappears, please send the crash log file to MathWorks Technical Support directly using the Contact Support link under the Get Support heading at the end of this page. This Answers post lists where you can find the crash log files.
If by "crash" you mean MATLAB displays an error message, please show us the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window.) The exact text of the messages may be useful in determining what's going on and how to avoid the warning and/or error.
  4 Comments
Oghenefejiro
Oghenefejiro on 17 Nov 2022
NVM IT WORKS THANK YOU.
thank you sooooo much.
I could literally hug you soo tight

Sign in to comment.

More Answers (0)

Categories

Find more on Data Type Identification in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!